CURATOR-559 (#346)
authorJordan Zimmerman <jordan@jordanzimmerman.com>
Thu, 20 Feb 2020 03:27:10 +0000 (22:27 -0500)
committerGitHub <noreply@github.com>
Thu, 20 Feb 2020 03:27:10 +0000 (22:27 -0500)
commit959c1ca34f6ebcb11370180dfafbd8e85320dcd2
treeb3e92dbeb5a699dff3ac4723f285b89a85f17012
parent9c54babcf93d783eb301f11b2a14d78c3034c671
CURATOR-559 (#346)

The retry loop mechanism ended up getting nested multiple times causing exponential calls to the retry policy and violating a given policy's limits. Use a thread local to mitigate this so that a retry loop is reused for nested API calls, etc.
curator-client/src/main/java/org/apache/curator/CuratorZookeeperClient.java
curator-client/src/main/java/org/apache/curator/RetryLoop.java
curator-client/src/main/java/org/apache/curator/RetryLoopImpl.java [new file with mode: 0644]
curator-client/src/main/java/org/apache/curator/connection/StandardConnectionHandlingPolicy.java
curator-client/src/main/java/org/apache/curator/connection/ThreadLocalRetryLoop.java [new file with mode: 0644]
curator-client/src/test/java/org/apache/curator/TestEnsurePath.java
curator-recipes/src/test/java/org/apache/curator/connection/TestThreadLocalRetryLoop.java [new file with mode: 0644]