zookeeper-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Hadoop QA (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (ZOOKEEPER-2277) Zookeeper off-line snapshot and transaction log viewer
Date Thu, 10 May 2018 20:25:00 GMT

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

Hadoop QA commented on ZOOKEEPER-2277:
--------------------------------------

-1 overall.  Here are the results of testing the latest attachment 
  http://issues.apache.org/jira/secure/attachment/12771001/ZOOKEEPER-2277-02.patch
  against trunk revision 2fa315b7d0ed65828479fcdcc9e76ca8552fba4a.

    +1 @author.  The patch does not contain any @author tags.

    +1 tests included.  The patch appears to include 2 new or modified tests.

    -1 patch.  The patch command could not apply the patch.

Console output: https://builds.apache.org/job/PreCommit-ZOOKEEPER-Build/3668//console

This message is automatically generated.

> Zookeeper off-line snapshot and transaction log viewer
> ------------------------------------------------------
>
>                 Key: ZOOKEEPER-2277
>                 URL: https://issues.apache.org/jira/browse/ZOOKEEPER-2277
>             Project: ZooKeeper
>          Issue Type: Improvement
>            Reporter: Mohammad Arshad
>            Assignee: Mohammad Arshad
>            Priority: Major
>             Fix For: 3.6.0, 3.5.5
>
>         Attachments: ZOOKEEPER-2277-01.patch, ZOOKEEPER-2277-02.patch
>
>
> {color:blue}Currently ZooKeeper provides utility java program to view the snapshot and
transaction off-line but these are not easy to use, also the content is less understandable
{color}
> In this improvement task I propose following functionality:
> 1) add zkTool.sh script to view snapshot and transaction.
> Usage: zkTool.sh -COMMAND <transaction/snapshot file>
> where COMMAND is one of:
> otv   off-line transaction viewer, prints ZooKeeper transaction log in text format
> osv   off-line snapshot viewer, prints ZooKeeper snapshot in text format
> 2) otv command will give output as:
> {noformat}
> 9/4/15 4:37:04 PM IST session 0x1004d19fe6f0002 cxid  0x00000000000c2c (epoch=0,count=3116)
zxid  0x00000100000c49 (epoch=1,count=3145) create path="/4da53875-b471-4ab1-9995-03889e73c0a3/node246",data="Quick
brown fox jumps over the lazy dog ",acl{e1{perms="cdrwa",id{scheme="world",id="anyone"}}},ephemeral="true",parentCVersion="8"
> {noformat}
> It is mostly same as {{org.apache.zookeeper.server.LogFormatter}} with some differences.

> * epoch and count are separated from zxid. 
> * operations type will be written instead of code like createSession instead -10. 
> * showing data. 
> * permissions are written in letters perms="cdrwa" instead of perms="31" same as {{org.apache.zookeeper.cli.GetAclCommand}}.

> * ephemeral="true" instead of  ephemeral="1"
> * etc.
> 3) osv command will give output as:
> {code}
> /67868d36-8bbf-4a8a-a076-f16810ac10de/node540000000010
>   cZxid = 0x00000100000265 (epoch=1,count=613)
>   ctime = Fri Sep 04 16:35:58 IST 2015
>   mZxid = 0x00000100000265 (epoch=1,count=613)
>   mtime = Fri Sep 04 16:35:58 IST 2015
>   pZxid = 0x00000100000265 (epoch=1,count=613)
>   cversion = 0
>   dataVersion = 0
>   aclVersion = 0
>   ephemeralOwner = 0x1004d19fe6f0002
>   dataLength = 40
>   data = Quick brown fox jumps over the lazy dog
> {code}
> which is almost same as {{org.apache.zookeeper.server.SnapshotFormatter}}



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

Mime
View raw message