andyhuangdev commented on code in PR #11585:
URL: https://github.com/apache/ozone/pull/11585#discussion_r4332259398


##########
hadoop-ozone/recon/src/main/java/org/apache/hadoop/ozone/recon/scm/ReconScmTask.java:
##########
@@ -92,10 +93,24 @@ public ReconTaskStatusUpdater getTaskStatusUpdater() {
 
   protected abstract void run();
 
-  protected void initializeAndRunTask() throws Exception {
+  protected void initializeAndRunTask() throws InterruptedException {
     taskStatusUpdater.recordRunStart();
-    runTask();
-    taskStatusUpdater.recordRunCompletion();
+    try {
+      taskStatusUpdater.setLastTaskRunStatus(0);

Review Comment:
   Created follow-up Jira 
[HDDS-17201](https://issues.apache.org/jira/browse/HDDS-17201) to address 
status recording for overlapping scheduled and node-triggered runs, with 
regression coverage for the reported race.



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