errose28 commented on a change in pull request #3175:
URL: https://github.com/apache/ozone/pull/3175#discussion_r828422243
##########
File path:
hadoop-ozone/ozone-manager/src/main/java/org/apache/hadoop/ozone/om/KeyManagerImpl.java
##########
@@ -533,6 +533,8 @@ private boolean isKeyEmpty(OmKeyInfo keyInfo) {
int maxKeys) throws IOException {
Preconditions.checkNotNull(volumeName);
Preconditions.checkNotNull(bucketName);
+ Preconditions.checkArgument(!isBucketFSOptimized(volumeName, bucketName),
+ "ListKeys called for fso bucket instead of listStatus");
Review comment:
Also, this would imply an old client is not able to list keys in an FSO
bucket. Maybe this is ok since it can't read them anyways, but just a
consequence to think about.
--
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]