Skip to content

Commit fd9b290

Browse files
authored
Use the current term in a logging where it is relevant (elastic#116786) (elastic#116901)
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)
1 parent 1336864 commit fd9b290

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

server/src/main/java/org/elasticsearch/cluster/coordination/CoordinationState.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -467,7 +467,7 @@ public void handleCommit(ApplyCommitRequest applyCommit) {
467467
logger.debug(
468468
"handleCommit: ignored commit request due to term mismatch "
469469
+ "(expected: [term {} version {}], actual: [term {} version {}])",
470-
getLastAcceptedTerm(),
470+
getCurrentTerm(),
471471
getLastAcceptedVersion(),
472472
applyCommit.getTerm(),
473473
applyCommit.getVersion()

0 commit comments

Comments
 (0)