Skip to content

Pubsub hp#1483

Merged
pongad merged 5 commits into
googleapis:pubsub-hpfrom
davidtorres:pubsub-hp
Dec 21, 2016
Merged

Pubsub hp#1483
pongad merged 5 commits into
googleapis:pubsub-hpfrom
davidtorres:pubsub-hp

Conversation

@davidtorres

Copy link
Copy Markdown

No description provided.

@googlebot

Copy link
Copy Markdown

We found a Contributor License Agreement for you (the sender of this pull request), but were unable to find agreements for the commit author(s). If you authored these, maybe you used a different email address in the git commits than was used to sign the CLA (login here to double check)? If these were authored by someone else, then they will need to sign a CLA as well, and confirm that they're okay with these being contributed to Google.

@googlebot googlebot added the cla: no This human has *not* signed the Contributor License Agreement. label Dec 17, 2016
@davidtorres

Copy link
Copy Markdown
Author

@pongad please take a look, this adds support for falling back to pull and ack when no streaming pull support and fixes the flakiness on the tests

@coveralls

Copy link
Copy Markdown

Coverage Status

Changes Unknown when pulling 68d79ad on davidtorres:pubsub-hp into ** on GoogleCloudPlatform:pubsub-hp**.

@pongad pongad left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Travis and AppVeyor seems to still be flaking but we are moving in the right direction. Thank you for working on this! I have a few comments, mostly stylistic.

void extendExpiration() {
expiration = new Instant(clock.millis()).plus(Duration.standardSeconds(nextExtensionSeconds));
nextExtensionSeconds = 2 * nextExtensionSeconds;
if (nextExtensionSeconds > MAX_ACK_DEADLINE_EXTENSION_SECS) {

This comment was marked as spam.

This comment was marked as spam.

}
Instant now = new Instant(clock.millis());
int totalByteCount = 0;
final List<AckHandler> ackHandlers = new ArrayList<>(responseMessages.size());

This comment was marked as spam.

This comment was marked as spam.

This comment was marked as spam.


List<List<String>> ackChunks = Lists.partition(acksToSend, MAX_PER_REQUEST_CHANGES);
Iterator<List<String>> ackChunksIt = ackChunks.iterator();
while (ackChunksIt.hasNext()) {

This comment was marked as spam.

This comment was marked as spam.

clock);
}
streamingSubscriberConnections = new ArrayList<StreamingSubscriberConnection>(numChannels);
pollingSubscriberConnections = new ArrayList<PollingSubscriberConnection>(numChannels);

This comment was marked as spam.

This comment was marked as spam.

This comment was marked as spam.

ImmutableList<String> receivedAcksCopy = ImmutableList.copyOf(acks);
acks.clear();
List<String> receivedAcksCopy = ImmutableList.copyOf(acks.subList(0, expectedCount));
acks.removeAll(receivedAcksCopy);

This comment was marked as spam.

This comment was marked as spam.

This comment was marked as spam.

modAckDeadlines.clear();
List<ModifyAckDeadline> modAckDeadlinesCopy =
ImmutableList.copyOf(modAckDeadlines.subList(0, expectedCount));
modAckDeadlines.removeAll(modAckDeadlinesCopy);

This comment was marked as spam.

This comment was marked as spam.

This comment was marked as spam.

@pongad

pongad commented Dec 19, 2016

Copy link
Copy Markdown
Contributor

@davidtorres Could you change the commit email? The one you're using, while undoubtedly yours, seems to be running into cla troubles.

@pongad

pongad commented Dec 19, 2016

Copy link
Copy Markdown
Contributor

Also cc @garrettjonesgoogle

@googlebot

Copy link
Copy Markdown

CLAs look good, thanks!

@googlebot googlebot added cla: yes This human has signed the Contributor License Agreement. and removed cla: no This human has *not* signed the Contributor License Agreement. labels Dec 19, 2016
@davidtorres

Copy link
Copy Markdown
Author

@pongad comments addressed please take a look

@davidtorres

Copy link
Copy Markdown
Author

@pongad Not sure about the flakyness, can you point me to where you see this?

@coveralls

