-
Notifications
You must be signed in to change notification settings - Fork 588
HDDS-12495. Add metadata flag to check block existence in ozone debug verify replicas #8079
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
Conversation
hadoop-ozone/tools/src/main/java/org/apache/hadoop/ozone/debug/replicas/MetadataCheck.java
Outdated
Show resolved
Hide resolved
|
This is exactly what |
Both the commands do have similar functionality. |
|
Thanks for looking at this @sadanand48 Although the two tools use the same backend API, they don't do the same thing.
|
errose28
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for adding this @sarvekshayr. Can we add an integration test for the failure cases, and an acceptance test for the CLI in the regular cases?
errose28
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for adding this! Just some minor comments.
hadoop-ozone/tools/src/main/java/org/apache/hadoop/ozone/debug/replicas/ReplicasVerify.java
Outdated
Show resolved
Hide resolved
hadoop-ozone/tools/src/main/java/org/apache/hadoop/ozone/debug/replicas/MetadataCheck.java
Show resolved
Hide resolved
hadoop-ozone/tools/src/main/java/org/apache/hadoop/ozone/debug/replicas/MetadataCheck.java
Show resolved
Hide resolved
...integration-test/src/test/java/org/apache/hadoop/ozone/debug/replicas/TestMetadataCheck.java
Outdated
Show resolved
Hide resolved
|
I think this has been rolled into #8248. @sarvekshayr should we close this and the corresponding Jira and continue work there? |
Yes, we can close this PR. |
What changes were proposed in this pull request?
Introduced a
--metadataflag underozone debug replicas verifycommand to check for block existence usingGetBlockcalls to the datanodes. For each key, it iterates through all replicas and verifies block presence.What is the link to the Apache JIRA
HDDS-12495
How was this patch tested?
Tested the patch on a docker cluster.
"status": "BLOCK_EXISTS"."status": "MISSING_REPLICAS"."status": "ERROR"along with the error message.