You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@ozone.apache.org by GitBox <gi...@apache.org> on 2021/10/06 16:22:01 UTC

[GitHub] [ozone] rakeshadr commented on pull request #2707: HDDS-5373. [FSO] Define default bucket layout.

rakeshadr commented on pull request #2707:
URL: https://github.com/apache/ozone/pull/2707#issuecomment-936603469


   @JyotinderSingh Please include below code snippet to fix the test case failures. Those are failing especially because "ozone.default.bucket.layout" should be set of `FILE_SYSTEM_OPTIMIZED`. Presently, it is defaulting to `OBJECT_STORE` and is causing the failure.
   
   Please go to[ TestOMRequestUtils#configureFSOptimizedPaths](https://github.com/apache/ozone/blob/master/hadoop-ozone/ozone-manager/src/test/java/org/apache/hadoop/ozone/om/request/TestOMRequestUtils.java#L1038)method and set default to FSO like below:
   
   ```
     public static void configureFSOptimizedPaths(Configuration conf,
         boolean enableFileSystemPaths, String version) {
       conf.setBoolean(OMConfigKeys.OZONE_OM_ENABLE_FILESYSTEM_PATHS,
               enableFileSystemPaths);
       conf.set(OMConfigKeys.OZONE_OM_METADATA_LAYOUT, version);
       if (StringUtils.equalsIgnoreCase(OMConfigKeys.OZONE_OM_METADATA_LAYOUT_PREFIX, version)) {
         conf.set(OMConfigKeys.OZONE_DEFAULT_BUCKET_LAYOUT, BucketLayout.FILE_SYSTEM_OPTIMIZED.name());
       }
     }
   ```


-- 
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: issues-unsubscribe@ozone.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@ozone.apache.org
For additional commands, e-mail: issues-help@ozone.apache.org