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/11/14 07:49:10 UTC

[GitHub] [ozone] mukul1987 opened a new pull request #2839: HDDS-5983. Prefix Parser tool should only work for FSO buckets.

mukul1987 opened a new pull request #2839:
URL: https://github.com/apache/ozone/pull/2839


   ## What changes were proposed in this pull request?
   Prefix Parser tool will only work against FSO buckets, this jira adds a check for that
   
   ## What is the link to the Apache JIRA
   https://issues.apache.org/jira/browse/HDDS-5983
   
   ## How was this patch tested?
   Existing 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.

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


[GitHub] [ozone] mukul1987 merged pull request #2839: HDDS-5983. Prefix Parser tool should only work for FSO buckets.

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


   


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


[GitHub] [ozone] rakeshadr commented on a change in pull request #2839: HDDS-5983. Prefix Parser tool should only work for FSO buckets.

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



##########
File path: hadoop-ozone/tools/src/main/java/org/apache/hadoop/ozone/debug/PrefixParser.java
##########
@@ -148,6 +148,14 @@ public void parse(String vol, String buck, String db,
       return;
     }
 
+    BucketLayout bucketLayout = info.getBucketLayout();
+    if (!bucketLayout.isFileSystemOptimized()) {
+      System.out.println("Prefix tool only works for FileSystem Optimized" +
+              "bucket. Bucket Type is:" + bucketLayout);

Review comment:
       @mukul1987 can you please modify message `"Bucket Type is:"` -> to -> `"Bucket Layout is:"`




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