swamirishi commented on code in PR #9390:
URL: https://github.com/apache/ozone/pull/9390#discussion_r2575610140


##########
hadoop-hdds/common/src/main/java/org/apache/hadoop/hdds/utils/BackgroundTask.java:
##########
@@ -18,16 +18,56 @@
 package org.apache.hadoop.hdds.utils;
 
 import java.util.concurrent.Callable;
+import java.util.concurrent.RecursiveTask;
 
 /**
  * A task thread to run by {@link BackgroundService}.
  */
-public interface BackgroundTask extends Callable<BackgroundTaskResult> {
+public abstract class BackgroundTask extends 
RecursiveTask<BackgroundTask.BackgroundTaskForkResult>

Review Comment:
   The external task has to be a recursive task otherwise forkjoin pool cannot 
work



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


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to