I found that I asked once at https://lists.apache.org/thread/0kcnklcxs0s5656c1sbh3crgdodbb0qg.
And there is a pending issue https://issues.apache.org/jira/browse/ZOOKEEPER-4625 Best, tison. tison <wander4...@gmail.com> 于2023年9月13日周三 22:15写道: > See https://issues.apache.org/jira/browse/FLINK-33053. > > While removeAllWatches removes all watches both client-side and > server-side, removeWatches only check the watcher existence and remove the > client-side one, remain the server-side watcher as is. Thus, it can leak if > no any further events. > > Is it by design or we can make some better solution? > > Best, > tison. >