difin commented on PR #5652: URL: https://github.com/apache/hive/pull/5652#issuecomment-2759890756
> > or health checking, because it returns true when the instance is a leader and false otherwise. > > i am confused now. I thought that the HA health-check is supposed to check the status of a leader HS2. If let's say HS2 is running in HA mode and there are 2 HS2 instances, A and B, and A is a leader, then when calling the health check endpoint on A it will return true because A is a leader and when calling the health check endpoint on B it will return false because B is not a leader. If there is a leader failover and B becomes a leader then health checking on A will return false and health check on B will return true. There are several existing tests in `TestActivePassiveHA` that test it. I don't know if in production environments the health checking script always calls the leader HS2 to check the health status or if it might call the slave HS2s. I asked someone who should know more about usage of the health check script, waiting for reply. -- 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: gitbox-unsubscr...@hive.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org --------------------------------------------------------------------- To unsubscribe, e-mail: gitbox-unsubscr...@hive.apache.org For additional commands, e-mail: gitbox-h...@hive.apache.org