Note:
This topic has been translated from a Chinese forum by GPT and might contain errors.
Original topic: 【课程问题】TiDB 数据库核心原理与架构 [TiDB v6] :TiKV-Raft
When a modification request comes in, it first goes to PD to get the data on which TiKV, which leader region, and then goes through propose, append, replication, committed, and apply.
During the apply phase, does only the leader write the Raft log to RocksDB KV, or does the leader send a message to the follower to apply after the apply phase? Or does the follower perform append and write the Raft log to RocksDB KV during the replication phase before sending a message to the leader?
The prerequisite for applying is that the majority of nodes have already written to the raft log. Once the leader node successfully applies, it should be considered a successful application, and the client will receive a commit success. Since the follower nodes have already persisted the log, theoretically, there is no risk of data loss, but the speed of applying may vary.
It is possible that the apply information during the TiKV committed phase is broadcasted.
The image is not visible. Please provide the text you need translated.
The subsequent courses will cover Raft log replication.
If the follower nodes apply at different speeds, will it affect follower read?
This topic was automatically closed 1 minute after the last reply. No new replies are allowed.