zookeeper icon indicating copy to clipboard operation
zookeeper copied to clipboard

ZOOKEEPER-706:SetWatches request exceeding jute.maxBuffer value.

Open stop-coding opened this issue 4 years ago • 1 comments

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.

stop-coding avatar Sep 26 '21 07:09 stop-coding

We encounter the same problem recently. I think this pr can solve the problem. @kezhuw please review

dzc15331066 avatar Nov 20 '25 12:11 dzc15331066