diff --git a/hadoop-ozone/common/src/main/java/org/apache/hadoop/ozone/om/helpers/OmKeyLocationInfo.java b/hadoop-ozone/common/src/main/java/org/apache/hadoop/ozone/om/helpers/OmKeyLocationInfo.java index fae92f8a7d..79b3c82b2d 100644 --- a/hadoop-ozone/common/src/main/java/org/apache/hadoop/ozone/om/helpers/OmKeyLocationInfo.java +++ b/hadoop-ozone/common/src/main/java/org/apache/hadoop/ozone/om/helpers/OmKeyLocationInfo.java @@ -130,4 +130,14 @@ public final class OmKeyLocationInfo { info.setCreateVersion(keyLocation.getCreateVersion()); return info; } + + @Override + public String toString() { + return "{blockID={containerID=" + blockID.getContainerID() + + ", localID=" + blockID.getLocalID() + "}" + + ", shouldCreateContainer=" + shouldCreateContainer + + ", length=" + length + + ", offset=" + offset + + ", createVersion=" + createVersion + '}'; + } }