aswinshakil commented on code in PR #4602:
URL: https://github.com/apache/ozone/pull/4602#discussion_r1180597213
##########
hadoop-ozone/ozone-manager/src/main/java/org/apache/hadoop/ozone/om/response/key/OMKeyCommitResponse.java:
##########
@@ -118,9 +118,12 @@ public RepeatedOmKeyInfo getKeysToDelete() {
protected void updateDeletedTable(OMMetadataManager omMetadataManager,
BatchOperation batchOperation) throws IOException {
- if (this.keysToDelete != null) {
+ if (this.keysToDelete != null
+ && this.keysToDelete.getOmKeyInfoList().size() > 0) {
+ String deleteKey = omMetadataManager.getOzoneDeletePathKey(
+ keysToDelete.getOmKeyInfoList().get(0).getObjectID(), openKeyName);
Review Comment:
Agree with @szetszwo. We might need to handle HDDS-8467, before committing
this patch.
--
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]