hadoop-zookeeper-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jeremy Davis <jerdavis.cassan...@gmail.com>
Subject Suggested way to simulate client session expiration in unit tests?
Date Tue, 06 Jul 2010 16:09:59 GMT
Is there a recommended way of simulating a client session expiration in unit
tests?
I see a TestableZooKeeper.java, with a pauseCnxn() method that does cause
the connection to timeout/disconnect and reconnect. Is there an easy way to
push this all the way through to session expiration?
Thanks,
-JD

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message