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

[FIXED] Remove ConsumerInfo() calls in Consume() and Messages() after reconnect. #1643

Merged
merged 2 commits into from
Jun 13, 2024

Conversation

piotrpio
Copy link
Collaborator

@piotrpio piotrpio commented Jun 10, 2024

  • Consume() and Messages() no longer call ConsumerInfo() on upon reconnect.
  • Ordered consumers now reset on each reconnect event.

Signed-off-by: Piotr Piotrowski piotr@synadia.com

@piotrpio piotrpio force-pushed the fix-consumer-reconnect branch 2 times, most recently from 496c95f to 9c4331e Compare June 10, 2024 14:43
Copy link
Member

@Jarema Jarema 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 force-pushed the fix-consumer-reconnect branch 2 times, most recently from 4b04df2 to c880273 Compare June 13, 2024 12:20
@piotrpio piotrpio changed the title [FIXED] Unlimited ConsumerInfo() calls in Consume() after reconnect. [FIXED] Remove ConsumerInfo() calls in Consume() and Messages() after reconnect. Jun 13, 2024
@piotrpio piotrpio requested a review from Jarema June 13, 2024 12:22
This fixes an issue in `Consume()` and `Messages()` where a limited number of ConsumerInfo() attempts (10) meant that if JetStream was not available for longer than ~90s after reconnect the process was stopped. The number of retry attempts is now unlimited, reporting a transient error on each failed attempt.

Signed-off-by: Piotr Piotrowski <piotr@synadia.com>
@piotrpio piotrpio force-pushed the fix-consumer-reconnect branch 2 times, most recently from 6f47d1e to 35b4ad1 Compare June 13, 2024 21:36
- `Consume()` and `Messages()` no longer call `ConsumerInfo()` on upon reconnect.
- Ordered consumers now reset on each reconnect event.

Signed-off-by: Piotr Piotrowski <piotr@synadia.com>
@piotrpio piotrpio merged commit 66b92a9 into main Jun 13, 2024
2 checks passed
@piotrpio piotrpio deleted the fix-consumer-reconnect branch June 13, 2024 22:19
@piotrpio piotrpio mentioned this pull request Jun 14, 2024
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.

None yet

3 participants