Skip to content

Commit

Permalink
Use the current term in a logging where it is relevant (elastic#116786)
Browse files Browse the repository at this point in the history
As title says, this PR logs current term instead of last-accepted term
in a logging message where the former is expected.

(cherry picked from commit 131d3c1)
  • Loading branch information
ywangd committed Nov 17, 2024
1 parent 1336864 commit fca96b0
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -467,7 +467,7 @@ public void handleCommit(ApplyCommitRequest applyCommit) {
logger.debug(
"handleCommit: ignored commit request due to term mismatch "
+ "(expected: [term {} version {}], actual: [term {} version {}])",
getLastAcceptedTerm(),
getCurrentTerm(),
getLastAcceptedVersion(),
applyCommit.getTerm(),
applyCommit.getVersion()
Expand Down

0 comments on commit fca96b0

Please sign in to comment.