-
Notifications
You must be signed in to change notification settings - Fork 485
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[BUG] Cluster State API is undocumented and unavailable in clients #3784
Comments
Originally posted by @shwetathareja in opensearch-project/OpenSearch#7066 (comment) |
Should we move this to documentation-website as a documentation bug? |
moving it to documentation-website repo as a documentation bug |
@dblock this should probably be either moved to the api repo now, or closed if it's actually already been completed? |
Describe the bug
Coming from opensearch-project/OpenSearch#7066 (comment)
Internally to OpenSearch, the cluster state is retrieved by handling the
ClusterStateAction
/TransportClusterStateAction
/ClusterStateRequest
/ClusterStateResponse
implementations. TheRestClusterStateAction
exposes the API (?) as:/_cluster/state
/_cluster/state/{metric}
/_cluster/state/{metric}/{indices}
However, there is no (0 / zero / null) documentation of this API on the OpenSearch website. Entering "/_cluster/state" in the search bar at https://opensearch.org/ gives 17 responses, out of which zero contain the text "/_cluster/state".
Entering "/_cluster/state" and "OpenSearch" as key words into your favorite search engine give no results on https://opensearch.org/ (other than one of the previous 17 that doesn't actually include that text). There are some third-party references to the API, a reference to the API at ElasticSearch, and inclusion as a "common" API request on AOS documentation page.
More importantly, this "API" is not accessible via OpenSearch clients. Clients are spec-driven, but the Cluster APIs do not include it. While it's possible to reverse-engineer the ClusterStateRequest to construct a raw endpoint for
performRequest()
on the clients, the returned response is just JSON and parsing it into aClusterStateResponse
is an exercise in futility.Expected behavior
The text was updated successfully, but these errors were encountered: