Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unset start time for ordered consumer on retry #1341

Merged
merged 1 commit into from
Jul 7, 2023

Conversation

bruth
Copy link
Member

@bruth bruth commented Jul 7, 2023

If an ordered consumer was configured with a start time, on retry, the copied consumer config would start with sequence but the existing start time opt would conflict causing a config error.

Fix #1281


Just noting that I added the StartTime() opt to the test which, without clearing start time on retry (the fix), it will demonstrate the behavior and get this message:

nats: consumer delivery policy is deliver by start sequence, but optional start time is also set: recreating ordered consumer on connection [4] for subscription on "a"

If an ordered consumer was configured with a start time, on
retry, the copied consumer config would start with sequence
but the existing start time opt would conflict causing
a config error.

Fix #1281

Signed-off-by: Byron Ruth <byron@nats.io>
@bruth bruth requested review from wallyqs and piotrpio July 7, 2023 10:56
Copy link
Collaborator

@piotrpio piotrpio left a comment

Choose a reason for hiding this comment

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

LGTM!

@piotrpio piotrpio merged commit fd05bbb into main Jul 7, 2023
2 checks passed
@piotrpio piotrpio deleted the unset-start-time-ordered-consumer branch July 7, 2023 11:46
@piotrpio piotrpio mentioned this pull request Jul 20, 2023
piotrpio pushed a commit that referenced this pull request Aug 22, 2023
If an ordered consumer was configured with a start time, on
retry, the copied consumer config would start with sequence
but the existing start time opt would conflict causing
a config error.

Fix #1281

Signed-off-by: Byron Ruth <byron@nats.io>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Restarting Ordered Consumer by Start Time
2 participants