[ https://issues.apache.org/jira/browse/ZOOKEEPER-626?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Mahadev konar updated ZOOKEEPER-626: ------------------------------------ Resolution: Fixed Hadoop Flags: [Reviewed] Status: Resolved (was: Patch Available) +1 I just committed this. thanks pat. > 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.