lindong28 commented on a change in pull request #15161: URL: https://github.com/apache/flink/pull/15161#discussion_r600110083
########## File path: flink-runtime/src/main/java/org/apache/flink/runtime/source/coordinator/SourceCoordinatorContext.java ########## @@ -103,18 +106,22 @@ public SourceCoordinatorContext( SimpleVersionedSerializer<SplitT> splitSerializer) { this( coordinatorExecutor, + Executors.newScheduledThreadPool( + numWorkerThreads, + new ExecutorThreadFactory( + coordinatorThreadFactory.getCoordinatorThreadName() + "-worker")), coordinatorThreadFactory, - numWorkerThreads, operatorCoordinatorContext, splitSerializer, new SplitAssignmentTracker<>()); } // Package private method for unit test. + @VisibleForTesting Review comment: Sounds good. Will continue to follow this pattern in the future. -- 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: us...@infra.apache.org