Github user madrob commented on a diff in the pull request:

    https://github.com/apache/curator/pull/242#discussion_r153252731
  
    --- Diff: 
curator-framework/src/main/java/org/apache/curator/framework/imps/CuratorFrameworkImpl.java
 ---
    @@ -973,6 +981,33 @@ void performBackgroundOperation(OperationAndData<?> 
operationAndData)
             }
         }
     
    +    @VisibleForTesting
    +    volatile long sleepAndQueueOperationSeconds = 1;
    +
    +    private void sleepAndQueueOperation(OperationAndData<?> 
operationAndData) throws InterruptedException
    +    {
    +        operationAndData.sleepFor(sleepAndQueueOperationSeconds, 
TimeUnit.SECONDS);
    +        if ( queueOperation(operationAndData) )
    --- End diff --
    
    If this returns false, then we just drop the operation?


---

Reply via email to