priyeshkaratha commented on code in PR #9258:
URL: https://github.com/apache/ozone/pull/9258#discussion_r2601159884


##########
hadoop-ozone/recon/src/main/java/org/apache/hadoop/ozone/recon/api/ContainerEndpoint.java:
##########
@@ -392,6 +402,27 @@ public Response getUnhealthyContainers(
       @QueryParam(RECON_QUERY_MAX_CONTAINER_ID) long maxContainerId,
       @DefaultValue(PREV_CONTAINER_ID_DEFAULT_VALUE)
       @QueryParam(RECON_QUERY_MIN_CONTAINER_ID) long minContainerId) {
+
+    // Check feature flag to determine which implementation to use
+    boolean useV2 = ozoneConfiguration.getBoolean(

Review Comment:
   can we move this flag as method variable and initialise in constructor since 
its reading a config.



-- 
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: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to