OpenSearch/qa
Luca Cavanna 29450de7b5
Cross Cluster Search: make remote clusters optional (#27182)
Today Cross Cluster Search requires at least one node in each remote cluster to be up once the cross cluster search is run. Otherwise the whole search request fails despite some of the data (either local and/or remote) is available. This happens when performing the _search/shards calls to find out which remote shards the query has to be executed on. This scenario is different from shard failures that may happen later on when the query is actually executed, in case e.g. remote shards are missing, which is not going to fail the whole request but rather yield partial results, and the _shards section in the response will indicate that.

This commit introduces a boolean setting per cluster called search.remote.$cluster_alias.skip_if_disconnected, set to false by default, which allows to skip certain clusters if they are down when trying to reach them through a cross cluster search requests. By default all clusters are mandatory.

Scroll requests support such setting too when they are first initiated (first search request with scroll parameter), but subsequent scroll rounds (_search/scroll endpoint) will fail if some of the remote clusters went down meanwhile.

The search API response contains now a new _clusters section, similar to the _shards section, that gets returned whenever one or more clusters were disconnected and got skipped:

"_clusters" : {
    "total" : 3,
    "successful" : 2,
    "skipped" : 1
}
Such section won't be part of the response if no clusters have been skipped.

The per cluster skip_unavailable setting value has also been added to the output of the remote/info API.
2017-11-21 11:41:47 +01:00
..
ccs-unavailable-clusters Cross Cluster Search: make remote clusters optional (#27182) 2017-11-21 11:41:47 +01:00
evil-tests Move the CLI into its own subproject (#27114) 2017-11-18 21:42:57 -06:00
full-cluster-restart remove _primary and _replica shard preferences (#26791) 2017-10-08 11:03:06 -04:00
mixed-cluster Uses TransportMasterNodeAction to update shard snapshot status (#27165) 2017-11-17 11:54:44 -05:00
multi-cluster-search Cross Cluster Search: make remote clusters optional (#27182) 2017-11-21 11:41:47 +01:00
no-bootstrap-tests Remove the single argument Environment constructor (#27235) 2017-11-04 13:25:09 +00:00
query-builder-bwc Test query builder bwc against previous supported versions instead of just the current version. 2017-10-09 13:22:01 +02:00
reindex-from-old Revert shading for the low level rest client (#26367) 2017-08-25 14:13:12 -05:00
rolling-upgrade test: Sort hits by _id instead of _doc and 2017-11-10 12:11:51 +01:00
smoke-test-client Use nio transport in test clusters (#25986) 2017-08-01 16:19:31 -05:00
smoke-test-http Deguice ActionFilter (#26691) 2017-09-20 10:30:21 +02:00
smoke-test-ingest-disabled Tests: Change rest test extension from .yaml to .yml (#24659) 2017-05-16 17:24:35 -07:00
smoke-test-ingest-with-all-dependencies Add support for parsing inline script (#23824) (#26846) 2017-10-11 09:15:37 -07:00
smoke-test-multinode Tests: Change rest test extension from .yaml to .yml (#24659) 2017-05-16 17:24:35 -07:00
smoke-test-plugins Tests: Change rest test extension from .yaml to .yml (#24659) 2017-05-16 17:24:35 -07:00
smoke-test-reindex-with-all-modules Update by Query is modified to accept short `script` parameter. (#26841) 2017-10-11 21:57:46 +00:00
smoke-test-tribe-node Tests: Change rest test extension from .yaml to .yml (#24659) 2017-05-16 17:24:35 -07:00
vagrant [Test] Change Elasticsearch startup timeout to 120s in packaging tests 2017-11-15 11:58:47 +01:00
verify-version-constants Fix docs lucene version check error message 2017-06-26 15:45:13 -07:00
wildfly Revert shading for the low level rest client (#26367) 2017-08-25 14:13:12 -05:00