You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@zookeeper.apache.org by GitBox <gi...@apache.org> on 2022/04/12 03:04:36 UTC

[GitHub] [zookeeper] maoling commented on pull request #1851: ZOOKEEPER-4308: Fix flaky test EagerACLFilterTest

maoling commented on PR #1851:
URL: https://github.com/apache/zookeeper/pull/1851#issuecomment-1095894752

   One approach to reproduce this flaky test is: try to inject a little latency when the leader applies the write request:
    org.apache.zookeeper.server.ZooKeeperServer#processTxnInDB
   ```
   		} else {
               try {
                   if (this instanceof LeaderZooKeeperServer && hdr.getType() == OpCode.create2) {
                       Thread.sleep(2);
                   }
               } catch (InterruptedException e) {
                   e.printStackTrace();
               }
               return getZKDatabase().processTxn(hdr, txn, digest);
           }
   ```
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@zookeeper.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org