devmadhuu commented on code in PR #8856:
URL: https://github.com/apache/ozone/pull/8856#discussion_r2240377161
##########
hadoop-ozone/recon/src/main/java/org/apache/hadoop/ozone/recon/tasks/NSSummaryTask.java:
##########
@@ -210,10 +267,46 @@ public TaskResult reprocess(OMMetadataManager
omMetadataManager) {
TimeUnit.NANOSECONDS.toMillis(endTime - startTime);
// Log performance metrics
- LOG.info("Task execution time: {} milliseconds", durationInMillis);
+ LOG.info("NSSummary reprocess execution time: {} milliseconds",
durationInMillis);
+
+ // Reset state to IDLE on successful completion
+ if (success) {
+ REBUILD_STATE.set(RebuildState.IDLE);
+ LOG.info("NSSummary tree reprocess completed successfully with unified
control.");
+ }
Review Comment:
Not sure if I understood here, but we are setting state on both failure and
success scenarios. On failure, we are setting FAILED in catch block.
--
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]