zookeeper-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "maoling (JIRA)" <j...@apache.org>
Subject [jira] [Resolved] (ZOOKEEPER-3410) ./zkTxnLogToolkit.sh will throw the NPE and stop the process of formatting txn logs due to the data's content is null
Date Fri, 12 Jul 2019 02:05:00 GMT

     [ https://issues.apache.org/jira/browse/ZOOKEEPER-3410?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

maoling resolved ZOOKEEPER-3410.
--------------------------------
    Resolution: Resolved

> ./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
>            Assignee: maoling
>            Priority: Minor
>              Labels: pull-request-available
>          Time Spent: 1.5h
>  Remaining Estimate: 0h
>
> [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.14#76016)

Mime
View raw message