ivandika3 commented on code in PR #4585: URL: https://github.com/apache/ozone/pull/4585#discussion_r1324223726
########## hadoop-ozone/recon/src/main/java/org/apache/hadoop/ozone/recon/recovery/ReconOMMetadataManager.java: ########## @@ -47,4 +50,26 @@ public interface ReconOMMetadataManager extends OMMetadataManager { * @return true if OM Tables are initialized, otherwise false. */ boolean isOmTablesInitialized(); + + /** + * Return all volumes in the file system. + * @return all the volumes from the OM DB. + */ + List<OmVolumeArgs> listVolumes() throws IOException; + + /** + * Check if volume exists in the OM table. + * @param volName volume name without any protocol prefix. + * @return true if volume exists, otherwise false. + * @throws IOException IOE + */ + boolean volumeExists(String volName) throws IOException; + + /** + * List all buckets under a volume. + * @param volumeName volume name without protocol prefix. + * @return buckets under volume or all buckets if volume is null. + */ + List<OmBucketInfo> listBucketsUnderVolume( Review Comment: Updated with limit (default 1000) to bound the number buckets/volumes returned. -- 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-unsubscr...@ozone.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org --------------------------------------------------------------------- To unsubscribe, e-mail: issues-unsubscr...@ozone.apache.org For additional commands, e-mail: issues-h...@ozone.apache.org