-
Notifications
You must be signed in to change notification settings - Fork 3.6k
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
add api to increase partitions of existing non-global partitioned-topic #299
Conversation
The change looks good for a quick approach to the issue. The only concern that I have is that there is no way to retain ordering when doing this operation, since the switch from the old to new partitions is not coordinated. |
The violation of the ordering behavior should be included in the documentation. |
That's correct. Here after increasing partitions, disconnecting producers/consumer will not help because they again connect to individual partition-topic and client has to restart application to create producer/consumer for newly created partitioned because that's the only time when PulsarClient fetches new partition-metadata and creates producers for them. And client restart has to be coordinated. |
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.
👍 Looks good. Just a couple of minor conflicts with master
b121bf0
to
9603e7a
Compare
yes, rebased with master. |
* Support producer name for Message Signed-off-by: xiaolong.ran <rxl@apache.org> * add test case for producer name Signed-off-by: xiaolong.ran <rxl@apache.org> * fix ci error Signed-off-by: xiaolong.ran <rxl@apache.org> * fix comments Signed-off-by: xiaolong.ran <rxl@apache.org> * fix comments Signed-off-by: xiaolong.ran <rxl@apache.org>
Fixes apache#299 PulsarEntryFormatter doesn't handle null value correctly now. If a message with null value was sent by a producer, the consumer will receive a message with an empty string. This PR fixes the bug and adds to tests to verify KoP could handle the null value no matter what the entry format is.
Motivation
Addressing #291.
Modifications
Result
pulsar can support incrementing of partitions