Uploaded image for project: 'Apache Ozone'
  1. Apache Ozone
  2. HDDS-11828

Ozone debug chunkinfo command showing incorrect block path

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Open
    • Major
    • Resolution: Unresolved
    • None
    • None
    • Ozone CLI
    • None

    Description

      Ozone debug chunkinfo command showing incorrect block path

      Debug chunkinfo output -

      # ozone debug chunkinfo o3://ozone1732647180/testvol-1732703176/buckecfso/file_1732708663
      {
        "KeyLocations": [
          [
            {
              "Datanode-HostName": "node3",
              "Datanode-IP": "ip3",
              "Container-ID": 2048,
              "Block-ID": 113750153625602308,
              "Locations": {
                "files": [
                  "/data/1/hadoop-ozone/datanode/data/hdds/CID-3ff4197e-8f90-496f-bbaa-40ecf8bbb437/current/containerDir4/2048/chunks/113750153625602308.block"
                ],
                "pipelineID": "24c391f5-1349-48a2-b200-796d76e6ecbd",
                "chunkType": "PARITY"
              }
            },
            {
              "Datanode-HostName": "node2",
              "Datanode-IP": "ip2",
              "Container-ID": 2048,
              "Block-ID": 113750153625602308,
              "Locations": {
                "files": [
                  "/data/1/hadoop-ozone/datanode/data/hdds/CID-3ff4197e-8f90-496f-bbaa-40ecf8bbb437/current/containerDir4/2048/chunks/113750153625602308.block"
                ],
                "pipelineID": "24c391f5-1349-48a2-b200-796d76e6ecbd",
                "chunkType": "PARITY"
              }
            },
            {
              "Datanode-HostName": "node7",
              "Datanode-IP": "ip7",
              "Container-ID": 2048,
              "Block-ID": 113750153625602308,
              "Locations": {
                "files": [
                  "/data/1/hadoop-ozone/datanode/data/hdds/CID-3ff4197e-8f90-496f-bbaa-40ecf8bbb437/current/containerDir4/2048/chunks/113750153625602308.block"
                ],
                "pipelineID": "24c391f5-1349-48a2-b200-796d76e6ecbd",
                "chunkType": "DATA"
              }
            },
            {
              "Datanode-HostName": "node8",
              "Datanode-IP": "ip8",
              "Container-ID": 2048,
              "Block-ID": 113750153625602308,
              "Locations": {
                "files": [
                  "/data/1/hadoop-ozone/datanode/data/hdds/CID-3ff4197e-8f90-496f-bbaa-40ecf8bbb437/current/containerDir4/2048/chunks/113750153625602308.block"
                ],
                "pipelineID": "24c391f5-1349-48a2-b200-796d76e6ecbd",
                "chunkType": "DATA"
              }
            },
            {
              "Datanode-HostName": "node6",
              "Datanode-IP": "ip6",
              "Container-ID": 2048,
              "Block-ID": 113750153625602308,
              "Locations": {
                "files": [
                  "/data/1/hadoop-ozone/datanode/data/hdds/CID-3ff4197e-8f90-496f-bbaa-40ecf8bbb437/current/containerDir4/2048/chunks/113750153625602308.block"
                ],
                "pipelineID": "24c391f5-1349-48a2-b200-796d76e6ecbd",
                "chunkType": "DATA"
              }
            }
          ]
        ]
      } 

      According to above output block path for node node8 is /data/1/hadoop-ozone/datanode/data/hdds/CID-3ff4197e-8f90-496f-bbaa-40ecf8bbb437/current/containerDir4/2048/chunks/113750153625602308.block

      But on checking the actual node the block path found is - 

      # find /data -name 2048
      /data/2/hadoop-ozone/datanode/data/hdds/CID-3ff4197e-8f90-496f-bbaa-40ecf8bbb437/current/containerDir4/2048
      # ls /data/2/hadoop-ozone/datanode/data/hdds/CID-3ff4197e-8f90-496f-bbaa-40ecf8bbb437/current/containerDir4/2048
      chunks  metadata 

      It is found in partition /data/2 instead of chunkinfo output /data/1

      Cluster has 3 partitions - /data/{1..3}

      Attachments

        Activity

          People

            Unassigned Unassigned
            jyosin Jyotirmoy Sinha
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated: