OpenSearch/qa
Luca Cavanna e18cac3659
Add finalReduce flag to SearchRequest (#38104)
With #37000 we made sure that fnial reduction is automatically disabled
whenever a localClusterAlias is provided with a SearchRequest.

While working on #37838, we found a scenario where we do need to set a
localClusterAlias yet we would like to perform a final reduction in the
remote cluster: when searching on a single remote cluster.

Relates to #32125

This commit adds support for a separate finalReduce flag to
SearchRequest and makes use of it in TransportSearchAction in case we
are searching against a single remote cluster.

This also makes sure that num_reduce_phases is correct when searching
against a single remote cluster: it makes little sense to return
`num_reduce_phases` set to `2`, which looks especially weird in case
the search was performed against a single remote shard. We should
perform one reduction phase only in this case and `num_reduce_phases`
should reflect that.

* line length
2019-02-01 12:11:42 +01:00
..
ccs-unavailable-clusters Introduce ability to minimize round-trips in CCS (#37828) 2019-01-31 15:12:14 +01:00
die-with-dignity Elasticsearch support to JSON logging (#36833) 2019-01-29 07:20:09 +01:00
evil-tests Handle scheduler exceptions (#38014) 2019-01-31 17:51:45 +01:00
full-cluster-restart Fix FullClusterRestartIT.testHistoryUUIDIsAdded (#38098) 2019-02-01 11:16:54 +01:00
logging-config Deprecate minimum_master_nodes (#37868) 2019-01-30 20:09:15 +00:00
mixed-cluster Converting randomized testing to create a separate unitTest task instead of replacing the builtin test task (#36311) 2018-12-19 08:25:20 +02:00
multi-cluster-search Add finalReduce flag to SearchRequest (#38104) 2019-02-01 12:11:42 +01:00
no-bootstrap-tests Plugins: Remove meta plugins (#30670) 2018-05-18 10:56:08 -07:00
rolling-upgrade Deprecate minimum_master_nodes (#37868) 2019-01-30 20:09:15 +00:00
smoke-test-client Testing conventions: add support for checking base classes (#36650) 2019-01-08 13:39:03 +02:00
smoke-test-http Deprecate types in index API (#36575) 2018-12-18 08:53:49 -05: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 Switch default time format for ingest from Joda to Java for v7 (#37934) 2019-01-30 16:26:28 +00:00
smoke-test-multinode Simplify integ test distribution types (#37618) 2019-01-21 12:37:17 -08:00
smoke-test-plugins Move repository-s3 fixture tests to QA test project (#29372) 2018-04-27 16:49:06 +02:00
unconfigured-node-name Elasticsearch support to JSON logging (#36833) 2019-01-29 07:20:09 +01:00
vagrant Fix exit code for Security CLI tools (#37956) 2019-01-30 17:51:11 +11:00
verify-version-constants MINOR: Remove some Deadcode in Gradle (#37160) 2019-01-07 09:21:25 +01:00
wildfly Testing conventions: add support for checking base classes (#36650) 2019-01-08 13:39:03 +02:00
build.gradle Simplify integ test distribution types (#37618) 2019-01-21 12:37:17 -08:00