devmadhuu commented on code in PR #8962:
URL: https://github.com/apache/ozone/pull/8962#discussion_r2315815056
##########
hadoop-ozone/recon/src/main/java/org/apache/hadoop/ozone/recon/spi/impl/OzoneManagerServiceProviderImpl.java:
##########
@@ -776,13 +796,22 @@ private void executeFullSnapshot(ReconTaskStatusUpdater
fullSnapshotReconTaskUpd
fullSnapshotReconTaskUpdater.recordRunCompletion();
deltaReconTaskStatusUpdater.updateDetails();
+ // Update the current OM metadata manager in task controller
+ reconTaskController.updateOMMetadataManager(omMetadataManager);
+
// Reinitialize tasks that are listening.
- LOG.info("Calling reprocess on Recon tasks.");
- reconTaskController.reInitializeTasks(omMetadataManager, null);
+ LOG.info("Queueing async reinitialization event instead of blocking
call");
+ ReconTaskController.ReInitializationResult result =
reconTaskController.queueReInitializationEvent(
+
ReconTaskReInitializationEvent.ReInitializationReason.MANUAL_TRIGGER);
+ if (result != ReconTaskController.ReInitializationResult.SUCCESS) {
+ LOG.error(
+ "Failed to queue reinitialization event for manual trigger
(result: {}), failing the snapshot operation",
+ result);
+ metrics.incrNumSnapshotRequestsFailed();
+ fullSnapshotReconTaskUpdater.setLastTaskRunStatus(-1);
Review Comment:
done.
--
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]