Repository: curator Updated Branches: refs/heads/CURATOR-443 bfdb790bc -> c49f037ce
I believe the operation needs to be removed/added back to the delay queue to get restorting to occur. I'm concerned however, about altering operation ordering Project: http://git-wip-us.apache.org/repos/asf/curator/repo Commit: http://git-wip-us.apache.org/repos/asf/curator/commit/c49f037c Tree: http://git-wip-us.apache.org/repos/asf/curator/tree/c49f037c Diff: http://git-wip-us.apache.org/repos/asf/curator/diff/c49f037c Branch: refs/heads/CURATOR-443 Commit: c49f037ce87ce527bc244a94b4d2d1160c9ef012 Parents: bfdb790 Author: randgalt <[email protected]> Authored: Tue Nov 21 18:34:45 2017 -0800 Committer: randgalt <[email protected]> Committed: Tue Nov 21 18:34:45 2017 -0800 ---------------------------------------------------------------------- .../org/apache/curator/framework/imps/CuratorFrameworkImpl.java | 4 ++++ 1 file changed, 4 insertions(+) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/curator/blob/c49f037c/curator-framework/src/main/java/org/apache/curator/framework/imps/CuratorFrameworkImpl.java ---------------------------------------------------------------------- diff --git a/curator-framework/src/main/java/org/apache/curator/framework/imps/CuratorFrameworkImpl.java b/curator-framework/src/main/java/org/apache/curator/framework/imps/CuratorFrameworkImpl.java index 4a5fad3..c91758a 100644 --- a/curator-framework/src/main/java/org/apache/curator/framework/imps/CuratorFrameworkImpl.java +++ b/curator-framework/src/main/java/org/apache/curator/framework/imps/CuratorFrameworkImpl.java @@ -1001,6 +1001,10 @@ public class CuratorFrameworkImpl implements CuratorFramework for ( OperationAndData<?> operation : drain ) { operation.clearSleep(); + if ( backgroundOperations.remove(operation) ) + { + backgroundOperations.offer(operation); + } } }
