hailin0 commented on code in PR #2820:
URL: 
https://github.com/apache/incubator-seatunnel/pull/2820#discussion_r975571354


##########
seatunnel-connectors-v2/connector-pulsar/src/main/java/org/apache/seatunnel/connectors/seatunnel/pulsar/source/enumerator/PulsarSplitEnumerator.java:
##########
@@ -127,6 +129,19 @@ public void open() {
 
     @Override
     public void run() throws Exception {
+        if (partitionDiscoveryIntervalMs > 0) {
+            new ScheduledThreadPoolExecutor(1, runnable -> {

Review Comment:
   How to close this thread pool when terminates a task?



-- 
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]

Reply via email to