diff --git a/src/java/main/org/apache/zookeeper/server/quorum/LearnerHandler.java b/src/java/main/org/apache/zookeeper/server/quorum/LearnerHandler.java index f6c68b01355..023d6a63ca2 100644 --- a/src/java/main/org/apache/zookeeper/server/quorum/LearnerHandler.java +++ b/src/java/main/org/apache/zookeeper/server/quorum/LearnerHandler.java @@ -792,7 +792,14 @@ public boolean syncFollower(long peerLastZxid, ZKDatabase db, Leader leader) { txnProposalItr.close(); } } else { - LOG.warn("Unhandled scenario for peer sid: " + getSid()); + LOG.warn("Unhandled scenario for peer sid: {} maxCommittedLog=0x{}" + + " minCommittedLog=0x{} lastProcessedZxid=0x{}" + + " peerLastZxid=0x{} txnLogSyncEnabled={}", getSid(), + Long.toHexString(maxCommittedLog), + Long.toHexString(minCommittedLog), + Long.toHexString(lastProcessedZxid), + Long.toHexString(peerLastZxid), + txnLogSyncEnabled); } LOG.debug("Start forwarding 0x" + Long.toHexString(currentZxid) + " for peer sid: " + getSid());