curator-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jordan Zimmerman <>
Subject Re: TestingZooKeeperMain blockUntilStarted sleeps 1s
Date Mon, 31 Aug 2015 03:13:43 GMT
As I recall, it takes some time for the server to start up and this was a hack to make sure
it’s ready.  However, I no longer remember the details. Do tests work with the timeout

On August 30, 2015 at 6:33:43 PM, Martin Serrano ( wrote:


I'm wondering what the purpose of the Thread.sleep(1000) is in the
TestingZooKeeperMain.blockUntilStarted() method. We have some features
highly dependent on ZK-based services and these tests will start a
testing ZK for each test. However most of the tests are otherwise very
fast. The 1 second sleep adds up and makes the tests run unnecessarily

Can this sleep be removed or reduced? Depending on a sleep for anything
seems highly suspect in this case.


  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message