hadoop-zookeeper-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Patrick Hunt (JIRA)" <j...@apache.org>
Subject [jira] Created: (ZOOKEEPER-114) cleanup ugly event messages in zookeeper client
Date Wed, 06 Aug 2008 23:32:44 GMT
cleanup ugly event messages in zookeeper client

                 Key: ZOOKEEPER-114
                 URL: https://issues.apache.org/jira/browse/ZOOKEEPER-114
             Project: Zookeeper
          Issue Type: Improvement
          Components: java client
            Reporter: Patrick Hunt
             Fix For: 3.0.0

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.

This message is automatically generated by JIRA.
You can reply to this email to add a comment to the issue online.

View raw message