-
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
Avoid to infinitely split bundle #11937
Conversation
pulsar-broker/src/main/java/org/apache/pulsar/broker/loadbalance/impl/BundleSplitterTask.java
Outdated
Show resolved
Hide resolved
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.
I have one question:
Why 1 and not a configurable threshold ? is it for developers / pulsar standalone users ?
First, It's not a config like One namespace, one topic/partition, but the topic's rate is high, the bundle split will infinitely splite bundle, make this topic doesn't work. |
And it's meaningless for split bundle that has only one topic |
why bundle contains one topic cannot split? I am confused. |
Cause it will lead to infinitely split bundle. |
Good catch @shoothzj ! |
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
(cherry picked from commit bef3757)
Motivation
If there is just one topic, but reached the split conditition. The pulsar broker will went to infinitely splitting bundle.
Modifications
If there is just one topic, we do not split.
Documentation
It's an internal change, no need doc