Skip to content

Commit

Permalink
ZOOKEEPER-3061: add more details to 'Unhandled scenario for peer' log…
Browse files Browse the repository at this point in the history
….warn message

Author: Christine Poerschke <[email protected]>
Author: Christine Poerschke <[email protected]>

Reviewers: Allan Lyu <[email protected]>, Benjamin Reed <[email protected]>, Norbert Kalmar <[email protected]>

Closes apache#555 from cpoerschke/master-ZOOKEEPER-3061 and squashes the following commits:

1399682 [Christine Poerschke] Merge remote-tracking branch 'origin/master' into master-ZOOKEEPER-3061
1840c2b [Christine Poerschke] Merge remote-tracking branch 'origin/master' into master-ZOOKEEPER-3061
1d3e7bc [Christine Poerschke] ZOOKEEPER-3061: add more details to 'Unhandled scenario for peer' log.warn message
  • Loading branch information
cpoerschke authored and RokLenarcic committed Sep 3, 2022
1 parent a00b01f commit cbea523
Showing 1 changed file with 8 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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());
Expand Down

0 comments on commit cbea523

Please sign in to comment.