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-unsubscr...@zookeeper.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org