ssulav opened a new pull request, #8515:
URL: https://github.com/apache/ozone/pull/8515
## What changes were proposed in this pull request?
The current output of the chunk info of an EC key doesn't log the EC index.
As a result, it is impossible to determine if there has been any
reconstruction of any node and if the DATA or PARITY block index has changed.
Adding the EC block index in the ozone debug replicas chunk-info output will
give us an idea of the block placement across the datanodes.
Output json after the change
```
bash-5.1$ ozone debug replicas chunk-info vol/buck-ec/key
{
"volumeName" : "vol",
"bucketName" : "buck-ec",
"name" : "key",
"keyLocations" : [ [ {
"datanode" : {..},
"file" : "",
"blockData" : {..},
"chunkType" : "DATA",
"ecIndex" : 2
}, {
"datanode" : {..},
"file" :
"/data/hdds/hdds/CID-4a301702-9de4-4168-b933-74e2ba22f337/current/containerDir0/1/chunks/115816896921600001.block",
"blockData" : {..},
"chunkType" : "PARITY",
"ecIndex" : 5
}, {
"datanode" : {..},
"file" :
"/data/hdds/hdds/CID-4a301702-9de4-4168-b933-74e2ba22f337/current/containerDir0/1/chunks/115816896921600001.block",
"blockData" : {..},
"chunkType" : "DATA",
"ecIndex" : 1
}, {
"datanode" : {..},
"file" : "",
"blockData" : {..},
"chunkType" : "DATA",
"ecIndex" : 3
}, {
"datanode" : {..},
"file" :
"/data/hdds/hdds/CID-4a301702-9de4-4168-b933-74e2ba22f337/current/containerDir0/1/chunks/115816896921600001.block",
"blockData" : {..},
"chunkType" : "PARITY",
"ecIndex" : 4
} ] ]
}
```
## What is the link to the Apache JIRA
https://issues.apache.org/jira/browse/HDDS-12817?filter=-1
## How was this patch tested?
This was tested manually in Docker setup.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]