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/04/06 12:53:28 UTC

[GitHub] [ozone] sadanand48 opened a new pull request #2118: [FSO]OMConfig: Modify 'ozone.om.layout.version' config and respective classes to FSO feature specific

sadanand48 opened a new pull request #2118:
URL: https://github.com/apache/ozone/pull/2118


   ## What changes were proposed in this pull request?
   Modify 'ozone.om.layout.version' config and respective classes to FSO feature specific
   
   ## What is the link to the Apache JIRA
   https://issues.apache.org/jira/browse/HDDS-4727
   
   ## How was this patch tested?
   CI
   


-- 
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:
users@infra.apache.org



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


[GitHub] [ozone] rakeshadr commented on pull request #2118: HDDS-4727. [FSO]OMConfig: Modify 'ozone.om.layout.version' config

Posted by GitBox <gi...@apache.org>.
rakeshadr commented on pull request #2118:
URL: https://github.com/apache/ozone/pull/2118#issuecomment-814784319


   Findbug issue is unrelated to this patch and will be fixed via HDDS-5032


-- 
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:
users@infra.apache.org



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


[GitHub] [ozone] rakeshadr commented on pull request #2118: HDDS-4727. [FSO]OMConfig: Modify 'ozone.om.layout.version' config

Posted by GitBox <gi...@apache.org>.
rakeshadr commented on pull request #2118:
URL: https://github.com/apache/ozone/pull/2118#issuecomment-814573580


   > Thanks @sadanand48 for addressing the comments.
   > 
   > +LGTM, I will rebase branch to fix build issues. Will wait for a clean build and then merge it.
   
   @sadanand48 I've rebased branch and we need to resolve conflicts in this PR. Please take care.


-- 
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:
users@infra.apache.org



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


[GitHub] [ozone] rakeshadr commented on pull request #2118: HDDS-4727. [FSO]OMConfig: Modify 'ozone.om.layout.version' config

Posted by GitBox <gi...@apache.org>.
rakeshadr commented on pull request #2118:
URL: https://github.com/apache/ozone/pull/2118#issuecomment-814783235


   +1 LGTM,  Thanks @sadanand48 for the contribution


-- 
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:
users@infra.apache.org



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


[GitHub] [ozone] rakeshadr commented on pull request #2118: HDDS-4727. [FSO]OMConfig: Modify 'ozone.om.layout.version' config

Posted by GitBox <gi...@apache.org>.
rakeshadr commented on pull request #2118:
URL: https://github.com/apache/ozone/pull/2118#issuecomment-814553309


   Thanks @sadanand48 for addressing the comments.
   
   +LGTM, I will rebase branch to fix build issues. Will wait for a clean build and then merge it.


-- 
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:
users@infra.apache.org



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


[GitHub] [ozone] rakeshadr merged pull request #2118: HDDS-4727. [FSO]OMConfig: Modify 'ozone.om.layout.version' config

Posted by GitBox <gi...@apache.org>.
rakeshadr merged pull request #2118:
URL: https://github.com/apache/ozone/pull/2118


   


-- 
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:
users@infra.apache.org



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


[GitHub] [ozone] sadanand48 commented on pull request #2118: HDDS-4727. [FSO]OMConfig: Modify 'ozone.om.layout.version' config

Posted by GitBox <gi...@apache.org>.
sadanand48 commented on pull request #2118:
URL: https://github.com/apache/ozone/pull/2118#issuecomment-814592635


   Thanks @rakeshadr for the comments . I have rebased the branch.


-- 
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:
users@infra.apache.org



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


[GitHub] [ozone] rakeshadr commented on a change in pull request #2118: [FSO]OMConfig: Modify 'ozone.om.layout.version' config and respective classes to FSO feature specific

Posted by GitBox <gi...@apache.org>.
rakeshadr commented on a change in pull request #2118:
URL: https://github.com/apache/ozone/pull/2118#discussion_r607974762



##########
File path: hadoop-ozone/common/src/main/java/org/apache/hadoop/ozone/om/OMConfigKeys.java
##########
@@ -246,13 +246,13 @@ private OMConfigKeys() {
   public static final long  OZONE_FS_TRASH_CHECKPOINT_INTERVAL_DEFAULT = 0;
 
   // TODO: Temporary workaround for OM upgrade path and will be replaced once
-  //  upgrade HDDS-3698 story reaches consensus. Defaulting to 'V0' so that
-  //  existing unit test cases won't be affected. New OM version should be 'V1'.
-  public static final String OZONE_OM_LAYOUT_VERSION =
-          "ozone.om.layout.version";
-  public static final String OZONE_OM_LAYOUT_VERSION_DEFAULT = "V0";
+  //  upgrade HDDS-3698 story reaches consensus. Defaulting to 'legacy' so that
+  //  existing unit test cases won't be affected. New OM version should be 'prefix'.
+  public static final String OZONE_OM_METADATA_LAYOUT =
+          "ozone.om.metadata.layout";
+  public static final String OZONE_OM_METADATA_LAYOUT_DEFAULT = "legacy";

Review comment:
       Please use capital letters.
   
   "LEGACY" 
   "PREFIX"

##########
File path: hadoop-hdds/common/src/main/resources/ozone-default.xml
##########
@@ -2522,12 +2522,12 @@
   </property>
 
   <property>
-    <name>ozone.om.layout.version</name>
+    <name>ozone.om.metadata.layout</name>
     <tag>OZONE, OM</tag>
-    <value>V0</value>
+    <value>legacy</value>
     <description>Temporary workaround for OM upgrade and will be replaced once

Review comment:
       Please modify description to something like below. Please feel free to edit, if anything needed.
   
     ```
     <property>
       <name>ozone.om.metadata.layout</name>
       <tag>OZONE, OM</tag>
       <value>LEGACY</value>
       <description>
         This property is used to define the metadata layout of file system
         paths. If it is configured as PREFIX in combination with
         ozone.om.enable.filesystem.paths to true then this allows to perform
         atomic rename and delete of any directory at any level in the namespace.
         Defaulting to LEGACY. Supported values: LEGACY and PREFIX.
       </description>
     </property>
   ```
   
   Can we use the value part in capital letters : LEGACY and PREFIX.
   
   In code, the value can be case insensitive and not required to add strict validations.
   

##########
File path: hadoop-ozone/common/src/main/java/org/apache/hadoop/ozone/om/OMConfigKeys.java
##########
@@ -246,13 +246,13 @@ private OMConfigKeys() {
   public static final long  OZONE_FS_TRASH_CHECKPOINT_INTERVAL_DEFAULT = 0;
 
   // TODO: Temporary workaround for OM upgrade path and will be replaced once

Review comment:
       Please remove this comment. Probably, you can use the same from my above comment.
   ```
   
     // TODO: Temporary workaround for OM upgrade path and will be replaced once
     //  upgrade HDDS-3698 story reaches consensus. Defaulting to 'legacy' so that
     //  existing unit test cases won't be affected. New OM version should be 'prefix'.
   ```




-- 
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:
users@infra.apache.org



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