Uh oh!
There was an error while loading. Please reload this page.
Pubsub hp - #1483
Conversation
googlebot
commented
Dec 17, 2016
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. |
davidtorres
commented
Dec 17, 2016
@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
commented
Dec 17, 2016
Changes Unknown when pulling 68d79ad on davidtorres:pubsub-hp into ** on GoogleCloudPlatform:pubsub-hp**. |
pongad
left a comment
There was a problem hiding this comment.
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.
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
| } | ||
| 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.
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
This comment was marked as spam.
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.
This comment was marked as spam.
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
| 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.
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
| clock); | ||
| } | ||
| streamingSubscriberConnections = new ArrayList<StreamingSubscriberConnection>(numChannels); | ||
| pollingSubscriberConnections = new ArrayList<PollingSubscriberConnection>(numChannels); |
This comment was marked as spam.
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.
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.
This comment was marked as spam.
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
| 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.
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
This comment was marked as spam.
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.
This comment was marked as spam.
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
| 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.
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
This comment was marked as spam.
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.
This comment was marked as spam.
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
pongad
commented
Dec 19, 2016
@davidtorres Could you change the commit email? The one you're using, while undoubtedly yours, seems to be running into cla troubles. |
pongad
commented
Dec 19, 2016
Also cc @garrettjonesgoogle |
googlebot
commented
Dec 19, 2016
CLAs look good, thanks! |
davidtorres
commented
Dec 19, 2016
@pongad comments addressed please take a look |
davidtorres
commented
Dec 19, 2016
@pongad Not sure about the flakyness, can you point me to where you see this? |
coveralls
commented
Dec 19, 2016
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.
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
| @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.
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
| * 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.
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
This comment was marked as spam.
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.
This comment was marked as spam.
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
pongad
commented
Dec 19, 2016
@davidtorres I'll approve the change from my end, please also address Garrett's comments |
pongad
commented
Dec 19, 2016
@davidtorres The flake I thought I saw seems to have disappeared 😄 |
…ss to use containment in favor of inheritance
coveralls
commented
Dec 20, 2016
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.
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
| * 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.
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
garrettjonesgoogle
commented
Dec 21, 2016
LGTM, I don't want to block on more refactoring right now. |
coveralls
commented
Dec 21, 2016
Changes Unknown when pulling f8c8dc6 on davidtorres:pubsub-hp into ** on GoogleCloudPlatform:pubsub-hp**. |
Co-authored-by: release-please[bot] <55107282+release-please[bot]@users.noreply.github.com>
) * 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
) * 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
Co-authored-by: release-please[bot] <55107282+release-please[bot]@users.noreply.github.com>
…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>
…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>
… to v2.15.0 (googleapis#1483) * chore(deps): update dependency com.google.cloud:google-cloud-bigtable to v2.15.0 * 🦉 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>
No description provided.