From 44f29030dddb33f34fda8baba9ce1018c4225053 Mon Sep 17 00:00:00 2001 From: Clint Wylie Date: Thu, 10 Nov 2022 00:58:53 -0800 Subject: [PATCH] fix flaky RemoteTaskRunnerTest.testRunPendingTaskFailToAssignTask with ugly Thread.sleep (#13344) --- .../org/apache/druid/indexing/overlord/RemoteTaskRunnerTest.java | 1 + 1 file changed, 1 insertion(+) diff --git a/indexing-service/src/test/java/org/apache/druid/indexing/overlord/RemoteTaskRunnerTest.java b/indexing-service/src/test/java/org/apache/druid/indexing/overlord/RemoteTaskRunnerTest.java index ea4c2994854..796ba351c4a 100644 --- a/indexing-service/src/test/java/org/apache/druid/indexing/overlord/RemoteTaskRunnerTest.java +++ b/indexing-service/src/test/java/org/apache/druid/indexing/overlord/RemoteTaskRunnerTest.java @@ -568,6 +568,7 @@ public class RemoteTaskRunnerTest public void testRunPendingTaskFailToAssignTask() throws Exception { doSetup(); + Thread.sleep(100); RemoteTaskRunnerWorkItem originalItem = remoteTaskRunner.addPendingTask(task); // modify taskId to make task assignment failed RemoteTaskRunnerWorkItem wankyItem = Mockito.mock(RemoteTaskRunnerWorkItem.class);