Skip to content

Conversation

quux00
Copy link
Contributor

@quux00 quux00 commented Jan 22, 2025

Backports the following commits to 8.x:

…ssion required) (elastic#119898)

Resolve/cluster allows querying for cluster-info-only (no index expression required)

This enhancement provides users with the ability to query the _resolve/cluster API endpoint without specifying
an index expression to match against. This allows users to quickly test what remote clusters are configured on
a cluster and whether they are available for querying.

The new endpoint takes no index expression:

```
GET _resolve/cluster
```

and returns the same information as before except for the "matching_indices" field. Example response:

```
{
  "remote1": {
    "connected": false,
    "skip_unavailable": true
  },
  "remote2": {
    "connected": true,
    "skip_unavailable": false,
    "version": {
      "number": "8.17.0",
      "build_flavor": "default",
      "minimum_wire_compatibility_version": "7.17.0",
      "minimum_index_compatibility_version": "7.0.0"
    }
  }
}
```

For backwards compatibility, this new endpoint works with clusters from older versions by querying with the index expression `dummy*` on those older clusters and ignoring the matching_indices value in the response they return.
@quux00 quux00 added :Search Foundations/CCS >enhancement auto-merge-without-approval Automatically merge pull request when CI checks pass (NB doesn't wait for reviews!) backport Team:Search Foundations Meta label for the Search Foundations team in Elasticsearch labels Jan 22, 2025
Copy link
Contributor

Documentation preview:

@elasticsearchmachine elasticsearchmachine merged commit 36f5a55 into elastic:8.x Jan 22, 2025
16 checks passed
@quux00 quux00 deleted the backport/8.x/pr-119898 branch January 22, 2025 18:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

auto-merge-without-approval Automatically merge pull request when CI checks pass (NB doesn't wait for reviews!) backport >enhancement :Search Foundations/CCS Team:Search Foundations Meta label for the Search Foundations team in Elasticsearch v8.18.0

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants