GeezerVison is showing github.com (truncated) — pubsub: make subscriber connections split requests properly by pongad · Pull Request #1675 · googleapis/google-cloud-java
Conversation
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
|

Changes Unknown when pulling 44ff37f on pongad:partition into ** on GoogleCloudPlatform:master**.
|
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
|
|
<artifactId>truth</artifactId>
|
|
|
<version>0.30</version>
|
|
|
<scope>test</scope>
|
|
|
</dependency>
|
This comment was marked as spam.
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
This comment was marked as spam.
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
|
|
try {
|
|
|
acksToSend = new ArrayList<>(pendingAcks);
|
|
|
logger.log(Level.INFO, "Sending {} acks", acksToSend.size());
|
|
|
logger.log(Level.INFO, "Sending " + acksToSend.size() + " acks");
|
This comment was marked as spam.
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
This comment was marked as spam.
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
|
|
if (ackChunksIt.hasNext()) {
|
|
|
List<String> ackChunk = ackChunksIt.next();
|
|
|
requestBuilder.addAllAckIds(ackChunk);
|
|
|
@VisibleForTesting
|
This comment was marked as spam.
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
This comment was marked as spam.
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
|
|
StreamingPullRequest.Builder[] requests =
|
|
|
partitionAckOperations(acksToSend, ackDeadlineExtensions, MAX_PER_REQUEST_CHANGES);
|
|
|
for (StreamingPullRequest.Builder request : requests) {
|
|
|
requestObserver.onNext(request.build());
|
This comment was marked as spam.
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
This comment was marked as spam.
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
|
|
count = 0;
|
|
|
for (PendingModifyAckDeadline modify : ackDeadlineExtensions) {
|
|
|
for (String ackId : modify.ackIds) {
|
|
|
requests[count / size]
|
This comment was marked as spam.
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
This comment was marked as spam.
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
|

Coverage increased (+0.09%) to 81.204% when pulling ad9dac4 on pongad:partition into a47d5a0 on GoogleCloudPlatform:master.
|
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
|
|
List<StreamingPullRequest> requests = new ArrayList<>();
|
|
|
for (StreamingPullRequest req :
|
|
|
StreamingSubscriberConnection.partitionAckOperations(
|
|
|
acksToSend, ackDeadlineExtensions, size)) {
|
This comment was marked as spam.
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
This comment was marked as spam.
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
|
|
numExtensions += modify.ackIds.size();
|
|
|
}
|
|
|
int numRequests = Math.max(numExtensions, acksToSend.size());
|
|
|
numRequests = numRequests / size + (numRequests % size == 0 ? 0 : 1);
|
This comment was marked as spam.
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
This comment was marked as spam.
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
|
|
Arrays.asList("a", "b", "c"), Collections.<PendingModifyAckDeadline>emptyList(), 3);
|
|
|
Truth.assertThat(requests)
|
|
|
.contains(
|
|
|
StreamingPullRequest.newBuilder().addAckIds("a").addAckIds("b").addAckIds("c").build());
|
This comment was marked as spam.
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
This comment was marked as spam.
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
|
|
requests =
|
|
|
partitionAckOperations(
|
|
|
Arrays.asList("a", "b", "c", "d"),
|
|
|
Arrays.asList(new PendingModifyAckDeadline(42, "A")),
|
This comment was marked as spam.
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
This comment was marked as spam.
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
|

Coverage increased (+0.1%) to 81.215% when pulling 73b80f7 on pongad:partition into a47d5a0 on GoogleCloudPlatform:master.
|
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
suztomo
pushed a commit
to suztomo/google-cloud-java
that referenced
this pull request
Mar 23, 2026
|