zookeeper-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "maoling (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (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 Sun, 09 Jun 2019 06:54:00 GMT

    [ https://issues.apache.org/jira/browse/ZOOKEEPER-3410?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16859383#comment-16859383
] 

maoling commented on ZOOKEEPER-3410:
------------------------------------

*./zkTxnLogToolkit.sh /data/zkBackup/version-2/log.57*
ZooKeeper Transactional Log File with dbid 0 txnlog format version 2
19-6-8 下午05时39分33秒 session 0x1000978b3850000 cxid 0x0 zxid 0x57 createSession 30000
19-6-8 下午05时39分42秒 session 0x1000978b3850000 cxid 0x2 zxid 0x58 create /p_node*,,*[31,s\{'world,'anyone}
],false,13
19-6-8 下午05时39分52秒 session 0x1000978b3850000 cxid 0x3 zxid 0x59 createContainer
/container_node*,,*[31,s\{'world,'anyone}
],14
19-6-8 下午05时39分59秒 session 0x100091e93c20001 cxid 0x0 zxid 0x5a closeSession
19-6-8 下午05时40分04秒 session 0x1000978b3850000 cxid 0x4 zxid 0x5b createTtl /ttl_node*,,*[31,s\{'world,'anyone}
],15,1000
19-6-8 下午05时40分28秒 session 0x0 cxid 0x0 zxid 0x5c deleteContainer '/ttl_node
19-6-8 下午05时40分37秒 session 0x1000978b3850000 cxid 0x0 zxid 0x5d closeSession
EOF reached after 7 txns.


*./zkTxnLogToolkit.sh /data/zkBackup/version-2/log.5e*
19-6-9 下午02时38分59秒 session 0x1000aec8ddd0000 cxid 0x0 zxid 0x5e createSession 30000
19-6-9 下午02时39分27秒 session 0x1000aec8ddd0000 cxid 0x1 zxid 0x5f create /05-09-node,,[31,s\{'world,'anyone}
],false,16
19-6-9 下午02时39分41秒 session 0x1000aec8ddd0000 cxid 0x2 zxid 0x60 error -101
19-6-9 下午02时39分53秒 session 0x1000aec8ddd0000 cxid 0x3 zxid 0x61 error -101
19-6-9 下午02时40分34秒 session 0x1000aec8ddd0000 cxid 0x0 zxid 0x62 closeSession
19-6-9 下午02时43分08秒 session 0x1000aec8ddd0001 cxid 0x0 zxid 0x63 createSession 30000
19-6-9 下午02时43分17秒 session 0x1000aec8ddd0001 cxid 0x3 zxid 0x64 error -110
19-6-9 下午02时44分06秒 session 0x1000aec8ddd0001 cxid 0x5 zxid 0x65 setData /05-09-node,,1
19-6-9 下午02时50分32秒 session 0x1000aec8ddd0001 cxid 0x6 zxid 0x66 create /06-09,,[31,s\{'world,'anyone}
],false,17
19-6-9 下午02时50分39秒 session 0x1000aec8ddd0001 cxid 0x8 zxid 0x67 setData /06-09,,1
19-6-9 下午02时51分16秒 session 0x1000aec8ddd0001 cxid 0x9 zxid 0x68 create /ttl-node-2,,[31,s\{'world,'anyone}
],false,18
19-6-9 下午02时51分26秒 session 0x1000aec8ddd0001 cxid 0xa zxid 0x69 createContainer
/container-node-2,,[31,s\{'world,'anyone}
],19
EOF reached after 12 txns.

> ./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
>
> [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)

Mime
View raw message