elastic / elasticsearch

Free and Open Source, Distributed, RESTful Search Engine
https://www.elastic.co/products/elasticsearch
Other
69.62k stars 24.64k forks source link

ES|QL cross-cluster searches honors the skip_unavailable cluster setting #112886

Open quux00 opened 1 week ago

quux00 commented 1 week ago

Description

Overview

The skip_unavailable remote cluster setting is intended to allow ES admins to specify whether a cross-cluster search should fail or return partial data in the face of a remote cluster being unavailable during a cross-cluster search.

If skip_unavailable is true, a cross-cluster search:

ESQL cross-cluster searches should also respect this setting.

Proposed Implementation

This should be implemented in both the field-caps and policy-resolve APIs, which occur as part of the "pre-analysis" phase of ESQL processing.

Checks will be added that when a field-caps or enrich policy resolve call to a remote cluster that cluster cannot be connected to:

elasticsearchmachine commented 1 week ago

Pinging @elastic/es-analytical-engine (Team:Analytics)