avijayanhwx commented on a change in pull request #987: HDDS-1685. Recon: Add support for 'start' query param to containers… URL: https://github.com/apache/hadoop/pull/987#discussion_r296032332
########## File path: hadoop-ozone/ozone-recon/src/main/java/org/apache/hadoop/ozone/recon/spi/impl/ContainerDBServiceProviderImpl.java ########## @@ -164,38 +194,42 @@ public Integer getCountForForContainerKeyPrefix( return prefixes; } - /** - * Get all the containers. - * - * @return Map of containerID -> containerMetadata. - * @throws IOException - */ - @Override - public Map<Long, ContainerMetadata> getContainers() throws IOException { - // Set a negative limit to get all the containers. - return getContainers(-1); Review comment: Can we name the -1 as something like Container.ALL? ---------------------------------------------------------------- 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: us...@infra.apache.org With regards, Apache Git Services --------------------------------------------------------------------- To unsubscribe, e-mail: common-issues-unsubscr...@hadoop.apache.org For additional commands, e-mail: common-issues-h...@hadoop.apache.org