This is an automated email from the ASF dual-hosted git repository.
jinrongtong pushed a commit to branch develop
in repository https://gitbox.apache.org/repos/asf/rocketmq.git
The following commit(s) were added to refs/heads/develop by this push:
new 6c90aace36 [ISSUE #8802] Update controller design.md (#8803)
6c90aace36 is described below
commit 6c90aace3659de705abdfda16761c338853291af
Author: luozongle01 <[email protected]>
AuthorDate: Thu Oct 10 09:48:30 2024 +0800
[ISSUE #8802] Update controller design.md (#8803)
---
docs/cn/controller/design.md | 4 ++--
docs/cn/image/controller/controller_design_3.png | Bin 77603 -> 70160 bytes
docs/en/controller/design.md | 4 ++--
docs/en/image/controller/controller_design_3.png | Bin 77603 -> 70160 bytes
4 files changed, 4 insertions(+), 4 deletions(-)
diff --git a/docs/cn/controller/design.md b/docs/cn/controller/design.md
index 563a624edd..13eba7764a 100644
--- a/docs/cn/controller/design.md
+++ b/docs/cn/controller/design.md
@@ -121,13 +121,13 @@ nextTransferFromWhere + size >
currentTransferEpochEndOffset,则将 selectMapp

-`current state(4byte) + Two flags(4byte) + slaveAddressLength(4byte) +
slaveAddress(50byte)`
+`current state(4byte) + Two flags(4byte) + slaveBrokerId(8byte)`
- Current state 代表当前的 HAConnectionState,也即 HANDSHAKE。
- Two flags 是两个状态标志位,其中,isSyncFromLastFile 代表是否要从 Master
的最后一个文件开始复制,isAsyncLearner 代表该 Slave 是否是异步复制,并以 Learner 的形式接入 Master。
-- slaveAddressLength 与 slaveAddress 代表了该 Slave 的地址,用于后续加入 SyncStateSet 。
+- slaveBrokerId 代表了该 Slave 的 brokerId,用于后续加入 SyncStateSet 。
2.AutoSwitchHaConnection (Master) 会向 Slave 回送 HandShake 包,如下:
diff --git a/docs/cn/image/controller/controller_design_3.png
b/docs/cn/image/controller/controller_design_3.png
index 8c475bcecf..0379c231d4 100644
Binary files a/docs/cn/image/controller/controller_design_3.png and
b/docs/cn/image/controller/controller_design_3.png differ
diff --git a/docs/en/controller/design.md b/docs/en/controller/design.md
index ba2de58af1..af4958a4d3 100644
--- a/docs/en/controller/design.md
+++ b/docs/en/controller/design.md
@@ -112,13 +112,13 @@ According to the above, we can know the
AutoSwitchHaService protocol divides log

-`current state(4byte) + Two flags(4byte) + slaveAddressLength(4byte) +
slaveAddress(50byte)`
+`current state(4byte) + Two flags(4byte) + slaveBrokerId(8byte)`
- `Current state` represents the current HAConnectionState, which is HANDSHAKE.
- Two flags are two status flags, where `isSyncFromLastFile` indicates whether
to start copying from the Master's last file, and `isAsyncLearner` indicates
whether the Slave is an asynchronous copy and joins the Master as a Learner.
-- `slaveAddressLength` and `slaveAddress` represent the address of the Slave,
which will be used later to join the SyncStateSet.
+- `slaveBrokerId` represent the brokerId of the Slave, which will be used
later to join the SyncStateSet.
2.AutoSwitchHaConnection (Master) will send a HandShake packet back to the
Slave as follows:
diff --git a/docs/en/image/controller/controller_design_3.png
b/docs/en/image/controller/controller_design_3.png
index 8c475bcecf..0379c231d4 100644
Binary files a/docs/en/image/controller/controller_design_3.png and
b/docs/en/image/controller/controller_design_3.png differ