This is an automated email from the ASF dual-hosted git repository.

umamahesh pushed a commit to branch HDDS-3816-ec
in repository https://gitbox.apache.org/repos/asf/ozone.git


The following commit(s) were added to refs/heads/HDDS-3816-ec by this push:
     new ee630e2  HDDS-6240. EC: Container Info command with json switch fails 
for EC containers (#3033)
ee630e2 is described below

commit ee630e299564524ab63b00bec7e6cc0322108470
Author: Stephen O'Donnell <[email protected]>
AuthorDate: Wed Feb 2 20:24:35 2022 +0000

    HDDS-6240. EC: Container Info command with json switch fails for EC 
containers (#3033)
---
 .../main/java/org/apache/hadoop/hdds/scm/container/ContainerInfo.java   | 2 ++
 1 file changed, 2 insertions(+)

diff --git 
a/hadoop-hdds/common/src/main/java/org/apache/hadoop/hdds/scm/container/ContainerInfo.java
 
b/hadoop-hdds/common/src/main/java/org/apache/hadoop/hdds/scm/container/ContainerInfo.java
index 74136f5..7715341 100644
--- 
a/hadoop-hdds/common/src/main/java/org/apache/hadoop/hdds/scm/container/ContainerInfo.java
+++ 
b/hadoop-hdds/common/src/main/java/org/apache/hadoop/hdds/scm/container/ContainerInfo.java
@@ -154,10 +154,12 @@ public class ContainerInfo implements 
Comparator<ContainerInfo>,
     return replicationConfig;
   }
 
+  @JsonIgnore
   public HddsProtos.ReplicationType getReplicationType() {
     return replicationConfig.getReplicationType();
   }
 
+  @JsonIgnore
   public HddsProtos.ReplicationFactor getReplicationFactor() {
     return ReplicationConfig.getLegacyFactor(replicationConfig);
   }

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

Reply via email to