HDDS-13571. Add upgrade action for NSSummary aggregated totals Improvement.#8938
Conversation
|
@devmadhuu @sumitagrawl Please take a look |
devmadhuu
left a comment
There was a problem hiding this comment.
Thanks @ArafatKhan2198 for the patch. Changes LGTM +1
Tested with a cluster and also attached the Log with ExplanationAs shown in the log below, the NSSummaryTask was triggered by the upgrade handler, but the tree was not built immediately because the required tables and NSSummary tasks had not yet been registered. The registration and initialization steps must happen first. Only after those are complete can the NSSummaryTask run successfully. You can see in the sequence below:
|
sumitagrawl
left a comment
There was a problem hiding this comment.
@ArafatKhan2198 Given few comments
|
Thanks for the comments @sumitagrawl can you please take a look again - The upgrade action works properly now - |
devmadhuu
left a comment
There was a problem hiding this comment.
Thanks @ArafatKhan2198 for the patch. LGTM +1
What changes were proposed in this pull request?
Add upgrade action that triggers asynchronous NSSummary tree rebuild during Recon layout feature finalization. This ensures the NSSummary tree is rebuilt when upgrading to support materialized totals, without blocking Recon startup.
What this PR includes:
NSSummaryAggregatedTotalsUpgradeimplementingReconUpgradeActionand annotated to run at FINALIZE.NSSUMMARY_AGGREGATED_TOTALSentry toReconLayoutFeature(feature version 3) and registration of the upgrade action via the annotation-based scanner.ReconUtils.triggerAsyncNSSummaryRebuild(...)invoked by the upgrade action to schedule the rebuild without blocking startup.NSSummaryTask's unified rebuild state check.omMetadataManager.isOmTablesInitialized()before running the rebuild, with graceful timeout and interruption handling.NSSummaryTaskWithFSO.reprocessWithFSO(...)to skip processing when OM tables (e.g., directory table) are not yet initialized to avoid NPEs.What is the link to the Apache JIRA
https://issues.apache.org/jira/browse/HDDS-13571
How was this patch tested?
Tested manually