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 2020/12/15 12:22:06 UTC

[GitHub] [ozone] ChenSammi opened a new pull request #1703: HDDS-4591. BasicOzoneFileSystem reports StorageUnit class not found.

ChenSammi opened a new pull request #1703:
URL: https://github.com/apache/ozone/pull/1703


   https://issues.apache.org/jira/browse/HDDS-4591 


----------------------------------------------------------------
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] adoroszlai commented on pull request #1703: HDDS-4591. BasicOzoneFileSystem reports StorageUnit class not found.

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


   Thanks @xiaoyuyao for the review.


----------------------------------------------------------------
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] xiaoyuyao commented on a change in pull request #1703: HDDS-4591. BasicOzoneFileSystem reports StorageUnit class not found.

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



##########
File path: hadoop-ozone/ozonefs-common/src/main/java/org/apache/hadoop/fs/ozone/BasicOzoneFileSystem.java
##########
@@ -703,7 +703,14 @@ public boolean mkdirs(Path f, FsPermission permission) throws IOException {
 
   @Override
   public long getDefaultBlockSize() {
-    return (long) getConf().getStorageSize(
+    Configuration conf = getConf();
+    ConfigurationSource source;

Review comment:
       NIT: can we wrap this as a helper function as I can see the initialize() has similar logic. 
   

##########
File path: hadoop-ozone/ozonefs-common/src/main/java/org/apache/hadoop/fs/ozone/BasicOzoneFileSystem.java
##########
@@ -703,7 +703,14 @@ public boolean mkdirs(Path f, FsPermission permission) throws IOException {
 
   @Override
   public long getDefaultBlockSize() {

Review comment:
       We need a fix for this in BasicRootedOzoneFileSystem#getDefaultBlockSize() as well. 




----------------------------------------------------------------
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] adoroszlai commented on a change in pull request #1703: HDDS-4591. BasicOzoneFileSystem reports StorageUnit class not found.

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



##########
File path: hadoop-ozone/ozonefs-common/src/main/java/org/apache/hadoop/fs/ozone/BasicOzoneFileSystem.java
##########
@@ -703,7 +703,14 @@ public boolean mkdirs(Path f, FsPermission permission) throws IOException {
 
   @Override
   public long getDefaultBlockSize() {
-    return (long) getConf().getStorageSize(
+    Configuration conf = getConf();
+    ConfigurationSource source;
+    if (conf instanceof OzoneConfiguration) {
+      source = (ConfigurationSource) conf;
+    } else {
+      source = new LegacyHadoopConfigurationSource(conf);
+    }

Review comment:
       Instead of duplicating this logic from `initialize`:
   
   https://github.com/apache/ozone/blob/09579756b0756fcaf1b22b860c1ee1eb927e82c2/hadoop-ozone/ozonefs-common/src/main/java/org/apache/hadoop/fs/ozone/BasicOzoneFileSystem.java#L161-L166
   
   I think it would be cleaner to store this `ConfigurationSource`
   
   * either in `BasicOzoneFileSystem`
   * or in `BasicOzoneClientAdapterImpl` (and expose it via accessor method)
   
   and then use it here.




----------------------------------------------------------------
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] adoroszlai merged pull request #1703: HDDS-4591. BasicOzoneFileSystem reports StorageUnit class not found.

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


   


----------------------------------------------------------------
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] ChenSammi commented on pull request #1703: HDDS-4591. BasicOzoneFileSystem reports StorageUnit class not found.

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


   Thanks @xiaoyuyao  and @adoroszlai  for the code review. I have uploaded a new commit to address the comments. 


----------------------------------------------------------------
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] adoroszlai commented on pull request #1703: HDDS-4591. BasicOzoneFileSystem reports StorageUnit class not found.

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


   #1714 fixes the problem that this bug was not caught by acceptance tests.


----------------------------------------------------------------
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] codecov-io commented on pull request #1703: HDDS-4591. BasicOzoneFileSystem reports StorageUnit class not found.

Posted by GitBox <gi...@apache.org>.
codecov-io commented on pull request #1703:
URL: https://github.com/apache/ozone/pull/1703#issuecomment-745733053


   # [Codecov](https://codecov.io/gh/apache/ozone/pull/1703?src=pr&el=h1) Report
   > Merging [#1703](https://codecov.io/gh/apache/ozone/pull/1703?src=pr&el=desc) (0957975) into [master](https://codecov.io/gh/apache/ozone/commit/09579756b0756fcaf1b22b860c1ee1eb927e82c2?el=desc) (0957975) will **not change** coverage.
   > The diff coverage is `n/a`.
   
   [![Impacted file tree graph](https://codecov.io/gh/apache/ozone/pull/1703/graphs/tree.svg?width=650&height=150&src=pr&token=5YeeptJMby)](https://codecov.io/gh/apache/ozone/pull/1703?src=pr&el=tree)
   
   ```diff
   @@            Coverage Diff            @@
   ##             master    #1703   +/-   ##
   =========================================
     Coverage     75.71%   75.71%           
     Complexity    11309    11309           
   =========================================
     Files          1048     1048           
     Lines         53886    53886           
     Branches       5323     5323           
   =========================================
     Hits          40801    40801           
     Misses        10558    10558           
     Partials       2527     2527           
   ```
   
   
   
   ------
   
   [Continue to review full report at Codecov](https://codecov.io/gh/apache/ozone/pull/1703?src=pr&el=continue).
   > **Legend** - [Click here to learn more](https://docs.codecov.io/docs/codecov-delta)
   > `Δ = absolute <relative> (impact)`, `ø = not affected`, `? = missing data`
   > Powered by [Codecov](https://codecov.io/gh/apache/ozone/pull/1703?src=pr&el=footer). Last update [0957975...5d50709](https://codecov.io/gh/apache/ozone/pull/1703?src=pr&el=lastupdated). Read the [comment docs](https://docs.codecov.io/docs/pull-request-comments).
   


----------------------------------------------------------------
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