You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@rocketmq.apache.org by GitBox <gi...@apache.org> on 2022/08/08 03:54:42 UTC
[GitHub] [rocketmq] ShannonDing commented on a diff in pull request #4796: [ISSUE #4794] Fix deserialize ElectMasterResponseHeader attribute value of brokerMemberGroup is null
ShannonDing commented on code in PR #4796:
URL: https://github.com/apache/rocketmq/pull/4796#discussion_r939802600
##########
controller/src/main/java/org/apache/rocketmq/controller/impl/manager/ReplicasInfoManager.java:
##########
@@ -211,8 +211,10 @@ private boolean tryElectMaster(final ControllerResult<ElectMasterResponseHeader>
response.setNewMasterAddress(candidate);
response.setMasterEpoch(masterEpoch + 1);
response.setSyncStateSetEpoch(syncStateSetEpoch);
- response.setBrokerMemberGroup(buildBrokerMemberGroup(brokerName));
-
+ BrokerMemberGroup brokerMemberGroup = buildBrokerMemberGroup(brokerName);
+ if (null != brokerMemberGroup) {
Review Comment:
what's the default value if buildBrokerMemberGroup is null?
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: dev-unsubscribe@rocketmq.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org