-
Notifications
You must be signed in to change notification settings - Fork 11.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
[ISSUE #7326] Split the request to register to the nameserver #7325
Conversation
8b3ead0
to
289b16b
Compare
Codecov Report
@@ Coverage Diff @@
## develop #7325 +/- ##
=============================================
- Coverage 42.69% 42.64% -0.05%
+ Complexity 9474 9466 -8
=============================================
Files 1152 1152
Lines 82721 82746 +25
Branches 10781 10783 +2
=============================================
- Hits 35315 35288 -27
- Misses 42997 43042 +45
- Partials 4409 4416 +7
... and 20 files with indirect coverage changes 📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more |
broker/src/main/java/org/apache/rocketmq/broker/BrokerController.java
Outdated
Show resolved
Hide resolved
6882f04
to
4c3f678
Compare
topicConfigWrapper.setTopicConfigTable(this.getTopicConfigManager().getTopicConfigTable()); | ||
if (this.brokerConfig.isEnableSplitRegistration() | ||
&& topicConfigTable.size() >= this.brokerConfig.getSplitRegistrationSize() | ||
&& needRegister(forceRegister)) { |
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.
There is no need to determine needRegister here
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.
Fixed.
private TopicConfigAndMappingSerializeWrapper buildSerializeWrapper(final ConcurrentMap<String, TopicConfig> topicConfigTable) { | ||
return buildSerializeWrapper(topicConfigTable, Maps.newHashMap()); | ||
} | ||
|
||
private TopicConfigAndMappingSerializeWrapper buildSerializeWrapper( |
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.
It would be better move these two methods to TopicConfigManager
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.
Fixed.
@@ -396,6 +396,10 @@ public class BrokerConfig extends BrokerIdentity { | |||
|
|||
private boolean enableMixedMessageType = false; | |||
|
|||
private boolean enableSplitRegistration = false; |
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.
Just a reminder to the users that this switch cannot be used together with deleteTopicWithBrokerRegistration, otherwise there will be a loss of routing.
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.
Fixed.
Signed-off-by: Ziy1-Tan <[email protected]>
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
Which Issue(s) This PR Fixes
Fixes #7326
Brief Description
How Did You Test This Change?