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/05/12 07:58:12 UTC

[GitHub] [rocketmq] hzh0425 commented on a diff in pull request #4272: [Summer of Code] Support switch role for broker

hzh0425 commented on code in PR #4272:
URL: https://github.com/apache/rocketmq/pull/4272#discussion_r871065178


##########
store/src/main/java/org/apache/rocketmq/store/ha/autoswitch/AutoSwitchHAClient.java:
##########
@@ -42,22 +43,33 @@
 
 public class AutoSwitchHAClient extends ServiceThread implements HAClient {
 
+    /**
+     * Handshake header buffer size. Schema: state ordinal + flag(isSyncFromLastFile) + slaveId + slaveAddressLength.
+     */
+    public static final int HANDSHAKE_HEADER_SIZE = 4 + 4 + 8 + 4;

Review Comment:
   嗯嗯, 后续应该会直接用 brokerId 来标识, 启用 address.



-- 
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