swamirishi commented on code in PR #8587: URL: https://github.com/apache/ozone/pull/8587#discussion_r2411601263
########## hadoop-ozone/common/src/main/java/org/apache/hadoop/ozone/om/helpers/OmBucketInfo.java: ########## Review Comment: https://issues.apache.org/jira/browse/HDDS-13759 ########## hadoop-ozone/common/src/main/java/org/apache/hadoop/ozone/om/helpers/OmKeyInfo.java: ########## @@ -57,6 +58,7 @@ public final class OmKeyInfo extends WithParentObjectId private static final Codec<OmKeyInfo> CODEC_TRUE = newCodec(true); private static final Codec<OmKeyInfo> CODEC_FALSE = newCodec(false); + private static final String COMMITTED_KEY_DELETED_FLAG = "COMMITTED_KEY_DELETED"; Review Comment: done ########## hadoop-ozone/common/src/main/java/org/apache/hadoop/ozone/om/helpers/OmKeyInfo.java: ########## @@ -927,4 +942,17 @@ public String getPath() { } return getParentObjectID() + OzoneConsts.OM_KEY_PREFIX + getFileName(); } + + public static boolean isKeyEmpty(@Nullable OmKeyInfo keyInfo) { + if (keyInfo == null) { + return true; + } + for (OmKeyLocationInfoGroup keyLocationList : keyInfo + .getKeyLocationVersions()) { + if (keyLocationList.getLocationListCount() != 0) { + return false; + } + } Review Comment: done -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected] --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
