GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — feat: add support for exactly once subscriptions by feywind · Pull Request #1572 · googleapis/nodejs-pubsub

This repository was archived by the owner on Oct 21, 2026. It is now read-only.

Conversation

@feywind

@feywind feywind commented May 31, 2022 •
edited
Loading

Uh oh!

There was an error while loading. Please reload this page.

Copy link
Copy Markdown
Contributor

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 🦕

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

digiz3d reacted with hooray emoji
All reactions
  • 🎉 1 reaction
@feywind
feat: add minimum lease extensions for exactly-once
0ca513a
@product-auto-label product-auto-label Bot added size: s Pull request size is small. api: pubsub Issues related to the googleapis/nodejs-pubsub API. labels May 31, 2022
@feywind feywind added the do not merge Indicates a pull request not ready for merge, due to either quality or timing. label May 31, 2022
@feywind feywind closed this May 31, 2022
@feywind
feywind force-pushed the exactly-once-main branch from 0ca513a to 179b617 Compare May 31, 2022 20:06
@product-auto-label product-auto-label Bot added size: u Pull request is empty. and removed size: s Pull request size is small. labels May 31, 2022
@feywind feywind mentioned this pull request May 31, 2022
feat: add minimum lease extensions for exactly-once #1573
Closed
feywind and others added 19 commits June 6, 2022 12:08
@feywind
chore: merge remote-tracking branch 'remotes/origin/main' into exactl…
3ffea4d
…y-once-1
@feywind
feat: put back warning about exactly once support
2e5fb61
This partially reverts commit 0ca513a.
@feywind
Merge branch 'main' into exactly-once-1
15b4a37
@feywind
feat: add minExtension setting and plug it into EOS and ackDeadline s…
ec84cf9
…ettings
@feywind
Merge branch 'main' into exactly-once-1
7816c1b
@feywind
feat: bring back Duration, and put min/max in the right places
406ad78
@feywind
tests: add unit test for Duration
913d79c
@feywind
tests: add deadline tests and fix a few bugs
9204194
@feywind
chore: revert partially completed incorrect change
b5a95a5
@feywind
chore: merge remote-tracking branch 'remotes/origin/main' into exactl…
dd6a073
…y-once-1
@feywind
docs: work around jsdoc linking bug
0c4ffe0
@feywind
chore: merge remote-tracking branch 'remotes/origin/main' into exactl…
23727bc
…y-once-1
@feywind
chore: merge remote-tracking branch 'remotes/origin/main' into exactl…
6102095
…y-once-1
@feywind
chore: split up updateAckDeadline for readability
bdc91aa
@feywind
fix: clean up min/max deadline extension handling to match other lang…
09b8509
…uages
@feywind
chore: merge remote-tracking branch 'remotes/origin/main' into exactl…
9095ba0
…y-once-1
@feywind
tests: update the histogram test to work within the new default max e…
ad8080a
…xtension
@feywind
feat: add "with response" versions of ack/nack/modack (#1588)
c9180de
* 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
@feywind
feat: add processAckError to parse ErrorInfo (#1589)
ae7359b
* 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
@feywind feywind reopened this Aug 16, 2022
@product-auto-label product-auto-label Bot removed the size: u Pull request is empty. label Aug 16, 2022
@feywind
feywind requested a review from a team September 14, 2022 19:54
@feywind feywind assigned maheshgattani Sep 14, 2022
@feywind feywind added owlbot:run Add this label to trigger the Owlbot post processor. and removed do not merge Indicates a pull request not ready for merge, due to either quality or timing. labels Sep 14, 2022
@gcf-owl-bot gcf-owl-bot Bot removed the owlbot:run Add this label to trigger the Owlbot post processor. label Sep 14, 2022
@gcf-owl-bot
🦉 Updates from OwlBot post-processor
8bd9747
See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md
maheshgattani
maheshgattani reviewed Sep 15, 2022
View reviewed changes
Comment thread src/ack-metadata.ts Resolved

Uh oh!

There was an error while loading. Please reload this page.

Comment thread src/exponential-retry.ts Resolved

Uh oh!

There was an error while loading. Please reload this page.

Comment thread src/message-queues.ts Resolved

Uh oh!

There was an error while loading. Please reload this page.

Comment thread src/message-queues.ts Resolved

Uh oh!

There was an error while loading. Please reload this page.

Comment thread src/message-queues.ts Resolved

Uh oh!

There was an error while loading. Please reload this page.

Comment thread src/subscriber.ts Resolved

Uh oh!

There was an error while loading. Please reload this page.

Comment thread src/subscriber.ts Resolved

Uh oh!

There was an error while loading. Please reload this page.

Comment thread src/subscriber.ts Resolved

Uh oh!

There was an error while loading. Please reload this page.

Comment thread src/subscriber.ts Resolved

Uh oh!

There was an error while loading. Please reload this page.

Comment thread src/subscriber.ts Resolved

Uh oh!

There was an error while loading. Please reload this page.

maheshgattani
maheshgattani reviewed Sep 15, 2022
View reviewed changes
Comment thread samples/exactlyOnceListen.js Resolved

Uh oh!

There was an error while loading. Please reload this page.

feywind added 2 commits September 15, 2022 14:52
@feywind
chore: merge remote-tracking branch 'remotes/origin/main' into exactl…
daa08fe
…y-once-main
@feywind
chore: merge branch 'exactly-once-main' of https://github.com/googlea…
95ff663
…pis/nodejs-pubsub into exactly-once-main
@generated-files-bot

generated-files-bot Bot commented Sep 15, 2022

Copy link
Copy Markdown

Warning: This pull request is touching the following templated files:

  • README.md - README.md is managed by synthtool. However, a partials file can be used to update the README, e.g.: https://github.com/googleapis/nodejs-storage/blob/main/.readme-partials.yaml
  • samples/README.md - samples/README.md is managed by synthtool. However, a partials file can be used to update the README, e.g.: https://github.com/googleapis/nodejs-storage/blob/main/.readme-partials.yaml
All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@feywind

feywind commented Sep 15, 2022

Copy link
Copy Markdown
Contributor Author

I'm tracking review changes over here: #1624

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

feywind added 2 commits September 21, 2022 13:47
@feywind
fix: review changes branch for work in progress on exactly-once deliv…
9cdc3a2
…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
@feywind
Merge branch 'main' into exactly-once-main
8490539
@feywind feywind added the owlbot:run Add this label to trigger the Owlbot post processor. label Sep 21, 2022
@gcf-owl-bot gcf-owl-bot Bot removed the owlbot:run Add this label to trigger the Owlbot post processor. label Sep 21, 2022
gcf-owl-bot Bot added 3 commits September 21, 2022 17:49
@gcf-owl-bot
🦉 Updates from OwlBot post-processor
4c121f5
See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md
@gcf-owl-bot
🦉 Updates from OwlBot post-processor
819c7ee
See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md
@gcf-owl-bot
Merge branch 'exactly-once-main' of https://github.com/googleapis/nod…
b24cf4b
…ejs-pubsub into exactly-once-main
maheshgattani
maheshgattani approved these changes Sep 22, 2022
View reviewed changes
Comment thread samples/listenForMessagesWithExactlyOnceDelivery.js Resolved

Uh oh!

There was an error while loading. Please reload this page.

Comment thread samples/typescript/listenForMessagesWithExactlyOnceDelivery.ts Resolved

Uh oh!

There was an error while loading. Please reload this page.

Comment thread src/message-queues.ts Resolved

Uh oh!

There was an error while loading. Please reload this page.

feywind and others added 3 commits September 22, 2022 15:51
@feywind
samples: clarify retry wording in samples
01b3833
@feywind
docs: update comment about short-circuiting handleAckFailures()
85dd774
@feywind
Merge branch 'main' into exactly-once-main
a35e1a8
@feywind feywind added automerge Merge the pull request once unit tests and other checks pass. owlbot:run Add this label to trigger the Owlbot post processor. labels Sep 22, 2022
@gcf-owl-bot gcf-owl-bot Bot removed the owlbot:run Add this label to trigger the Owlbot post processor. label Sep 22, 2022
@gcf-merge-on-green
gcf-merge-on-green Bot merged commit 998de35 into main Sep 22, 2022
@gcf-merge-on-green
gcf-merge-on-green Bot deleted the exactly-once-main branch September 22, 2022 20:20
@gcf-merge-on-green gcf-merge-on-green Bot removed the automerge Merge the pull request once unit tests and other checks pass. label Sep 22, 2022
@release-please release-please Bot mentioned this pull request Sep 22, 2022
chore(main): release 3.2.0 #1623
Merged
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Reviewers

1 more reviewer
@maheshgattani maheshgattani maheshgattani approved these changes
Reviewers whose approvals may not affect merge requirements

Uh oh!

There was an error while loading. Please reload this page.

Assignees

@maheshgattani maheshgattani

Labels

api: pubsub Issues related to the googleapis/nodejs-pubsub API. size: xl Pull request size is extra large.

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

Add support for exactly-once subscriptions (EOS)

Uh oh!

There was an error while loading. Please reload this page.

2 participants

@feywind @maheshgattani
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.
You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.