From 987215849053bbe83feb014a7aa2bb2e88d02c54 Mon Sep 17 00:00:00 2001 From: Chen Date: Thu, 31 Oct 2024 17:56:21 +0800 Subject: [PATCH] enterElection reason message tidy up. (#1677) --- .../src/main/java/io/aeron/cluster/ConsensusModuleAgent.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/aeron-cluster/src/main/java/io/aeron/cluster/ConsensusModuleAgent.java b/aeron-cluster/src/main/java/io/aeron/cluster/ConsensusModuleAgent.java index d27c33febb..2b1789624a 100644 --- a/aeron-cluster/src/main/java/io/aeron/cluster/ConsensusModuleAgent.java +++ b/aeron-cluster/src/main/java/io/aeron/cluster/ConsensusModuleAgent.java @@ -2010,7 +2010,8 @@ else if (RecordingSignalEventDecoder.TEMPLATE_ID == templateId) if (null == election && ConsensusModule.State.ACTIVE == state) { - enterElection(logAdapter.isLogEndOfStreamAt(position), "log recording stopped"); + final boolean isEos = logAdapter.isLogEndOfStreamAt(position); + enterElection(isEos, "log recording stopped: eos=" + isEos); return workCount; } }