HDDS-12495. Add metadata flag to check block existence in ozone debug verify replicas#8079
HDDS-12495. Add metadata flag to check block existence in ozone debug verify replicas#8079sarvekshayr wants to merge 8 commits intoapache:masterfrom
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.
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.
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.