World's most powerful open data catalog for building a high-performance, geo-distributed and federated metadata lake.
Java ai-catalogdata-catalogdatalakefederated-querylakehousemetadatametalakemodel-catalogopendatacatalogskycomputingstratosphere
[#14616] docs: Correct health status casing in API documentation (#14617)
Jerry Shao3851fa5d650b
diff --git a/docs/health-and-readiness.md b/docs/health-and-readiness.mdindex 877d8c59df..a51fcbc446 100644--- a/docs/health-and-readiness.md+++ b/docs/health-and-readiness.md@@ -60,6 +60,11 @@ a status of `up` or `down`, and a details map that explains a failure. On the Grnormal check names are `httpServer` and `entityStore`. After an observed out-of-memory error, allthree endpoints instead report the `jvm` failure described below.+The top-level `status` and each `checks[].status` use lowercase `up`/`down` on Gravitino+and Lance REST, and uppercase `UP`/`DOWN` on Iceberg REST. This applies to liveness, readiness,+aggregate endpoints, and their root aliases, for all health results. Clients that inspect these+fields must account for the casing used by the service they call.+## Out-of-memory FailuresA Metaspace or heap `OutOfMemoryError` can leave already-loaded endpoints responding successfullydiff --git a/docs/iceberg-rest-service.md b/docs/iceberg-rest-service.mdindex 859dcd544b..d939734e5d 100644--- a/docs/iceberg-rest-service.md+++ b/docs/iceberg-rest-service.md@@ -807,7 +807,7 @@ Root-level aliases are also available for global traffic managers that require pAfter an observed `OutOfMemoryError`, all health endpoints and root aliases return 503 with a `jvm` failure until restart. See [out-of-memory failures](health-and-readiness.md#out-of-memory-failures) for detection scope.-All endpoints return a JSON body with the same shape as the main Gravitino server. The `code` field is always `0`. `status` is `UP` or `DOWN`. Liveness reports `httpServer` and readiness reports `catalogWrapperManager`.+All endpoints return a JSON body with the same shape as the main Gravitino server. The `code` field is always `0`. Both the top-level `status` and each `checks[].status` use uppercase `UP` or `DOWN`, unlike the lowercase `up`/`down` returned by Gravitino and Lance REST. Liveness reports `httpServer` and readiness reports `catalogWrapperManager`.Healthy response (HTTP 200):diff --git a/docs/lance-rest-service.md b/docs/lance-rest-service.mdindex 4750d8902f..8e0dba3fb6 100644--- a/docs/lance-rest-service.md+++ b/docs/lance-rest-service.md@@ -246,7 +246,8 @@ Access the service at `http://localhost:9101/lance`.The Lance REST service exposes `/lance/health/live`, `/lance/health/ready`, and`/lance/health` on its own port. Root aliases `/health/live`, `/health/ready`, `/health`,and `/health.html` are also available. Readiness checks whether the namespace wrapper-is initialized.+is initialized. The top-level `status` and each `checks[].status` use lowercase+`up` or `down`, as on the main Gravitino server.After an observed `OutOfMemoryError`, all these endpoints return HTTP 503 with a`jvm` failure until restart, even if the wrapper remains initialized. Seediff --git a/docs/open-api/health.yaml b/docs/open-api/health.yamlindex dd4be8bdae..0e2403e7d4 100644--- a/docs/open-api/health.yaml+++ b/docs/open-api/health.yaml@@ -116,9 +116,9 @@ components:status:type: stringenum:- - UP- - DOWN- description: Aggregate health status+ - up+ - down+ description: Aggregate health status, serialized in lowercase by the Gravitino serverchecks:type: arraydescription: Per-component check results@@ -138,9 +138,9 @@ components:status:type: stringenum:- - UP- - DOWN- description: Status of the component+ - up+ - down+ description: Status of the component, serialized in lowercase by the Gravitino serverdetails:type: objectadditionalProperties:@@ -151,24 +151,24 @@ components:HealthUp:value:code: 0- status: UP+ status: upchecks:- name: httpServer- status: UP+ status: updetails: {}- name: entityStore- status: UP+ status: updetails: {}HealthDown:value:code: 0- status: DOWN+ status: downchecks:- name: httpServer- status: UP+ status: updetails: {}- name: entityStore- status: DOWN+ status: downdetails:reason: timeout