ykisana commented on code in PR #20549:
URL: https://github.com/apache/druid/pull/20549#discussion_r4235925794


##########
embedded-tests/src/test/java/org/apache/druid/testing/embedded/indexing/IngestionSmokeTest.java:
##########
@@ -429,22 +429,26 @@ public void test_streamLogs_ofCancelledTask() throws 
Exception
                       .hasDimension(DruidMetrics.TASK_STATUS, "FAILED")
     );
 
-    final Optional<InputStream> streamOptional =
-        cluster.callApi().waitForResult(
-            () -> overlord.bindings()
-                          .getInstance(TaskLogStreamer.class)
-                          .streamTaskLog(taskId, 0),
-            Optional::isPresent
-        ).go();
-
-    Assertions.assertTrue(streamOptional.isPresent());
-
-    final String logs = IOUtils.toString(streamOptional.get(), 
StandardCharsets.UTF_8);
-
     final String expectedLogLine = StringUtils.format(
         "Running task[%s] for [%d] millis",
         taskId, runDurationMillis
     );
+
+    // The peon pushes its log after the process exits, so the stream can 
become present before it

Review Comment:
   This comment isn't accurate, no peon in this setup.



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


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

Reply via email to