提交 2d75e882 编写于 作者: M Matteo Merli 提交者: GitHub

In managed ledger BK test, wait for background ledger roll-over to complete...

In managed ledger BK test, wait for background ledger roll-over to complete before shutting down (#35)

Fixes #16: Intermittent test failure in ManagedLedgerBkTest.testConcurrentMarkDelete
上级 997d8f62
......@@ -273,6 +273,9 @@ public class ManagedLedgerBkTest extends BookKeeperClusterTestCase {
future.get();
}
// Since in this test we roll-over the cursor ledger every 10 entries acknowledged, the background roll back
// might still be happening when the futures are completed.
Thread.sleep(1000);
factory.shutdown();
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册