Re-examining the controversy surrounding CURATOR-157

Author: linghengqianCreated Sep 23, 2026Updated Sep 23, 2026
Labelsbugrefactor

Feature Request

For English only, other languages will not accept.

Please pay attention on issues you submitted, because we maybe need more details. If no response anymore and we cannot make decision by current information, we will close it.

Please answer these questions before submitting your issue. Thanks!

Is your feature request related to a problem?

java
    /*
     * // TODO sleep 500ms, let cache client close first and then client, otherwise will throw exception reference:https://issues.apache.org/jira/browse/CURATOR-157
     */
    private void waitForCacheClose() {
        try {
            Thread.sleep(500L);
        } catch (final InterruptedException ex) {
            Thread.currentThread().interrupt();
        }
    }

Describe the feature you would like.

Closed as stale. There're many changes since this patch was made in the first place. Feel free to resubmit it if it's still relevant. BTW, NodeCache and PathChildrenCache are deprecated now, you can use CuratorCache instead to see if this is still an issue.

Source: apache/shardingsphere-elasticjob