-
Notifications
You must be signed in to change notification settings - Fork 341
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
[Issue 172] Add key based batcher #400
Conversation
rerun failure checks |
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.
Thanks @freeznet , great changes, just a little comment, please check.
pulsar/consumer_test.go
Outdated
receivedMessageIndex++ | ||
} | ||
|
||
// TODO: add OrderingKey support |
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.
Thanks @freeznet work for this, can you help to create an issue to track this issue?
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.
new issue added #401, also add to comment to track.
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 +1
@freeznet Please merge master code to fix conflict, thanks? |
5296160
to
3e27bc5
Compare
resolved ;) |
Fixes #172
Motivation
Add a new batch message container named
keyBasedBatchContainer
to support batching message in key_shared subscription mode.Modifications
BatchBuilder
interface, addFlushBatches
andIsMultiBatches
funcBatchBuilder
struct tobatchContainer
keyBasedBatchContainer
Verifying this change
This change added tests and can be verified as follows: