You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@zookeeper.apache.org by "Patrick Hunt (JIRA)" <ji...@apache.org> on 2010/01/20 21:28:54 UTC
[jira] Updated: (ZOOKEEPER-626) ensure the c/java cli's print
xid/sessionid/etc... in hex
[ https://issues.apache.org/jira/browse/ZOOKEEPER-626?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Patrick Hunt updated ZOOKEEPER-626:
-----------------------------------
Attachment: ZOOKEEPER-626.patch
fixes java cli output, I also verified c cli which is already doing this correctly (no change necessary)
> ensure the c/java cli's print xid/sessionid/etc... in hex
> ---------------------------------------------------------
>
> Key: ZOOKEEPER-626
> URL: https://issues.apache.org/jira/browse/ZOOKEEPER-626
> Project: Zookeeper
> Issue Type: Bug
> Components: c client, java client
> Affects Versions: 3.2.1
> Reporter: Patrick Hunt
> Assignee: Patrick Hunt
> Fix For: 3.3.0
>
> Attachments: ZOOKEEPER-626.patch
>
>
> Java/c clients should output xid/sessionids (incl ephemeralowner) in hex format
> private static void printStat(Stat stat) {
> System.err.println("cZxid = " + stat.getCzxid());
> System.err.println("ctime = " + new Date(stat.getCtime()).toString());
> System.err.println("mZxid = " + stat.getMzxid());
> System.err.println("mtime = " + new Date(stat.getMtime()).toString());
> System.err.println("pZxid = " + stat.getPzxid());
> System.err.println("cversion = " + stat.getCversion());
> System.err.println("dataVersion = " + stat.getVersion());
> System.err.println("aclVersion = " + stat.getAversion());
> System.err.println("ephemeralOwner = " + stat.getEphemeralOwner());
> System.err.println("dataLength = " + stat.getDataLength());
> System.err.println("numChildren = " + stat.getNumChildren());
> }
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.