jadami10 commented on a change in pull request #7880: URL: https://github.com/apache/pinot/pull/7880#discussion_r766345569
########## File path: pinot-broker/src/main/java/org/apache/pinot/broker/api/resources/PinotBrokerHealthCheck.java ########## @@ -23,12 +23,14 @@ import io.swagger.annotations.ApiResponse; import io.swagger.annotations.ApiResponses; import javax.inject.Inject; +import javax.inject.Named; Review comment: new to java + injection. what is this for? ########## File path: pinot-broker/src/main/java/org/apache/pinot/broker/api/resources/PinotBrokerHealthCheck.java ########## @@ -23,12 +23,14 @@ import io.swagger.annotations.ApiResponse; import io.swagger.annotations.ApiResponses; import javax.inject.Inject; +import javax.inject.Named; import javax.ws.rs.GET; import javax.ws.rs.Path; import javax.ws.rs.Produces; import javax.ws.rs.WebApplicationException; import javax.ws.rs.core.MediaType; import javax.ws.rs.core.Response; +import org.apache.pinot.broker.broker.BrokerAdminApiApplication; Review comment: do you need this import for the injection to work correctly? ########## File path: pinot-broker/src/main/java/org/apache/pinot/broker/api/resources/PinotBrokerHealthCheck.java ########## @@ -50,7 +55,7 @@ @ApiResponse(code = 503, message = "Broker is not healthy") }) public String getBrokerHealth() { - ServiceStatus.Status status = ServiceStatus.getServiceStatus(); + ServiceStatus.Status status = ServiceStatus.getServiceStatus(_instanceId); Review comment: why did we decide to add checking only the broker health check back? -- 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: commits-unsubscr...@pinot.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org --------------------------------------------------------------------- To unsubscribe, e-mail: commits-unsubscr...@pinot.apache.org For additional commands, e-mail: commits-h...@pinot.apache.org