linyiqun commented on a change in pull request #1841:
URL: https://github.com/apache/ozone/pull/1841#discussion_r565351257
##########
File path:
hadoop-ozone/ozone-manager/src/test/java/org/apache/hadoop/ozone/om/request/TestOMRequestUtils.java
##########
@@ -927,4 +962,11 @@ public static long addParentsToDirTable(String volumeName,
String bucketName,
}
return parentId;
}
+
+ public static void configureFSOptimizedPaths(Configuration conf,
+ boolean enableFileSystemPaths, String version) {
+ conf.setBoolean(OMConfigKeys.OZONE_OM_ENABLE_FILESYSTEM_PATHS,
+ enableFileSystemPaths);
+ conf.set(OMConfigKeys.OZONE_OM_LAYOUT_VERSION, version);
+ }
Review comment:
We already defined one completely same method
OzoneTestUtils#configureFSOptimizedPaths, we can reuse that and don't need to
define this method again.
##########
File path:
hadoop-ozone/integration-test/src/test/java/org/apache/hadoop/fs/ozone/TestOzoneFileOps.java
##########
@@ -73,8 +74,8 @@ public void setupOzoneFileSystem()
throws IOException, TimeoutException, InterruptedException {
OzoneConfiguration conf = new OzoneConfiguration();
conf.setInt(FS_TRASH_INTERVAL_KEY, 1);
- conf.set(OMConfigKeys.OZONE_OM_LAYOUT_VERSION, "V1");
- conf.setBoolean(OMConfigKeys.OZONE_OM_ENABLE_FILESYSTEM_PATHS, false);
+ OzoneTestUtils.configureFSOptimizedPaths(conf,
+ true, OMConfigKeys.OZONE_OM_LAYOUT_VERSION_V1);
Review comment:
Original OZONE_OM_ENABLE_FILESYSTEM_PATHS is false, but now is expected
to pass true?
##########
File path:
hadoop-ozone/integration-test/src/test/java/org/apache/hadoop/fs/ozone/TestOzoneFileInterfacesV1.java
##########
@@ -44,9 +43,7 @@ public TestOzoneFileInterfacesV1(boolean setDefaultFs,
@Override
protected OzoneConfiguration getOzoneConfiguration() {
OzoneConfiguration conf = new OzoneConfiguration();
- conf.setBoolean(OMConfigKeys.OZONE_OM_ENABLE_FILESYSTEM_PATHS,
- enableFileSystemPaths);
- conf.set(OMConfigKeys.OZONE_OM_LAYOUT_VERSION, "V1");
Review comment:
Is here correct to just delete this rather than
OzoneTestUtils.configureFSOptimizedPaths(conf, enableFileSystemPaths,
OMConfigKeys.OZONE_OM_LAYOUT_VERSION_V1);?
----------------------------------------------------------------
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]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]