You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@zookeeper.apache.org by "Li Wang (Jira)" <ji...@apache.org> on 2024/07/13 04:52:00 UTC

[jira] [Created] (ZOOKEEPER-4845) Fix the digest mismatch log

Li Wang created ZOOKEEPER-4845:
----------------------------------

             Summary: Fix the digest mismatch log
                 Key: ZOOKEEPER-4845
                 URL: https://issues.apache.org/jira/browse/ZOOKEEPER-4845
             Project: ZooKeeper
          Issue Type: Improvement
            Reporter: Li Wang


Currently we log the TxnDigest object as the expected digest instead of the tree digest number. This makes it quite confusing when comparing the expected digest with the actual digest, as the actual digest is the number.


Change digest to logDigest in the following code.
 
{code:java}
if (firstMismatchTxn) {
                LOG.error("First digest mismatch on txn: {}, {}, "
                        + "expected digest is {}, actual digest is {}, ",
                        header, txn, digest, actualDigest);
                firstMismatchTxn = false;
            }


{code}




--
This message was sent by Atlassian Jira
(v8.20.10#820010)