Uploaded image for project: 'Apache Ozone'
  1. Apache Ozone
  2. HDDS-3816 Erasure Coding
  3. HDDS-6380

EC: Key Info command should not display legacy replication fields as they duplicate ReplicationConfig

    XMLWordPrintableJSON

Details

    • Sub-task
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • None
    • EC-Branch
    • None

    Description

      Listing they key details looks like the following:

      $ ozone sh key info /vol1/bucket1/key5
      {
        "volumeName" : "vol1",
        "bucketName" : "bucket1",
        "name" : "key5",
        "dataSize" : 174,
        "creationTime" : "2022-02-27T21:38:48.816Z",
        "modificationTime" : "2022-02-27T21:38:49.526Z",
        "replicationConfig" : {
          "replicationFactor" : "THREE",
          "requiredNodes" : 3,
          "replication" : "THREE",
          "replicationType" : "RATIS"
        },
        "ozoneKeyLocations" : [ {
          "containerID" : 5,
          "localID" : 109611004723200006,
          "length" : 174,
          "offset" : 0,
          "keyOffset" : 0
        } ],
        "metadata" : { },
        "replicationType" : "RATIS",
        "replicationFactor" : 3
      } 

      ReplicationType and Factor are now contained in ReplicationConfig, so we should not display them in the JSON output. Also note that the replicationFactor is duplicated inside replicationConfig.replication since we added HDDS-6308, so we should probably also JsonIgnore those new fields to prevent the duplication in the command output.

      Attachments

        Issue Links

          Activity

            People

              sodonnell Stephen O'Donnell
              sodonnell Stephen O'Donnell
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: