GitHub user lei-xia opened a pull request: https://github.com/apache/helix/pull/159
Improvements to Helix's Callback handling. - Improve CallbackHandler by avoiding unnessary re-subscripe to the data change event.Resubscribe to zk changes only when there is any child chanage, with async subscription to ensure not missing any new child paths. - Add new config name for batch callback handing in CallbackHandler. - Support configurable data prefetch in ZkClient during watch event callback. - Add TotalEventCount and TotalHandledEventCount metrics into ZkClientMonitor Mbean. You can merge this pull request into a Git repository by running: $ git pull https://github.com/lei-xia/helix callback_improvements Alternatively you can review and apply these changes as the patch at: https://github.com/apache/helix/pull/159.patch To close this pull request, make a commit to your master/trunk branch with (at least) the following in the commit message: This closes #159 ---- commit 49c3da71c63a323005457688cb18ec7ad5f07bba Author: Lei Xia <lxia@...> Date: 2018-03-03T00:03:37Z Add TotalEventCount and TotalHandledEventCount metrics into ZkClientMonitor Mbean. commit 6f1c4d8ae20c694e2d9ec7a78731a4ae62c363bd Author: Lei Xia <lxia@...> Date: 2018-03-19T17:16:38Z Support configurable data prefetch in ZkClient during watch event callback. commit 7c28aaab31413d3b35aeb54ae00a52fa24347490 Author: Lei Xia <lxia@...> Date: 2018-03-25T02:59:49Z Add new config name for batch callback handing in CallbackHandler. commit 77163dba762959c949aa6aa884198036739db9ff Author: Lei Xia <lxia@...> Date: 2018-03-19T17:48:49Z Fix TestZkCallbackHandlerLeak, and refine some log outputs. commit 5de511ab160c61ff6c9006d5f332b6d92f1c8a55 Author: Lei Xia <lxia@...> Date: 2018-03-25T03:55:17Z Improve CallbackHandler by avoiding unnessary re-subscripe to the data change event.Resubscribe to zk changes only when there is any child chanage, with async subscription to ensure not missing any new child paths. ---- ---