[ 
https://issues.apache.org/jira/browse/HDDS-6380?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Stephen O'Donnell resolved HDDS-6380.
-------------------------------------
    Fix Version/s: EC-Branch
       Resolution: Fixed

> EC: Key Info command should not display legacy replication fields as they 
> duplicate ReplicationConfig 
> ------------------------------------------------------------------------------------------------------
>
>                 Key: HDDS-6380
>                 URL: https://issues.apache.org/jira/browse/HDDS-6380
>             Project: Apache Ozone
>          Issue Type: Sub-task
>            Reporter: Stephen O'Donnell
>            Assignee: Stephen O'Donnell
>            Priority: Major
>              Labels: pull-request-available
>             Fix For: EC-Branch
>
>
> Listing they key details looks like the following:
> {code:java}
> $ 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
> } {code}
> 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.



--
This message was sent by Atlassian Jira
(v8.20.1#820001)

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to