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

problem across zookeeper clients when reading data written by other clients

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Minor
    • Resolution: Not A Problem
    • 3.3.0
    • 3.5.0
    • java client
    • None
    • Zookeeper console client (i.e, zkCli.sh )
      and ZkClient
      with 3 zookeeper quorum

    Description

      create a java client
      create a persistent node using that client
      write data into the node
      like..
      ZkClient zk = new ZkClient ( getZKServers () );
      zk.createPersistent ( "/amith" , true );
      zk.writeData ( "/amith", "amith" );
      Object readData = zk.readData ( "/amith" );
      LOGGER.logInfo (readData);

      zk.delete ( "/amith" );

      and try to read the same using ZkCli.sh console client

      [zk: XXX.XXX.XXX.XXX:XXXXX(CONNECTED) 2] get /amith
      ��tamith
      cZxid = 0x100000004
      ctime = Wed Oct 12 10:13:15 CST 2011
      mZxid = 0x100000005
      mtime = Wed Oct 12 10:13:15 CST 2011
      pZxid = 0x100000004
      cversion = 0
      dataVersion = 1
      aclVersion = 0
      ephemeralOwner = 0x0
      dataLength = 12
      numChildren = 0

      data is displayed as ��tamith
      this include some unwanted char

      Attachments

        Activity

          People

            lakshman Laxman
            amithdk amith
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Time Tracking

                Estimated:
                Original Estimate - 672h
                672h
                Remaining:
                Remaining Estimate - 672h
                672h
                Logged:
                Time Spent - Not Specified
                Not Specified