This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
* Usage: | |
* 1. Start this program with `java -jar curator-test.jar <zkHost:zkPort>`. | |
* Use a non-local ZooKeeper server. | |
* 2. Run the following command in another window: | |
* iptables -A OUTPUT -p tcp --dport 2181 -j DROP; sleep 15; iptables -D OUTPUT -p tcp --dport 2181 -j DROP | |
* | |
* Expected result: the program exits after receiving LOST connection state | |
* | |
* Result: the program usually does not exit (it receives only SUSPENDED and RECONNECTED events), |