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

cleanup ugly event messages in zookeeper client

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Trivial
    • Resolution: Fixed
    • None
    • 3.0.0
    • java client
    • None
    • Reviewed

    Description

      Cleanup the event messages output by the java command line client:

      The java client ZooKeeper.java has a process method in MyWatcher that prints raw event information to the console. Many new users find this confusing (esp since state changes have a null path).

      public void process(WatcherEvent event)

      { System.err.println(event.getPath() + ": " + event.getState() + "-" + event.getType()); }

      If this is a state change we should print that, if it's an event we should print that (state change doesn't have a path). Somewhere in the message we should also indicate that the client received a watch notification from the server.

      Attachments

        Issue Links

          Activity

            People

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

              Dates

                Created:
                Updated:
                Resolved: