-
Notifications
You must be signed in to change notification settings - Fork 6
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
217 fix super stream consumer property #218
217 fix super stream consumer property #218
Conversation
Hello, thanks for your PR. |
@tunniclm Thank you. |
Brilliant, very good work and thanks! Added just a very minor comment, but everything else looks spiffy and clean ✨ |
LGTM for me, just needs a rebase! I haven't worked on this project for a minute now so maybe a second pair of eyes might be ideal. |
When a stream consumer attaches to a stream that is part of a super stream it should set the "super-stream" property to the name of the super stream in order to ensure the partition index will be setup enabling the consumers to be balanced and rebalanced across the partitions.
94fbc3c
to
84725e9
Compare
Rebased on latest |
@tunniclm the merge has been blocked due to the CI failing, can you fix that? |
Goodness, I didn't notice that - sorry! |
Fixes #217
The active part of the change is adding the property to the consumer:
https://github.com/coders51/rabbitmq-stream-js-client/pull/218/files#diff-25d66d74617fe2e23d7946bd6e3ba95640ab1b9bc8947445d604fc271c7c1f12R490-R492
The rest is plumbing to get the super stream name passed down to the right place.
I have added a test which fails on
main
and passes on this branch. I have included it inside the existing super stream consumer end-to-end test.I'd be happy to work through any comments or suggested restructures in order to get this in shape to be merged.
Thanks