Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

HDDS-9802. Tool to fix corrupted snapshot chain #6386

Merged
merged 3 commits into from
Mar 19, 2024

Conversation

hemantk-12
Copy link
Contributor

What changes were proposed in this pull request?

In the past, we have seen many instances (HDDS-8530, HDDS-8832, and recently HDDS-10524) when SnapshotChain corruption was causing OM to get stuck on restart. Lots of bugs related to snapshot chain corruption have been fixed but we still issue some occurrences here and there (HDDS-10524 is a very recent one).
This change is to implement a tool that can be used to repair the snapshot chain corruption once a corrupted entry is identified.
The idea for this tool is from HDDS-8100. This change also provides a base setup for HDDS-8100 and can be extended to provide support for other cases HDDS-8101, HDDS-8824, HDDS-10295, etc.

What is the link to the Apache JIRA

HDDS-9802

How was this patch tested?

Tested it on the docker.

@hemantk-12 hemantk-12 changed the title HDDS-9802: Tool to fix corrupted snapshot chain HDDS-9802. Tool to fix corrupted snapshot chain Mar 16, 2024
Copy link
Contributor

@adoroszlai adoroszlai left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks @hemantk-12 for the patch. Found some typos, and suggested some minor improvements.

Copy link
Member

@aswinshakil aswinshakil left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for this tool @hemantk-12. Really helpful in fixing snapshot chain corruption. LGTM+1

@hemantk-12 hemantk-12 merged commit e907316 into apache:master Mar 19, 2024
36 checks passed
@hemantk-12
Copy link
Contributor Author

Thanks, @adoroszlai and @aswinshakil for the review.

xichen01 pushed a commit to xichen01/ozone that referenced this pull request Apr 17, 2024
xichen01 pushed a commit to xichen01/ozone that referenced this pull request Apr 18, 2024
xichen01 pushed a commit to xichen01/ozone that referenced this pull request Apr 23, 2024
swamirishi pushed a commit to swamirishi/ozone that referenced this pull request Jun 10, 2024
)

(cherry picked from commit e907316)
Change-Id: I67950ede21d47449ce433b629e1a8f24a1d88a19
@hemantk-12 hemantk-12 deleted the HDDS-9802 branch October 28, 2024 18:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants