Soumitra Sulav created HDDS-13339:
-------------------------------------
Summary: Incompatible change in debug replicas chunkinfo output
Key: HDDS-13339
URL: https://issues.apache.org/jira/browse/HDDS-13339
Project: Apache Ozone
Issue Type: Bug
Affects Versions: 2.0.0
Reporter: Soumitra Sulav
Debug chunk info has a lot of changes in the JSON keys and format.
This might break the existing parser/script and should be documented in the
release docs.
API has moved from
{{ozone debug chunkinfo}} -> {{ozone debug replicas chunk-info}}
JSON structure before:
{code:java}
{
"KeyLocations" : [ [ {
"Locations" : {
"files" : [ "<block_path>" ],
"pipelineID" : "<pipeline_id>"
},
"Datanode-HostName" : "<host_name>",
"Datanode-IP" : "<host_ip>",
"Container-ID" : <id>,
"Block-ID" : <blockid>
},{},{}
]]}
{code}
JSON structure now:
{code:java}
{
"volumeName" : "<vol>",
"bucketName" : "<buck>",
"name" : "<key>",
"keyLocations" : [ [ {
"datanode" : {
"hostname" : "<host_name>",
"ip" : "<host_ip>",
"uuid" : "<uuid>"
},
"file" : "<block_path>",
"blockData" : {
"blockID" : {
"containerID" : <id>,
"localID" : <localid>,
"blockCommitSequenceId" : <bcsid>
},
"size" : <size>,
"chunks" : [ {
"offset" : <offset>,
"len" : <len>,
"checksums" : [ "<checksum>" ],
"checksumType" : "<ctype>",
"bytesPerChecksum" : <bpc>
} ]
}
}, {}, {}
]]}
{code}
Key Differences
|*Field*|*Old JSON*|*New JSON*|
|Block
path|data["KeyLocations"][0][0]["Locations"]["files"][0]|data["keyLocations"][0][0]["file"]|
|Container ID|"Container-ID"|blockData.blockID.containerID|
|Block ID|"Block-ID"|blockData.blockID.localID|
|Hostname|"Datanode-HostName"|datanode.hostname|
--
This message was sent by Atlassian Jira
(v8.20.10#820010)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]