zookeeper
zookeeper copied to clipboard
ZOOKEEPER-706:SetWatches request exceeding jute.maxBuffer value.
ZOOKEEPER-706: If a session has a large number of watches set then attempting to re-establish those watches after a connection loss may fail due to the SetWatches request exceeding the server's configured jute.maxBuffer value. To avoid this we instead split the watch re-establishement across multiple SetWatches calls. This constant controls the size of each call. It is set to 128kB to be conservative with respect to the server's 1MB default for jute.maxBuffer.
We encounter the same problem recently. I think this pr can solve the problem. @kezhuw please review