dataroaring commented on code in PR #23540:
URL: https://github.com/apache/doris/pull/23540#discussion_r1313801370


##########
docs/en/community/design/metadata-design.md:
##########
@@ -73,7 +73,7 @@ The data flow of metadata is as follows:
 
 2. After the log is written to bdbje, bdbje copies the log to other non-leader 
FE nodes according to the policy (write most/write all). The non-leader FE node 
modifies its metadata memory image by playback of the log, and completes the 
synchronization with the metadata of the leader node.
 
-3. The number of log entries of the leader node reaches the threshold (default 
10w) and meets the checkpoint thread execution cycle (default 60 seconds). 
Checkpoint reads existing image files and subsequent logs and replays a new 
mirror copy of metadata in memory. The copy is then written to disk to form a 
new image. The reason for this is to regenerate a mirror copy instead of 
writing an existing image to an image, mainly considering that the write 
operation will be blocked during writing the image plus read lock. So every 
checkpoint takes up twice as much memory space.
+3. The number of log entries of the leader node reaches the threshold (default 
5w) and meets the checkpoint thread execution cycle (default 60 seconds). 
Checkpoint reads existing image files and subsequent logs and replays a new 
mirror copy of metadata in memory. The copy is then written to disk to form a 
new image. The reason for this is to regenerate a mirror copy instead of 
writing an existing image to an image, mainly considering that the write 
operation will be blocked during writing the image plus read lock. So every 
checkpoint takes up twice as much memory space.

Review Comment:
   It seems that there is no threshold on log entries.



-- 
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: commits-unsubscr...@doris.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscr...@doris.apache.org
For additional commands, e-mail: commits-h...@doris.apache.org

Reply via email to