-
Notifications
You must be signed in to change notification settings - Fork 698
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] Recreating ordered consumers on server restart #1425
Conversation
Signed-off-by: Piotr Piotrowski <[email protected]>
Signed-off-by: Piotr Piotrowski <[email protected]>
Signed-off-by: Piotr Piotrowski <[email protected]>
eb6a4ac
to
79f1255
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Overall, a solind improvement.
Just few comments to consider/answer.
if c.currentConsumer.subscriptions[""] != nil { | ||
c.currentConsumer.subscriptions[""].Stop() | ||
} | ||
consName := c.currentConsumer.CachedInfo().Name |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
are we confident that consumer name is updated after recreation, so we always delete the proper one?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should be good, in line 443 we do:
c.currentConsumer = cons.(*pullConsumer)
This is done right after successful create.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
Signed-off-by: Piotr Piotrowski <[email protected]>
fbe2afa
to
3ef9c60
Compare
No description provided.