You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardexpand all lines: maintainer/barrier.go
+5-22
Original file line number
Diff line number
Diff line change
@@ -23,9 +23,9 @@ import (
23
23
// Barrier manage the block events for the changefeed
24
24
// the block event processing logic:
25
25
// 1. dispatcher report an event to maintainer, like ddl, sync point
26
-
// 2. maintainer wait for all dispatchers to reach the same commit ts (all dispatchers will report the same event)
26
+
// 2. maintainer wait for all dispatchers reporting block event (all dispatchers will report the same event)
27
27
// 3. maintainer choose one dispatcher to write(tack an action) the event to downstream, (resend logic is needed)
28
-
// 4. maintainer wait for the selected dispatcher advance its checkpoint ts,(means it already finished the write action), (resend logic is needed)
28
+
// 4. maintainer wait for the selected dispatcher advance its checkpoint ts, checkpoint ts >= block ts,(means it already finished the write action), (resend logic is needed)
29
29
// 5. maintainer send pass action to all other dispatchers. (resend logic is needed)
30
30
// 6. maintainer wait for all dispatchers advance checkpoints, and cleanup memory
0 commit comments