zookeeper-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Pradeepa Kumar <cdprade...@gmail.com>
Subject unexpected server response ZRUNTIMEINCONSISTENCY
Date Tue, 28 Jun 2016 05:52:08 GMT
Re-posting this query again as have not got this issue resolved.

Appreciate your comments on this query.

Hi Folks,

I am hitting an error in my C client code and below are the set of
operations I perform: 1. Zookeeper Client connected to Zookeeper server S1
and a new server S2 gets added. 2. monitor zookeeper server config at the
client and on change of server config, call zoo_set_server from the client
3. client can issue operations like zoo_get just after the call to
zoo_set_servers 4. I can see that the zookeeper thread logs connect to the
new server just after the zoo_get call 2016-04-11
03:46:50,655:1207(0xf26ffb40):ZOO_INFO@check_events@2345: initiated
connection to server [] 2016-04-11
03:46:50,658:1207(0xf26ffb40):ZOO_INFO@check_events@2397: session
establishment complete on server [],
sessionId=0x4000001852c000c, negotiated timeout=20000 5. Some times I find
errors like below: 2016-04-11
Socket [] zk retcode=-2, errno=115(Operation now in
progress): unexpected server response: expected 0x570b82fa, but received
0x570b82f9 1. zoo_get returns (-2) indicating that ZRUNTIMEINCONSISTENCY<
What is the issue here? should I be retry the operation zoo_get operation?
Or should I wait for the zoo_set_server to complete (like wait for the
connection establishment notification) Thanks,

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