OpenSearch/plugins
Boaz Leskes d6c2b4f7c5 Adapt InternalTestCluster to auto adjust `minimum_master_nodes` (#21458)
#20960 removed `LocalDiscovery` and we now use `ZenDiscovery` in all our tests. To keep cluster forming fast, we are using a `MockZenPing` implementation which uses static maps to return instant results making master election fast. Currently, we don't set `minimum_master_nodes` causing the occasional split brain when starting multiple nodes concurrently and their pinging is so fast that it misses the fact that one of the node has elected it self master. To solve this, `InternalTestCluster` is modified to behave like a true cluster and manage and set `minimum_master_nodes` correctly with every change to the number of nodes.

Tests that want to manage the settings themselves can opt out using a new `autoMinMasterNodes` parameter to the `ClusterScope` annotation. 

Having `min_master_nodes` set means the started node may need to wait for other nodes to be started as well. To combat this, we set `discovery.initial_state_timeout` to `0` and wait for the cluster to form once all node have been started. Also, because a node may wait and ping while other nodes are started, `MockZenPing` is adapted to wait rather than busy-ping.
2016-11-15 13:42:26 +00:00
..
analysis-icu Upgrade to lucene-6.3.0. (#21464) 2016-11-14 09:36:45 +01:00
analysis-kuromoji Upgrade to lucene-6.3.0. (#21464) 2016-11-14 09:36:45 +01:00
analysis-phonetic Upgrade to lucene-6.3.0. (#21464) 2016-11-14 09:36:45 +01:00
analysis-smartcn Upgrade to lucene-6.3.0. (#21464) 2016-11-14 09:36:45 +01:00
analysis-stempel Upgrade to lucene-6.3.0. (#21464) 2016-11-14 09:36:45 +01:00
analysis-ukrainian Upgrade to lucene-6.3.0. (#21464) 2016-11-14 09:36:45 +01:00
discovery-azure-classic Adapt InternalTestCluster to auto adjust `minimum_master_nodes` (#21458) 2016-11-15 13:42:26 +00:00
discovery-ec2 Adapt InternalTestCluster to auto adjust `minimum_master_nodes` (#21458) 2016-11-15 13:42:26 +00:00
discovery-file Plugins: Convert custom discovery to pull based plugin (#21398) 2016-11-08 12:52:10 -08:00
discovery-gce Use pre-JDK9 style FilePermissions on JDK9 (#21540) 2016-11-15 09:31:32 +01:00
ingest-attachment Test: Remove multi process support from rest test runner (#21391) 2016-11-07 15:07:34 -08:00
ingest-geoip Remove (again) test uses of onModule (#21414) 2016-11-10 16:06:14 -08:00
ingest-user-agent Test: Remove multi process support from rest test runner (#21391) 2016-11-07 15:07:34 -08:00
jvm-example Remove (again) test uses of onModule (#21414) 2016-11-10 16:06:14 -08:00
lang-javascript Clean up of Script. 2016-11-10 09:59:13 -08:00
lang-python Test: Remove multi process support from rest test runner (#21391) 2016-11-07 15:07:34 -08:00
mapper-murmur3 Test: Remove multi process support from rest test runner (#21391) 2016-11-07 15:07:34 -08:00
mapper-size Test: Remove multi process support from rest test runner (#21391) 2016-11-07 15:07:34 -08:00
repository-azure Test: Remove multi process support from rest test runner (#21391) 2016-11-07 15:07:34 -08:00
repository-gcs Test: Remove multi process support from rest test runner (#21391) 2016-11-07 15:07:34 -08:00
repository-hdfs Test: Remove multi process support from rest test runner (#21391) 2016-11-07 15:07:34 -08:00
repository-s3 Test: Remove multi process support from rest test runner (#21391) 2016-11-07 15:07:34 -08:00
store-smb Test: Remove multi process support from rest test runner (#21391) 2016-11-07 15:07:34 -08:00
build.gradle Build: Remove old maven deploy support (#20403) 2016-09-19 15:10:41 -07:00