HDDS-10855. Handle Null ParentKeyInfo Error in Recon Namespace Summary Task. #6679
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
What changes were proposed in this pull request?
This pull request fixes the Null ParentKeyInfo error that occurs during the Namespace Summary task in Recon. The error happens when the parent key information is missing. The update adds better logging and skips the creation of NSSummary for keys with missing parent info, so the task can continue processing other keys without stopping.
The error was causing the task to fail whenever it couldn't find the parent directory information. This could happen if the parent was deleted or not yet added to the database. By skipping these problematic keys and logging a warning, the task can keep running smoothly.
Approach:
handleDeleteKeyEvent
to pick up the parent ID from the NSSummary object.What is the link to the Apache JIRA
https://issues.apache.org/jira/browse/HDDS-10855
How was this patch tested?