Soumitra Sulav created HDDS-12816:
-------------------------------------

             Summary: ozone debug replicas chunk-info has incorrect or None in 
FileLocations
                 Key: HDDS-12816
                 URL: https://issues.apache.org/jira/browse/HDDS-12816
             Project: Apache Ozone
          Issue Type: Bug
            Reporter: Soumitra Sulav


Debug chunkinfo is missing file location for other data indexes or parity 
blocks.

{code:java}
bash-5.1$ ozone sh bucket create vol/buckec -r RS-3-2-1024k -t EC
bash-5.1$ truncate -s 3MB test3MB
bash-5.1$ ozone sh key put vol/buckec/3MB test3MB
bash-5.1$ ozone debug replicas chunk-info vol/buckec/3MB
{
  "KeyLocations" : [ [ {
    "Locations" : {
      "files" : [ 
"/data/hdds/hdds/CID-447069c8-5ae8-40cc-8a10-565d1c48bd6b/current/containerDir0/1/chunks/115816896921600001.block"
 ],
      "pipelineID" : "3764b3d5-ca2f-435e-83a1-0f9a29773f18",
      "chunkType" : "DATA"
    },
    "Datanode-HostName" : "ozone-ha-datanode-3.ozone-ha_default",
    "Datanode-IP" : "172.23.0.14",
    "Container-ID" : 1,
    "Block-ID" : 115816896921600001
  }, {
    "Locations" : {
      "files" : [ ],
      "pipelineID" : "3764b3d5-ca2f-435e-83a1-0f9a29773f18",
      "chunkType" : "DATA"
    },
    "Datanode-HostName" : "ozone-ha-datanode-4.ozone-ha_default",
    "Datanode-IP" : "172.23.0.3",
    "Container-ID" : 1,
    "Block-ID" : 115816896921600001
  }, {
    "Locations" : {
      "files" : [ ],
      "pipelineID" : "3764b3d5-ca2f-435e-83a1-0f9a29773f18",
      "chunkType" : "DATA"
    },
    "Datanode-HostName" : "ozone-ha-datanode-2.ozone-ha_default",
    "Datanode-IP" : "172.23.0.12",
    "Container-ID" : 1,
    "Block-ID" : 115816896921600001
  }, {
    "Locations" : {
      "files" : [ ],
      "pipelineID" : "3764b3d5-ca2f-435e-83a1-0f9a29773f18",
      "chunkType" : "PARITY"
    },
    "Datanode-HostName" : "ozone-ha-datanode-5.ozone-ha_default",
    "Datanode-IP" : "172.23.0.13",
    "Container-ID" : 1,
    "Block-ID" : 115816896921600001
  }, {
    "Locations" : {
      "files" : [ ],
      "pipelineID" : "3764b3d5-ca2f-435e-83a1-0f9a29773f18",
      "chunkType" : "PARITY"
    },
    "Datanode-HostName" : "ozone-ha-datanode-1.ozone-ha_default",
    "Datanode-IP" : "172.23.0.15",
    "Container-ID" : 1,
    "Block-ID" : 115816896921600001
  } ] ]
}
{code}




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