ah i see. you are manually reestablishing the connection to B using the session identifier for the session with A.

the problem is that when you call "close" on a session, it kills the session. we don't really have a way to close a handle without do that. (actually there is a test class that does it in java.)

if you want this, you should open a jira to do a close() without killing the session.

why don't you let the client library do the move for you?


On 11/18/2010 11:51 AM, Gustavo Niemeyer wrote:
Hi Ben,

that quote is a bit out of context. it was with respect to a proposed
My point was just that the reasoning why you believed it wasn't a good
approach to kill ephemerals in that old instance applies to the new
cases I'm pointing out.  I wasn't suggesting you agreed with my new
reasoning upfront.

in your scenario can you explain step 4)? what are you closing?
I'm closing the old ZooKeeper handler (zh), after a new one was
established with the same client id.

Reply via email to