wangyum commented on a change in pull request #10683:
URL: https://github.com/apache/druid/pull/10683#discussion_r551103002
##########
File path:
extensions-core/kafka-indexing-service/src/test/java/org/apache/druid/indexing/kafka/KafkaIndexTaskTest.java
##########
@@ -905,12 +905,13 @@ public void
testIncrementalHandOffReadsThroughEndOffsets() throws Exception
final ListenableFuture<TaskStatus> normalReplicaFuture =
runTask(normalReplica);
// Simulating one replica is slower than the other
- final ListenableFuture<TaskStatus> staleReplicaFuture = Futures.transform(
+ final ListenableFuture<TaskStatus> staleReplicaFuture =
Futures.transformAsync(
taskExec.submit(() -> {
Thread.sleep(1000);
return staleReplica;
}),
- (AsyncFunction<Task, TaskStatus>) this::runTask
+ (AsyncFunction<Task, TaskStatus>) this::runTask,
+ Execs.directExecutor()
Review comment:
Why it is `Execs.directExecutor()`?
----------------------------------------------------------------
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.
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]