zookeeper-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "maoling (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (ZOOKEEPER-1823) LogFormatter should support printing transaction data as a string
Date Fri, 31 Aug 2018 11:35:00 GMT

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

maoling commented on ZOOKEEPER-1823:
------------------------------------

-------------------------------------------------------------------------------------------

*with -s option:*
ZooKeeper Transactional Log File with dbid 0 txnlog format version 2

18-8-31 下午06时27分22秒 session 0x1658f85c3910000 cxid 0x0 zxid 0x90002242c createSession
30000


18-8-31 下午06时29分05秒 session 0x1658f85c3910000 cxid 0x1 zxid 0x90002242d create /president,Obama,[31,s\{'world,'anyone}
],false,88

18-8-31 下午06时41分12秒 session 0x1658f85c3910000 cxid 0x2 zxid 0x90002242e setData
/president,Trump,1

EOF reached after 3 txns.
-------------------------------------------------------------------------------------------------------------------------------

*without -s option:*
ZooKeeper Transactional Log File with dbid 0 txnlog format version 2

18-8-31 下午06时27分22秒 session 0x1658f85c3910000 cxid 0x0 zxid 0x90002242c createSession
30000


18-8-31 下午06时29分05秒 session 0x1658f85c3910000 cxid 0x1 zxid 0x90002242d create '/president,#4f62616d61,v\{s{31,s{'world,'anyone}}},F,88


18-8-31 下午06时41分12秒 session 0x1658f85c3910000 cxid 0x2 zxid 0x90002242e setData
'/president,#5472756d70,1


EOF reached after 3 txns.

> LogFormatter should support printing transaction data as a string
> -----------------------------------------------------------------
>
>                 Key: ZOOKEEPER-1823
>                 URL: https://issues.apache.org/jira/browse/ZOOKEEPER-1823
>             Project: ZooKeeper
>          Issue Type: Bug
>          Components: server
>            Reporter: Raul Gutierrez Segales
>            Assignee: Raul Gutierrez Segales
>            Priority: Trivial
>             Fix For: 3.6.0, 3.5.5
>
>         Attachments: ZOOKEEPER-1823.patch
>
>
> Some times it's handy to have LogFormatter show you the content of the transactions (i.e.:
if you are storing text).



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

Mime
View raw message