jerryshao opened a new pull request, #10853:
URL: https://github.com/apache/gravitino/pull/10853

   ### What changes were proposed in this pull request?
   
   Backport of #10840 to branch-1.2.
   
   Cherry-picks commit 614302ceca037cd2afef921e8b55a9f8d3470a71.
   
   Adds three health check endpoints following MicroProfile Health semantics:
   - `GET /api/health/live` — liveness probe
   - `GET /api/health/ready` — readiness probe (checks entity store)
   - `GET /api/health` — aggregate (both checks)
   - `GET /health`, `GET /health/live`, `GET /health/ready` — root-level aliases
   
   Exempts `/api/health*` and `/health/*` from `AuthenticationFilter` so
   Kubernetes probes and load balancers can reach endpoints without credentials.
   
   ### Why are the changes needed?
   
   Parity fix for branch-1.2: Kubernetes probe configuration and enterprise GTM
   health-path standards require these endpoints to be available.
   
   Fix: #10839
   
   ### Does this PR introduce _any_ user-facing change?
   
   Yes — adds three new public REST endpoints under `/api/health` and root-level
   aliases. No existing endpoint behavior is changed.
   
   ### How was this patch tested?
   
   Covered by the tests included in the cherry-picked commit:
   - `TestHealthOperations` (liveness, readiness, aggregate)
   - `TestHealthAliasServlet` (forward paths and null-dispatcher 503)
   - `TestAuthenticationFilter` (health path bypass and non-health path auth)


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

Reply via email to