-
Notifications
You must be signed in to change notification settings - Fork 556
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
10707: Periodically log the progress while partition is waiting to be ready r=deepthidevaki a=deepthidevaki ## Description Introduced a throttled logger that logs only once every configured interval. Used this logger to log when new entries are committed while a node is waiting to be ready. Since using the thtrottle logger, it will not flood the log by logging each commit. To enable this, this PR also refactored `setCommitIndex`. Previously, setting first commit index and check if node is ready is done for every commit. This is unnecessary, as it is relevant only until the node is ready. So this is moved to a commit listener which is only active while the node is waiting to be ready. So that path is not executed unnecessarily during normal execution. Also remove "volatile" from firstCommitIndex. It is not accessed outside of raft context. There are also other volatile fields, which I think can be removed. But they need to be done carefully. So I will leave it out of this PR. ## Related issues closes #9963 Co-authored-by: Deepthi Devaki Akkoorath <deepthidevaki@gmail.com> Co-authored-by: Deepthi Devaki Akkoorath <deepthidevaki@users.noreply.github.com>
- Loading branch information
Showing
5 changed files
with
386 additions
and
12 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.