tjiuming commented on code in PR #17041:
URL: https://github.com/apache/pulsar/pull/17041#discussion_r952674026


##########
pulsar-metadata/src/main/java/org/apache/pulsar/metadata/impl/AbstractMetadataStore.java:
##########
@@ -81,8 +86,8 @@ public abstract class AbstractMetadataStore implements 
MetadataStoreExtended, Co
     protected abstract CompletableFuture<Boolean> existsFromStore(String path);
 
     protected AbstractMetadataStore() {
-        this.executor = Executors
-                .newSingleThreadScheduledExecutor(new 
DefaultThreadFactory("metadata-store"));
+        final String poolName = "metadata-store";
+        this.executor = new ScheduledThreadPoolExecutor(1, new 
DefaultThreadFactory(poolName));

Review Comment:
   yes, it's useful for https://github.com/apache/pulsar/pull/17072, I want to 
monitor how many tasks pending in the Task Queue.



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