Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Clear metrics when closing JournalStateMachine
### What changes are proposed in this pull request? Clear metrics when closing JournalStateMachine, so when a new instance of JournalStateMachine is created, those metrics can be refreshed. https://github.com/Alluxio/alluxio/blob/bd30e25d7b0103e30dd8de611da250ced85cdf27/core/server/common/src/main/java/alluxio/master/journal/raft/RaftJournalSystem.java#L293-L297 Fix #16704. ### Why are the changes needed? Fix a bug that after a primacy change, metrics of JournalStateMachine will get stuck. ### Does this PR introduce any user facing changes? No. pr-link: #16693 change-id: cid-572df304ceeeebe78f36d22784d65a5088c58693
- Loading branch information
Showing
3 changed files
with
45 additions
and
0 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