Copy link
Copy Markdown

Coverage Status

Changes Unknown when pulling 0d82897 on davidtorres:pubsub-hp into ** on GoogleCloudPlatform:pubsub-hp**.

final StreamObserver<StreamingPullResponse> responseObserver) {
final Stream stream = new Stream();
stream.requestObserver =
new StreamObserver<StreamingPullRequest>() {

This comment was marked as spam.

This comment was marked as spam.

@Override
void initialize() {
final SettableFuture<Void> errorFuture = SettableFuture.create();
final ClientResponseObserver<StreamingPullRequest, StreamingPullResponse> responseObserver =

This comment was marked as spam.

This comment was marked as spam.

* Abstract base implementation class of a subscriber connection in charge of receiving subscription
* messages.
*/
abstract class AbstractSubscriberConnection extends AbstractService {

This comment was marked as spam.

This comment was marked as spam.

This comment was marked as spam.

@pongad

pongad commented Dec 19, 2016

Copy link
Copy Markdown
Contributor

@davidtorres I'll approve the change from my end, please also address Garrett's comments

@pongad

pongad commented Dec 19, 2016

Copy link
Copy Markdown
Contributor

@davidtorres The flake I thought I saw seems to have disappeared 😄

@coveralls

Copy link
Copy Markdown

Coverage Status

Changes Unknown when pulling 6ef9df7 on davidtorres:pubsub-hp into ** on GoogleCloudPlatform:pubsub-hp**.


@Override
protected void doStop() {
protected void stop() {

This comment was marked as spam.

This comment was marked as spam.

* Abstract base implementation class of a subscriber connection in charge of receiving subscription
* messages.
*/
abstract class AbstractSubscriberConnection extends AbstractService {

This comment was marked as spam.

@garrettjonesgoogle

Copy link
Copy Markdown
Contributor

LGTM, I don't want to block on more refactoring right now.

@coveralls

Copy link
Copy Markdown

Coverage Status

Changes Unknown when pulling f8c8dc6 on davidtorres:pubsub-hp into ** on GoogleCloudPlatform:pubsub-hp**.

@pongad pongad merged commit 61687f0 into googleapis:pubsub-hp Dec 21, 2016
chingor13 pushed a commit that referenced this pull request Jan 6, 2026
Co-authored-by: release-please[bot] <55107282+release-please[bot]@users.noreply.github.com>
chingor13 pushed a commit that referenced this pull request Feb 24, 2026
)

* add api key credential

* add no op

* formatting fix

* added tests for ApiKeyCredentials

* formatting fix

* added java docs

* formatting fix

* added error checking

* removed PreCondition dependency

* fixed * import

* updated authenticationType to API-Key

* updated to use assertThrows + expanded java docs
chingor13 pushed a commit that referenced this pull request Mar 12, 2026
)

* add api key credential

* add no op

* formatting fix

* added tests for ApiKeyCredentials

* formatting fix

* added java docs

* formatting fix

* added error checking

* removed PreCondition dependency

* fixed * import

* updated authenticationType to API-Key

* updated to use assertThrows + expanded java docs
lqiu96 pushed a commit that referenced this pull request Mar 20, 2026
Co-authored-by: release-please[bot] <55107282+release-please[bot]@users.noreply.github.com>
suztomo pushed a commit to suztomo/google-cloud-java that referenced this pull request Mar 23, 2026
meltsufin pushed a commit that referenced this pull request Apr 29, 2026
…o v1.123.2 (#1483)

* chore(deps): update dependency com.google.cloud:google-cloud-pubsub to v1.123.2

* 🦉 Updates from OwlBot post-processor

See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md

---------

Co-authored-by: Owl Bot <gcf-owl-bot[bot]@users.noreply.github.com>
meltsufin pushed a commit that referenced this pull request May 1, 2026
…o v1.123.2 (#1483)

* chore(deps): update dependency com.google.cloud:google-cloud-pubsub to v1.123.2

* 🦉 Updates from OwlBot post-processor

See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md

---------

Co-authored-by: Owl Bot <gcf-owl-bot[bot]@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

cla: yes This human has signed the Contributor License Agreement.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants