feat: add support for exactly once subscriptions#1572
Merged
gcf-merge-on-green[bot] merged 36 commits intomainfrom Sep 22, 2022
Merged
feat: add support for exactly once subscriptions#1572gcf-merge-on-green[bot] merged 36 commits intomainfrom
gcf-merge-on-green[bot] merged 36 commits intomainfrom
Conversation
0ca513a to
179b617
Compare
This partially reverts commit 0ca513a.
* feat: add 'with response' methods for acks, and save the response promises * chore: fix slightly broken rebase * chore: remove extra comment * tests: update to bring mocks in line with current real code * fix: also reject Promises on failure, and add tests
* feat: add 'with response' methods for acks, and save the response promises * chore: fix slightly broken rebase * chore: remove extra comment * tests: update to bring mocks in line with current real code * fix: also reject Promises on failure, and add tests * feat: add processAckError to parse ErrorInfo * fix: add unit tests and fix some found bugs
|
Warning: This pull request is touching the following templated files:
|
Collaborator
Author
|
I'm tracking review changes over here: #1624 |
…ery (#1624) * chore: add 'delivery' to 'exactly once' * samples: also update sample names * chore: more 'delivery' * samples: delete renamed js samples * fix: disable automatic gax retries on ack/modAck for EOS * fix: also close out pending ack/modAck retries on subscriber close * docs: better comments about what happens in failure cases * docs: rename setAckDeadline to setStreamAckDeadline * fix: improve comments on Message.ack/modAck/nack, and short-circuit the non-EOS case * samples: add info about what happens when calling ackWithResponse with a non-EOS sub * samples: also update js * docs: remove extraneous sample links
maheshgattani
approved these changes
Sep 22, 2022
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Adds support for exactly-once delivery subscriptions. Please see the samples for information on how to interact with exactly-once subscriptions properly (specifically, using the
*WithResponse()methods).Other client library folks - Mahesh needs to review this, so please don't merge until that happens.
Fixes #1571 🦕