[ 
https://issues.apache.org/jira/browse/HDDS-12207?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17933849#comment-17933849
 ] 

Sarveksha Yeshavantha Raju commented on HDDS-12207:
---------------------------------------------------

*JSON output format for {{ReplicasVerify}}*
Each key in the output is structured with its verification results.

1. When all verification flags are passed, the output includes details for 
checksums, padding, and metadata:
{code:java}
{
  "key": "/volume/bucket/key",
  "checksums": {
    "datasize": 6,
    "blocks": [
      {
        "blockIndex": 1,
        "containerId": 2,
        "localId": 115816896921600012,
        "length": 6,
        "offset": 0,
        "replicas": [
          {
            "hostname": "ozone-datanode-4.ozone_default",
            "uuid": "44aee413-2f42-4147-817d-f5149227a4874"
          }
        ]
      }
    ]
  },
  "find-missing-padding": {
    "size": 1048576,
    "replication": "rs-3-2-1024k"
  },
  "metadata": {
    "block_exists": true
  }
}
{code}

2. Output when {{--failures-only}} flag is passed.
When {{--failures-only}} is specified, only keys that fail at least one 
verification check are included in the output.
For example, if only the metadata check fails for a key:
{code:java}
{
  "key": "/volume/bucket/key",
  "metadata": {
    "block_exists": false,
  }
}
{code}

3. Handle large output with {{--max-records-per-file}}.
The {{--max-records-per-file}} flag ensures that the results are split into 
multiple files. Each file will contain at most the specified number of records 
before a new file is created.

> 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]

Reply via email to