This is an automated email from the ASF dual-hosted git repository.

abhishek pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/druid.git


The following commit(s) were added to refs/heads/master by this push:
     new 44f29030dd fix flaky 
RemoteTaskRunnerTest.testRunPendingTaskFailToAssignTask with ugly Thread.sleep 
(#13344)
44f29030dd is described below

commit 44f29030dddb33f34fda8baba9ce1018c4225053
Author: Clint Wylie <[email protected]>
AuthorDate: Thu Nov 10 00:58:53 2022 -0800

    fix flaky RemoteTaskRunnerTest.testRunPendingTaskFailToAssignTask with ugly 
Thread.sleep (#13344)
---
 .../java/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 ea4c299485..796ba351c4 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);


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to