swamirishi commented on code in PR #7200:
URL: https://github.com/apache/ozone/pull/7200#discussion_r1765870757
##########
hadoop-ozone/ozone-manager/src/main/java/org/apache/hadoop/ozone/om/KeyManager.java:
##########
@@ -216,6 +242,28 @@ OmMultipartUploadListParts listParts(String volumeName,
String bucketName,
*/
Table.KeyValue<String, OmKeyInfo> getPendingDeletionDir() throws IOException;
+ /**
+ * Returns an iterator for pending deleted directories.
+ * @throws IOException
+ */
+ TableIterator<String, ? extends Table.KeyValue<String, OmKeyInfo>>
getPendingDeletionDirs() throws IOException;
+
+ TableIterator<String, ? extends Table.KeyValue<String, OmKeyInfo>>
getPendingDeletionDirs(
+ String volume, String bucket) throws IOException;
+
+ default List<Table.KeyValue<String, OmKeyInfo>> getDeletedDirEntries(String
volume, String bucket, int count)
+ throws IOException {
+ List<Table.KeyValue<String, OmKeyInfo>> deletedDirEntries = new
ArrayList<>(count);
+ try (TableIterator<String, ? extends Table.KeyValue<String, OmKeyInfo>>
iterator =
+ getPendingDeletionDirs(volume, bucket)) {
Review Comment:
We would need this in the future directoryDeletingService code change.
--
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]