Skip to content
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 #8802] Update controller design.md #8803

Merged
merged 1 commit into from
Oct 10, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions docs/cn/controller/design.md
Original file line number Diff line number Diff line change
Expand Up @@ -121,13 +121,13 @@ nextTransferFromWhere + size > currentTransferEpochEndOffset,则将 selectMapp

![示意图](../image/controller/controller_design_3.png)

`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 包,如下:

Expand Down
Binary file modified docs/cn/image/controller/controller_design_3.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
4 changes: 2 additions & 2 deletions docs/en/controller/design.md
Original file line number Diff line number Diff line change
Expand Up @@ -112,13 +112,13 @@ According to the above, we can know the AutoSwitchHaService protocol divides log

![示意图](../image/controller/controller_design_3.png)

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

Expand Down
Binary file modified docs/en/image/controller/controller_design_3.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading