Home | About | Sematext search-lucene.com search-hadoop.com
 Search Hadoop and all its subprojects:

Switch to Threaded View
Zookeeper, mail # dev - Why does multi-op check operation increment zxid?


Copy link to this message
-
Why does multi-op check operation increment zxid?
Thomas Koch 2011-10-20, 12:44
Hi,

I'm woundering: The check operation is threaded like a write operation in
PrepRequestProcessor. It gets a TxnHeader attached and increments the zxid.
However the switch cases in ObserverRequestProcessor, CommitProcessor,
FollowerRequestProcessor and ReadOnlyRequestProcessor thread a check like a
read operation.
I don't know, whether this is a bug, but the inconsistency makes one
suspicious and merits an explaining comment.

Btw. The switch block in the ReadOnlyRequestProcessor does not list multi as a
write operation. Can this cause problems?

Best regards,

Thomas Koch, http://www.koch.ro