Uploaded image for project: 'ZooKeeper'
  1. ZooKeeper
  2. ZOOKEEPER-3410

./zkTxnLogToolkit.sh will throw the NPE and stop the process of formatting txn logs due to the data's content is null

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Minor
    • Resolution: Resolved
    • Affects Version/s: 3.6.0
    • Fix Version/s: None
    • Component/s: scripts

      Description

      [zk: 127.0.0.1:2180(CONNECTED) 26] create -t 500 /ttl_node

      19-5-30 下午06时10分50秒 session 0x10007a75c0c0000 cxid 0x0 zxid 0x6 createSession 30000
      Exception in thread "main" java.lang.NullPointerException
      at java.lang.String.<init>(String.java:566)
      at org.apache.zookeeper.server.persistence.TxnLogToolkit.getDataStrFromTxn(TxnLogToolkit.java:316)
      at org.apache.zookeeper.server.persistence.TxnLogToolkit.printTxn(TxnLogToolkit.java:272)
      at org.apache.zookeeper.server.persistence.TxnLogToolkit.printTxn(TxnLogToolkit.java:266)
      at org.apache.zookeeper.server.persistence.TxnLogToolkit.dump(TxnLogToolkit.java:217)
      at org.apache.zookeeper.server.persistence.TxnLogToolkit.main(TxnLogToolkit.java:116)

      t*xnData.append(createTTLTxn.getPath() + "," + new String(createTTLTxn.getData()))*
      .append("," + createTTLTxn.getAcl() + "," + createTTLTxn.getParentCVersion())
      .append("," + createTTLTxn.getTtl());

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                maoling maoling
                Reporter:
                maoling maoling
              • Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:

                  Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0h
                  0h
                  Logged:
                  Time Spent - 1.5h
                  1.5h