Skip to content

Commit b6ddfba

Browse files
Uncomments out solution, and makes NodeJoiningIT
test that the warn log is not present
1 parent 3e501b4 commit b6ddfba

File tree

3 files changed

+311
-205
lines changed

3 files changed

+311
-205
lines changed

server/src/internalClusterTest/java/org/elasticsearch/cluster/coordination/MasterElectionTestCase.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -83,6 +83,7 @@ protected CountDownLatch configureElectionLatchForReElectedMaster(String masterN
8383
DiscoveryNode masterNode = event.state().nodes().getMasterNode();
8484
long currentTerm = event.state().coordinationMetadata().term();
8585
if (masterNode != null && masterNode.getName().equals(masterNodeName) && currentTerm > originalTerm) {
86+
logger.info("Carrot: Master knows it's reelected. term:{}, version:{}", currentTerm, event.state().getVersion());
8687
masterKnowsItIsReElectedLatch.countDown();
8788
}
8889
};

0 commit comments

Comments
 (0)