You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@druid.apache.org by "LakshSingla (via GitHub)" <gi...@apache.org> on 2023/05/12 08:09:58 UTC

[GitHub] [druid] LakshSingla commented on a diff in pull request #14235: Refactor: Add OverlordDuty to replace OverlordHelper and align with CoordinatorDuty

LakshSingla commented on code in PR #14235:
URL: https://github.com/apache/druid/pull/14235#discussion_r1190676019


##########
extensions-core/multi-stage-query/src/main/java/org/apache/druid/msq/indexing/DurableStorageCleaner.java:
##########
@@ -75,66 +72,58 @@ public boolean isEnabled()
   }
 
   @Override
-  public void schedule(ScheduledExecutorService exec)
+  public void run()
   {
-    LOG.info("Starting the DurableStorageCleaner with the config [%s]", config);
+    try {

Review Comment:
   Is this outer level try...catch required. In the OverlordDutyExecutor, we wrap the run of the duties in their own try...catch as well. The duty itself shouldn't worry about throwing the exceptions and it should be handled by the callers.



-- 
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: commits-unsubscribe@druid.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@druid.apache.org
For additional commands, e-mail: commits-help@druid.apache.org