F64116045 commented on code in PR #11467:
URL: https://github.com/apache/ozone/pull/11467#discussion_r4240529156
##########
hadoop-ozone/s3gateway/src/test/java/org/apache/hadoop/ozone/s3/endpoint/TestBucketList.java:
##########
@@ -99,6 +99,25 @@ public void listDir() throws OS3Exception, IOException {
assertEquals(0, getBucketResponse.getContents().size());
}
+ /**
+ * Key equal to prefix + delimiter (dir/ with prefix dir) is handled by the
+ * indexOf(delimiter) branch as a common prefix. An endsWith(delimiter)
Review Comment:
one more small thing I just noticed
after this PR is merged, there is no `endsWith` in the code anymore, so the
second sentence may confuse future readers.
--
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]