ArafatKhan2198 commented on code in PR #12203:
URL: https://github.com/apache/ozone/pull/12203#discussion_r4815607418
##########
hadoop-ozone/recon/src/main/java/org/apache/hadoop/ozone/recon/tasks/NSSummaryTask.java:
##########
@@ -262,6 +262,11 @@ public TaskResult reprocess(OMMetadataManager
omMetadataManager) {
LOG.error("NSSummary reprocess failed with exception.", e);
REBUILD_STATE.set(RebuildState.FAILED);
return buildTaskResult(false);
+ } catch (Error e) {
+ LOG.error("NSSummary reprocess failed with an error.", e);
+ // Do not leave the state RUNNING, or every later rebuild is skipped as
already in progress.
+ REBUILD_STATE.set(RebuildState.FAILED);
+ throw e;
Review Comment:
thanks @devmadhuu. Moved REBUILD_STATE.set(RebuildState.FAILED) ahead of the
LOG.error in the catch (Error e) block, so a second failure while logging under
memory pressure can't leave the state RUNNING.
--
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]