Uploaded image for project: 'ZooKeeper'
  1. ZooKeeper
  2. ZOOKEEPER-626

ensure the c/java cli's print xid/sessionid/etc... in hex

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 3.2.1
    • 3.3.0
    • c client, java client
    • None
    • Reviewed

    Description

      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()); }

      Attachments

        1. ZOOKEEPER-626.patch
          1 kB
          Patrick D. Hunt

        Activity

          People

            phunt Patrick D. Hunt
            phunt Patrick D. Hunt
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: