devmadhuu commented on code in PR #12203:
URL: https://github.com/apache/ozone/pull/12203#discussion_r4752258668


##########
hadoop-ozone/recon/src/main/java/org/apache/hadoop/ozone/recon/tasks/NSSummaryTask.java:
##########
@@ -262,6 +262,10 @@ public TaskResult reprocess(OMMetadataManager 
omMetadataManager) {
       LOG.error("NSSummary reprocess failed with exception.", e);
       REBUILD_STATE.set(RebuildState.FAILED);
       return buildTaskResult(false);
+    } catch (Error e) {

Review Comment:
   Could we log here before rethrowing, as the Exception branch above does, for 
example LOG.error("NSSummary reprocess failed with an error.", e)? The 
controller logs only "Task failed with exception" for an Error, without the 
task name: the cause is the Error itself, not TaskExecutionException
   (ReconTaskControllerImpl.java:284-294). So this log line would be the only 
one that ties the Error to NSSummary.



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