mbsharp commented on a change in pull request #138: HDDS-2417 Add the list
trash command to the client side
URL: https://github.com/apache/hadoop-ozone/pull/138#discussion_r344510575
##########
File path:
hadoop-ozone/common/src/main/java/org/apache/hadoop/ozone/om/protocolPB/OzoneManagerProtocolClientSideTranslatorPB.java
##########
@@ -1592,4 +1595,43 @@ public OpenKeySession createFile(OmKeyArgs args,
}
return statusList;
}
+
+ @Override
+ public List<RepeatedOmKeyInfo> listTrash(String volumeName,
+ String bucketName, String startKeyName, String keyPrefix, int maxKeys)
+ throws IOException {
+
+ Preconditions.checkArgument(Strings.isNullOrEmpty(volumeName),
+ "The volume name cannot be null or " +
+ "empty. Please enter a valid volume name or use '*' as a wild card");
+
+ Preconditions.checkArgument(Strings.isNullOrEmpty(bucketName),
+ "The bucket name cannot be null or " +
+ "empty. Please enter a valid bucket name or use '*' as a wild card");
Review comment:
I just created HDDS-2457 to track that.
----------------------------------------------------------------
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.
For queries about this service, please contact Infrastructure at:
[email protected]
With regards,
Apache Git Services
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]