Repository navigation
HDDS-16880. Addendum: Clear Recon candidate dir after a failed OM DB download - #11624
Merged
Merged
Conversation
…download Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
sadanand48
approved these changes
Oct 22, 2026
sadanand48
left a comment
Contributor
There was a problem hiding this comment.
LGTM based on the discussions in #11563
smengcl
marked this pull request as ready for review
October 22, 2026 10:52
Contributor
Author
|
Thanks @sadanand48 for the review. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Generated-by: Claude Code (Opus 5.5)
What changes were proposed in this pull request?
Addendum to #11563, following the review discussion there.
#11563 kept Recon's candidate dir after a failed OM DB download and guarded it with a Recon only
untarContentsOfTarballoverride that extracts through.tmpfiles, so the retry could skip files already received. The OM follower does not do this:OzoneManager#installSnapshotFromLeaderdeletes the candidate dir after a failed download. Recon gets the active DB as one tarball, so the exclude list only has entries on a retry after a failure, and that saves little (only files before the cut, which compaction may make stale, and a full disk stays full).This patch aligns Recon with the OM follower:
OzoneManagerServiceProviderImpl#getOzoneManagerDBSnapshotviaRDBSnapshotProvider#init, which also resets the pinned leader.untarContentsOfTarballoverride fromReconRDBSnapshotProviderand make the base methodprivateagain.What is the link to the Apache JIRA
https://issues.apache.org/jira/browse/HDDS-16880
How was this patch tested?
testPartiallyUntarredFileNotReportedOnRetryis renamed totestCandidateDirClearedAfterFailedDownloadand now checks that, after a download whose tar ends in the middle of an SST file, the candidate dir is empty and the retry sends an empty exclude list.TestOzoneManagerServiceProviderImpl,TestReconRDBSnapshotProvider,TestTriggerDBSyncEndpointandTestRDBSnapshotProviderpass (24 tests). Checkstyle is clean.🤖 Generated with Claude Code