jojochuang commented on code in PR #8447: URL: https://github.com/apache/ozone/pull/8447#discussion_r2106756251
########## hadoop-ozone/ozone-manager/src/main/java/org/apache/hadoop/ozone/om/response/key/OMKeyPurgeResponse.java: ########## @@ -103,19 +106,21 @@ private void processKeysToUpdate(BatchOperation batchOp, for (SnapshotMoveKeyInfos keyToUpdate : keysToUpdateList) { List<KeyInfo> keyInfosList = keyToUpdate.getKeyInfosList(); - RepeatedOmKeyInfo repeatedOmKeyInfo = - createRepeatedOmKeyInfo(keyInfosList); + RepeatedOmKeyInfo repeatedOmKeyInfo = createRepeatedOmKeyInfo(keyInfosList); metadataManager.getDeletedTable().putWithBatch(batchOp, keyToUpdate.getKey(), repeatedOmKeyInfo); } } - private void processKeys(BatchOperation batchOp, - OMMetadataManager metadataManager) throws IOException { + private void processKeys(BatchOperation batchOp, OMMetadataManager metadataManager) throws IOException { for (String key : purgeKeyList) { metadataManager.getDeletedTable().deleteWithBatch(batchOp, key); } + // Delete rename entries. + for (String key : renamedList) { + metadataManager.getSnapshotRenamedTable().deleteWithBatch(batchOp, key); Review Comment: maybe a metric for number of renamed entries removed? -- 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: issues-unsubscr...@ozone.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org --------------------------------------------------------------------- To unsubscribe, e-mail: issues-unsubscr...@ozone.apache.org For additional commands, e-mail: issues-h...@ozone.apache.org