mirror of https://github.com/apache/druid.git
fix non-determininistic reference counting segment test
This commit is contained in:
parent
d4ca805cb9
commit
313d81ca2f
|
@ -315,7 +315,7 @@ public class ServerManagerTest
|
||||||
)
|
)
|
||||||
);
|
);
|
||||||
|
|
||||||
Assert.assertTrue("Operation must complete within 100ms", queryNotifyLatch.await(100, TimeUnit.MILLISECONDS));
|
queryNotifyLatch.await();
|
||||||
|
|
||||||
Assert.assertEquals(1, factory.getSegmentReferences().size());
|
Assert.assertEquals(1, factory.getSegmentReferences().size());
|
||||||
|
|
||||||
|
@ -720,7 +720,7 @@ public class ServerManagerTest
|
||||||
notifyLatch.countDown();
|
notifyLatch.countDown();
|
||||||
|
|
||||||
try {
|
try {
|
||||||
waitYieldLatch.await(25, TimeUnit.MILLISECONDS);
|
waitYieldLatch.await();
|
||||||
}
|
}
|
||||||
catch (Exception e) {
|
catch (Exception e) {
|
||||||
throw Throwables.propagate(e);
|
throw Throwables.propagate(e);
|
||||||
|
@ -733,7 +733,7 @@ public class ServerManagerTest
|
||||||
public OutType get()
|
public OutType get()
|
||||||
{
|
{
|
||||||
try {
|
try {
|
||||||
waitLatch.await(25, TimeUnit.MILLISECONDS);
|
waitLatch.await();
|
||||||
}
|
}
|
||||||
catch (Exception e) {
|
catch (Exception e) {
|
||||||
throw Throwables.propagate(e);
|
throw Throwables.propagate(e);
|
||||||
|
|
Loading…
Reference in New Issue