Skip to content

Commit a29cc0b

Browse files
authored
---
yaml --- r: 30375 b: refs/heads/autosynth-automl c: e5e7a21 h: refs/heads/master i: 30373: f155b8d 30371: 4acd26b 30367: e57b481
1 parent b7b7a30 commit a29cc0b

5 files changed

Lines changed: 11 additions & 7 deletions

File tree

[refs]

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -121,7 +121,7 @@ refs/heads/spanner: b01127f885b4611bf1852abb0ce481eeb7fcc131
121121
refs/tags/v0.68.0: 9cc799fcf68c82ab431d425fefa58ef615ce8e5b
122122
refs/tags/v0.69.0: 78f67a29e8b9c46ba01de566a2eae0fd1c03edea
123123
refs/heads/autosynth-asset: bdb45634a0fe8f7a510692b56b31f5312e25f453
124-
refs/heads/autosynth-automl: 3c8c8d6104f8b914a7899fbd3258bd7534932664
124+
refs/heads/autosynth-automl: e5e7a21bdc829ae207af71388e1a37fe286f2cc1
125125
refs/heads/autosynth-bigquerydatatransfer: d88aa5aae5fd9d3c6d75bbab1a05162c6d4d948f
126126
refs/heads/autosynth-bigquerystorage: d2c53da3b012e38c662e4df0738042435f19365f
127127
refs/heads/autosynth-bigtable: 9e5429f45cf9face9fed585d0233534993e36b58

branches/autosynth-automl/google-cloud-clients/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/MessageDispatcher.java

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -376,8 +376,7 @@ public void run() {
376376
/** Compute the ideal deadline, set subsequent modacks to this deadline, and return it. */
377377
@InternalApi
378378
int computeDeadlineSeconds() {
379-
long secLong = ackLatencyDistribution.getNthPercentile(PERCENTILE_FOR_ACK_DEADLINE_UPDATES);
380-
int sec = Ints.saturatedCast(secLong);
379+
int sec = ackLatencyDistribution.getPercentile(PERCENTILE_FOR_ACK_DEADLINE_UPDATES);
381380

382381
// Use Ints.constrainToRange when we get guava 21.
383382
if (sec < Subscriber.MIN_ACK_DEADLINE_SECONDS) {

branches/autosynth-automl/google-cloud-clients/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/Publisher.java

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,8 @@
1616

1717
package com.google.cloud.pubsub.v1;
1818

19+
import static com.google.common.util.concurrent.MoreExecutors.directExecutor;
20+
1921
import com.google.api.core.ApiFunction;
2022
import com.google.api.core.ApiFuture;
2123
import com.google.api.core.ApiFutureCallback;
@@ -357,7 +359,8 @@ public void onFailure(Throwable t) {
357359
messagesWaiter.incrementPendingMessages(-outstandingBatch.size());
358360
}
359361
}
360-
});
362+
},
363+
directExecutor());
361364
}
362365

363366
private static final class OutstandingBatch {

branches/autosynth-automl/google-cloud-clients/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/StreamingSubscriberConnection.java

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,8 @@
1616

1717
package com.google.cloud.pubsub.v1;
1818

19+
import static com.google.common.util.concurrent.MoreExecutors.directExecutor;
20+
1921
import com.google.api.core.AbstractApiService;
2022
import com.google.api.core.ApiClock;
2123
import com.google.api.core.ApiFuture;
@@ -291,7 +293,7 @@ public void onFailure(Throwable t) {
291293
.addAllAckIds(idChunk)
292294
.setAckDeadlineSeconds(modack.deadlineExtensionSeconds)
293295
.build());
294-
ApiFutures.addCallback(future, loggingCallback);
296+
ApiFutures.addCallback(future, loggingCallback, directExecutor());
295297
}
296298
}
297299

@@ -303,7 +305,7 @@ public void onFailure(Throwable t) {
303305
.setSubscription(subscription)
304306
.addAllAckIds(idChunk)
305307
.build());
306-
ApiFutures.addCallback(future, loggingCallback);
308+
ApiFutures.addCallback(future, loggingCallback, directExecutor());
307309
}
308310
}
309311
}

branches/autosynth-automl/google-cloud-clients/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/it/ITPubSubTest.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,8 +42,8 @@
4242
import java.util.concurrent.BlockingQueue;
4343
import java.util.concurrent.LinkedBlockingQueue;
4444
import java.util.concurrent.TimeUnit;
45-
import junit.framework.Assert;
4645
import org.junit.AfterClass;
46+
import org.junit.Assert;
4747
import org.junit.BeforeClass;
4848
import org.junit.Rule;
4949
import org.junit.Test;

0 commit comments

Comments
 (0)