[
https://issues.apache.org/jira/browse/HDDS-12207?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17939064#comment-17939064
]
Ethan Rose commented on HDDS-12207:
-----------------------------------
To make it easier to generate the output, we probably want to make each
verifier work at the block level instead of the key level. In this task we can
change {{void ReplicaVerifier#verifyKey(OzoneKeyDetails)}} to something like
{{{}BlockVerificationResult ReplicaVerifier#verifyBlock(DatanodeDetails
datanode, long containerID, long blockID){}}}. The {{BlockVerificationResult}}
can provide a uniform structure for the json to be serialized into. In the
example above this looks like:
{code:java}
{
"type": "checksums",
"pass": false,
"failures": [
{
"present": true,
"message": "Inconsistent read for chunk=123 len=10 bytesRead=5"
}
]
}
{code}
> Unify output of `ozone debug replicas verify` checks
> ----------------------------------------------------
>
> Key: HDDS-12207
> URL: https://issues.apache.org/jira/browse/HDDS-12207
> Project: Apache Ozone
> Issue Type: Sub-task
> Reporter: Ethan Rose
> Assignee: Sarveksha Yeshavantha Raju
> Priority: Major
>
> Make {{ozone debug replicas verify}} output json information about each key
> and the checks that were run on it. This could optionally be streamed to
> stdout or broken up into multiple files as specified by the user. As new
> checks are added, their results will be included in the same json objects. We
> can also add an option to skip output for keys that passed all the specified
> checks.
--
This message was sent by Atlassian Jira
(v8.20.10#820010)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]