You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@zookeeper.apache.org by "maoling (JIRA)" <ji...@apache.org> on 2019/06/01 13:34:00 UTC

[jira] [Created] (ZOOKEEPER-3410) ./zkTxnLogToolkit.sh will throw the NPE and stop the process of formatting txn logs due to the data's content is null

maoling created ZOOKEEPER-3410:
----------------------------------

             Summary: ./zkTxnLogToolkit.sh will throw the NPE and stop the process of formatting txn logs due to the data's content is null
                 Key: ZOOKEEPER-3410
                 URL: https://issues.apache.org/jira/browse/ZOOKEEPER-3410
             Project: ZooKeeper
          Issue Type: Bug
          Components: scripts
    Affects Versions: 3.6.0
            Reporter: maoling


[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());*



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)