From issues-return-73-archive-asf-public=cust-asf.ponee.io@zookeeper.apache.org Sun Jun 9 06:54:02 2019 Return-Path: X-Original-To: archive-asf-public@cust-asf.ponee.io Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [207.244.88.153]) by mx-eu-01.ponee.io (Postfix) with SMTP id 55607180670 for ; Sun, 9 Jun 2019 08:54:02 +0200 (CEST) Received: (qmail 34877 invoked by uid 500); 9 Jun 2019 06:54:01 -0000 Mailing-List: contact issues-help@zookeeper.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@zookeeper.apache.org Delivered-To: mailing list issues@zookeeper.apache.org Received: (qmail 34866 invoked by uid 99); 9 Jun 2019 06:54:01 -0000 Received: from mailrelay1-us-west.apache.org (HELO mailrelay1-us-west.apache.org) (209.188.14.139) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 09 Jun 2019 06:54:01 +0000 Received: from jira-lw-us.apache.org (unknown [207.244.88.139]) by mailrelay1-us-west.apache.org (ASF Mail Server at mailrelay1-us-west.apache.org) with ESMTP id E5103E00B4 for ; Sun, 9 Jun 2019 06:54:00 +0000 (UTC) Received: from jira-lw-us.apache.org (localhost [127.0.0.1]) by jira-lw-us.apache.org (ASF Mail Server at jira-lw-us.apache.org) with ESMTP id 7177224617 for ; Sun, 9 Jun 2019 06:54:00 +0000 (UTC) Date: Sun, 9 Jun 2019 06:54:00 +0000 (UTC) From: "maoling (JIRA)" To: issues@zookeeper.apache.org Message-ID: In-Reply-To: References: 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 MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/ZOOKEEPER-3410?page=3Dcom.atlas= sian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=3D= 16859383#comment-16859383 ]=20 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 =E4=B8=8B=E5=8D=8805=E6=97=B639=E5=88=8633=E7=A7=92 session 0x100097= 8b3850000 cxid 0x0 zxid 0x57 createSession 30000 19-6-8 =E4=B8=8B=E5=8D=8805=E6=97=B639=E5=88=8642=E7=A7=92 session 0x100097= 8b3850000 cxid 0x2 zxid 0x58 create /p_node*,,*[31,s\{'world,'anyone} ],false,13 19-6-8 =E4=B8=8B=E5=8D=8805=E6=97=B639=E5=88=8652=E7=A7=92 session 0x100097= 8b3850000 cxid 0x3 zxid 0x59 createContainer /container_node*,,*[31,s\{'wor= ld,'anyone} ],14 19-6-8 =E4=B8=8B=E5=8D=8805=E6=97=B639=E5=88=8659=E7=A7=92 session 0x100091= e93c20001 cxid 0x0 zxid 0x5a closeSession 19-6-8 =E4=B8=8B=E5=8D=8805=E6=97=B640=E5=88=8604=E7=A7=92 session 0x100097= 8b3850000 cxid 0x4 zxid 0x5b createTtl /ttl_node*,,*[31,s\{'world,'anyone} ],15,1000 19-6-8 =E4=B8=8B=E5=8D=8805=E6=97=B640=E5=88=8628=E7=A7=92 session 0x0 cxid= 0x0 zxid 0x5c deleteContainer '/ttl_node 19-6-8 =E4=B8=8B=E5=8D=8805=E6=97=B640=E5=88=8637=E7=A7=92 session 0x100097= 8b3850000 cxid 0x0 zxid 0x5d closeSession EOF reached after 7 txns. *./zkTxnLogToolkit.sh /data/zkBackup/version-2/log.5e* 19-6-9 =E4=B8=8B=E5=8D=8802=E6=97=B638=E5=88=8659=E7=A7=92 session 0x1000ae= c8ddd0000 cxid 0x0 zxid 0x5e createSession 30000 19-6-9 =E4=B8=8B=E5=8D=8802=E6=97=B639=E5=88=8627=E7=A7=92 session 0x1000ae= c8ddd0000 cxid 0x1 zxid 0x5f create /05-09-node,,[31,s\{'world,'anyone} ],false,16 19-6-9 =E4=B8=8B=E5=8D=8802=E6=97=B639=E5=88=8641=E7=A7=92 session 0x1000ae= c8ddd0000 cxid 0x2 zxid 0x60 error -101 19-6-9 =E4=B8=8B=E5=8D=8802=E6=97=B639=E5=88=8653=E7=A7=92 session 0x1000ae= c8ddd0000 cxid 0x3 zxid 0x61 error -101 19-6-9 =E4=B8=8B=E5=8D=8802=E6=97=B640=E5=88=8634=E7=A7=92 session 0x1000ae= c8ddd0000 cxid 0x0 zxid 0x62 closeSession 19-6-9 =E4=B8=8B=E5=8D=8802=E6=97=B643=E5=88=8608=E7=A7=92 session 0x1000ae= c8ddd0001 cxid 0x0 zxid 0x63 createSession 30000 19-6-9 =E4=B8=8B=E5=8D=8802=E6=97=B643=E5=88=8617=E7=A7=92 session 0x1000ae= c8ddd0001 cxid 0x3 zxid 0x64 error -110 19-6-9 =E4=B8=8B=E5=8D=8802=E6=97=B644=E5=88=8606=E7=A7=92 session 0x1000ae= c8ddd0001 cxid 0x5 zxid 0x65 setData /05-09-node,,1 19-6-9 =E4=B8=8B=E5=8D=8802=E6=97=B650=E5=88=8632=E7=A7=92 session 0x1000ae= c8ddd0001 cxid 0x6 zxid 0x66 create /06-09,,[31,s\{'world,'anyone} ],false,17 19-6-9 =E4=B8=8B=E5=8D=8802=E6=97=B650=E5=88=8639=E7=A7=92 session 0x1000ae= c8ddd0001 cxid 0x8 zxid 0x67 setData /06-09,,1 19-6-9 =E4=B8=8B=E5=8D=8802=E6=97=B651=E5=88=8616=E7=A7=92 session 0x1000ae= c8ddd0001 cxid 0x9 zxid 0x68 create /ttl-node-2,,[31,s\{'world,'anyone} ],false,18 19-6-9 =E4=B8=8B=E5=8D=8802=E6=97=B651=E5=88=8626=E7=A7=92 session 0x1000ae= c8ddd0001 cxid 0xa zxid 0x69 createContainer /container-node-2,,[31,s\{'wor= ld,'anyone} ],19 EOF reached after 12 txns. > ./zkTxnLogToolkit.sh will throw the NPE and stop the process of formattin= g 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 =E4=B8=8B=E5=8D=8806=E6=97=B610=E5=88=8650=E7=A7=92 session 0x100= 07a75c0c0000 cxid 0x0 zxid 0x6 createSession 30000 > Exception in thread "main" java.lang.NullPointerException > at java.lang.String.(String.java:566) > at org.apache.zookeeper.server.persistence.TxnLogToolkit.getDataStrFromT= xn(TxnLogToolkit.java:316) > at org.apache.zookeeper.server.persistence.TxnLogToolkit.printTxn(TxnLog= Toolkit.java:272) > at org.apache.zookeeper.server.persistence.TxnLogToolkit.printTxn(TxnLog= Toolkit.java:266) > at org.apache.zookeeper.server.persistence.TxnLogToolkit.dump(TxnLogTool= kit.java:217) > at org.apache.zookeeper.server.persistence.TxnLogToolkit.main(TxnLogTool= kit.java:116) > t*xnData.append(createTTLTxn.getPath() + "," + new String(createTTLTxn.ge= tData()))* > *.append("," + createTTLTxn.getAcl() + "," + createTTLTxn.getParentCVers= ion())* > *.append("," + createTTLTxn.getTtl());* -- This message was sent by Atlassian JIRA (v7.6.3#76005)