ashishkumar50 commented on code in PR #8108:
URL: https://github.com/apache/ozone/pull/8108#discussion_r2002492190
##########
hadoop-ozone/integration-test/src/test/java/org/apache/hadoop/ozone/client/rpc/OzoneRpcClientTests.java:
##########
@@ -1721,12 +1735,12 @@ public void testBucketUsedNamespace(BucketLayout
layout) throws IOException {
// Test create a directory twice will not increase usedNamespace twice
client.createDirectory(volumeName, bucketName, directoryName2);
assertEquals(2L, getBucketUsedNamespace(volumeName, bucketName));
- client.deleteKey(volumeName, bucketName,
- OzoneFSUtils.addTrailingSlashIfNeeded(directoryName1), false);
- assertEquals(1L, getBucketUsedNamespace(volumeName, bucketName));
- client.deleteKey(volumeName, bucketName,
- OzoneFSUtils.addTrailingSlashIfNeeded(directoryName2), false);
- assertEquals(0L, getBucketUsedNamespace(volumeName, bucketName));
+
+ if (layout != BucketLayout.OBJECT_STORE) {
+ handleNonOBSDelete(volumeName, bucketName, directoryName1,
directoryName2);
Review Comment:
Can you make this method as just to handle legacy delete. It will be easy in
future to remove legacy code.
For FSO and OBS should work as before.
--
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]