sadanand48 commented on code in PR #6218:
URL: https://github.com/apache/ozone/pull/6218#discussion_r1502218363
##########
hadoop-ozone/integration-test/src/test/java/org/apache/hadoop/ozone/om/TestKeyManagerImpl.java:
##########
@@ -235,21 +241,21 @@ public static void cleanup() throws Exception {
FileUtils.deleteDirectory(dir);
}
+ @BeforeEach
+ public void init() throws Exception {
+ createBucket(VOLUME_NAME, BUCKET_NAME, false);
+ createBucket(VOLUME_NAME, BUCKET2_NAME, false);
+ createBucket(VOLUME_NAME, VERSIONED_BUCKET_NAME, true);
+ }
+
@AfterEach
public void cleanupTest() throws IOException {
mockContainerClient();
- List<OzoneFileStatus> fileStatuses = keyManager
- .listStatus(createBuilder().setKeyName("").build(), true, "", 100000);
- for (OzoneFileStatus fileStatus : fileStatuses) {
- if (fileStatus.isFile()) {
- writeClient.deleteKey(
- createKeyArgs(fileStatus.getKeyInfo().getKeyName()));
- } else {
- writeClient.deleteKey(createKeyArgs(OzoneFSUtils
- .addTrailingSlashIfNeeded(
- fileStatus.getKeyInfo().getKeyName())));
- }
- }
+ org.apache.hadoop.fs.Path volumePath = new
org.apache.hadoop.fs.Path(OZONE_URI_DELIMITER, VOLUME_NAME);
Review Comment:
import `org.apache.hadoop.fs.Path`
--
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]