mirror of https://github.com/apache/druid.git
Merge pull request #2154 from navis/fix-testfail-WorkerTaskMonitorTest
Fix sporadic fail of WorkerTaskMonitorTest#testRunTask
This commit is contained in:
commit
9aa62e4631
|
@ -203,10 +203,6 @@ public class WorkerTaskMonitorTest
|
|||
@Test
|
||||
public void testRunTask() throws Exception
|
||||
{
|
||||
cf.create()
|
||||
.creatingParentsIfNeeded()
|
||||
.forPath(joiner.join(tasksPath, task.getId()), jsonMapper.writeValueAsBytes(task));
|
||||
|
||||
Assert.assertTrue(
|
||||
TestUtils.conditionValid(
|
||||
new IndexingServiceCondition()
|
||||
|
@ -225,6 +221,10 @@ public class WorkerTaskMonitorTest
|
|||
)
|
||||
);
|
||||
|
||||
cf.create()
|
||||
.creatingParentsIfNeeded()
|
||||
.forPath(joiner.join(tasksPath, task.getId()), jsonMapper.writeValueAsBytes(task));
|
||||
|
||||
Assert.assertTrue(
|
||||
TestUtils.conditionValid(
|
||||
new IndexingServiceCondition()
|
||||
|
@ -340,7 +340,7 @@ public class WorkerTaskMonitorTest
|
|||
}
|
||||
)
|
||||
);
|
||||
// ephermal owner is 0 is created node is PERSISTENT
|
||||
// ephemeral owner is 0 is created node is PERSISTENT
|
||||
Assert.assertEquals(0, cf.checkExists().forPath(joiner.join(statusPath, task.getId())).getEphemeralOwner());
|
||||
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue