Home | About | Sematext search-lucene.com search-hadoop.com
NEW: Monitor These Apps!
elasticsearch, apache solr, apache hbase, hadoop, redis, casssandra, amazon cloudwatch, mysql, memcached, apache kafka, apache zookeeper, apache storm, ubuntu, centOS, red hat, debian, puppet labs, java, senseiDB
 Search Hadoop and all its subprojects:

Switch to Plain View
Zookeeper >> mail # user >> Simulating ConnectionLossException and SessionExpiredException events during integration testing


Copy link to this message
-
Simulating ConnectionLossException and SessionExpiredException events during integration testing
Hi guys,
  I've written quite a few integration tests around our zookeeper
functionality.  However I find I'm having a really hard time testing edge
cases that are caused by ConnectionLossException and
SessionExpiredException.  Is there any good way to simulate these events in
an embedded zookeeper runtime and then ensure a new client is created?

Thanks,
Todd
+
Thijs Terlouw 2011-06-16, 05:59
+
Ted Dunning 2011-06-16, 07:16
+
Jared Cantwell 2011-06-16, 13:51
+
Patrick Hunt 2011-06-16, 17:24
+
Jared Cantwell 2011-06-16, 17:30
NEW: Monitor These Apps!
elasticsearch, apache solr, apache hbase, hadoop, redis, casssandra, amazon cloudwatch, mysql, memcached, apache kafka, apache zookeeper, apache storm, ubuntu, centOS, red hat, debian, puppet labs, java, senseiDB