Akanksha-kedia opened a new pull request, #17248:
URL: https://github.com/apache/pinot/pull/17248

   
   
   The frontend logic in `PinotMethodUtils.ts` has been enhanced with:
   
   1. __Health check functionality__ (lines 147-158): `checkInstanceHealth` 
function that pings the `/health` endpoint
   
   2. __Enhanced status determination__ (lines 165-201): The `getInstanceData` 
function now includes logic to determine status based on:
   
      - `shutdownInProgress` flag
      - `enabled` state
      - `queriesDisabled` state
      - Health endpoint response
      - Live instance status
   
   The status priority is correctly implemented:
   
   - Dead (not alive)
   - Shutting Down (alive + shutdownInProgress)
   - Disabled (alive + not enabled)
   - Queries Disabled (alive + queriesDisabled)
   - Unhealthy (alive but health check fails)
   - Healthy (alive + health check passes)
   


-- 
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