Removes waiting for yellow cluster health upon index (#19460)

creation in the REST tests, as we no longer need it due
to index creation now waiting for active shard copies
before returning (by default, it waits for the primary of
each shard, which is the same as ensuring yellow health).

Relates #19450
This commit is contained in:
Ali Beyad 2016-07-15 17:18:34 -04:00 committed by GitHub
parent 9f78f8cc91
commit 19d0dbcd17
66 changed files with 0 additions and 266 deletions

View File

@ -119,10 +119,6 @@ setup:
indices.refresh: indices.refresh:
index: [test, unmapped] index: [test, unmapped]
- do:
cluster.health:
wait_for_status: yellow
--- ---
"Unmapped": "Unmapped":

View File

@ -119,10 +119,6 @@ setup:
indices.refresh: indices.refresh:
index: [test, unmapped] index: [test, unmapped]
- do:
cluster.health:
wait_for_status: yellow
--- ---
"Unmapped": "Unmapped":

View File

@ -278,9 +278,6 @@
body: body:
settings: settings:
number_of_shards: 1 number_of_shards: 1
- do:
cluster.health:
wait_for_status: yellow
- do: - do:
index: index:
index: test index: test

View File

@ -6,9 +6,6 @@
body: body:
settings: settings:
number_of_replicas: 5 number_of_replicas: 5
- do:
cluster.health:
wait_for_status: yellow
- do: - do:
index: index:
index: test index: test

View File

@ -7,9 +7,6 @@
body: body:
settings: settings:
number_of_shards: 1 number_of_shards: 1
- do:
cluster.health:
wait_for_status: yellow
- do: - do:
index: index:
index: test index: test
@ -50,9 +47,6 @@
body: body:
settings: settings:
number_of_shards: 1 number_of_shards: 1
- do:
cluster.health:
wait_for_status: yellow
- do: - do:
index: index:
index: test index: test
@ -94,9 +88,6 @@
body: body:
settings: settings:
number_of_shards: 1 number_of_shards: 1
- do:
cluster.health:
wait_for_status: yellow
- do: - do:
index: index:
index: test index: test
@ -157,9 +148,6 @@
body: body:
settings: settings:
number_of_shards: 1 number_of_shards: 1
- do:
cluster.health:
wait_for_status: yellow
- do: - do:
index: index:
index: test index: test

View File

@ -6,9 +6,6 @@
body: body:
settings: settings:
number_of_replicas: 5 number_of_replicas: 5
- do:
cluster.health:
wait_for_status: yellow
- do: - do:
index: index:
index: src index: src

View File

@ -9,9 +9,6 @@
settings: settings:
number_of_shards: "1" number_of_shards: "1"
number_of_replicas: "0" number_of_replicas: "0"
- do:
cluster.health:
wait_for_status: yellow
- do: - do:
index: index:
index: source index: source
@ -61,9 +58,6 @@
settings: settings:
number_of_shards: "1" number_of_shards: "1"
number_of_replicas: "0" number_of_replicas: "0"
- do:
cluster.health:
wait_for_status: yellow
- do: - do:
index: index:
index: source index: source
@ -113,9 +107,6 @@
settings: settings:
number_of_shards: "1" number_of_shards: "1"
number_of_replicas: "0" number_of_replicas: "0"
- do:
cluster.health:
wait_for_status: yellow
- do: - do:
index: index:
index: source index: source
@ -171,9 +162,6 @@
settings: settings:
number_of_shards: "1" number_of_shards: "1"
number_of_replicas: "0" number_of_replicas: "0"
- do:
cluster.health:
wait_for_status: yellow
- do: - do:
index: index:
index: source index: source

View File

@ -217,9 +217,6 @@
body: body:
settings: settings:
number_of_shards: 1 number_of_shards: 1
- do:
cluster.health:
wait_for_status: yellow
- do: - do:
index: index:
index: test index: test

View File

@ -9,9 +9,6 @@
properties: properties:
name: name:
type: text type: text
- do:
cluster.health:
wait_for_status: yellow
- do: - do:
index: index:
index: test index: test

View File

@ -6,9 +6,6 @@
body: body:
settings: settings:
number_of_replicas: 5 number_of_replicas: 5
- do:
cluster.health:
wait_for_status: yellow
- do: - do:
index: index:
index: test index: test

View File

@ -7,9 +7,6 @@
body: body:
settings: settings:
number_of_shards: 1 number_of_shards: 1
- do:
cluster.health:
wait_for_status: yellow
- do: - do:
index: index:
index: test index: test
@ -46,9 +43,6 @@
body: body:
settings: settings:
number_of_shards: 1 number_of_shards: 1
- do:
cluster.health:
wait_for_status: yellow
- do: - do:
index: index:
index: test index: test
@ -86,9 +80,6 @@
body: body:
settings: settings:
number_of_shards: 1 number_of_shards: 1
- do:
cluster.health:
wait_for_status: yellow
- do: - do:
index: index:
index: test index: test
@ -136,9 +127,6 @@
body: body:
settings: settings:
number_of_shards: 1 number_of_shards: 1
- do:
cluster.health:
wait_for_status: yellow
- do: - do:
index: index:
index: test index: test

View File

@ -24,9 +24,6 @@
text: text:
type: text type: text
analyzer: my_analyzer analyzer: my_analyzer
- do:
cluster.health:
wait_for_status: yellow
- do: - do:
index: index:

View File

@ -12,9 +12,6 @@
text: text:
type: text type: text
analyzer: kuromoji analyzer: kuromoji
- do:
cluster.health:
wait_for_status: yellow
- do: - do:
index: index:

View File

@ -19,9 +19,6 @@
type: phonetic type: phonetic
encoder: metaphone encoder: metaphone
replace: false replace: false
- do:
cluster.health:
wait_for_status: yellow
- do: - do:
indices.analyze: indices.analyze:
index: phonetic_sample index: phonetic_sample

View File

@ -19,9 +19,6 @@
type: phonetic type: phonetic
encoder: double_metaphone encoder: double_metaphone
max_code_len: 6 max_code_len: 6
- do:
cluster.health:
wait_for_status: yellow
- do: - do:
indices.analyze: indices.analyze:
index: phonetic_sample index: phonetic_sample

View File

@ -21,9 +21,6 @@
rule_type: exact rule_type: exact
name_type: ashkenazi name_type: ashkenazi
languageset: polish languageset: polish
- do:
cluster.health:
wait_for_status: yellow
- do: - do:
indices.analyze: indices.analyze:
index: phonetic_sample index: phonetic_sample

View File

@ -24,9 +24,6 @@
text: text:
type: text type: text
analyzer: my_analyzer analyzer: my_analyzer
- do:
cluster.health:
wait_for_status: yellow
- do: - do:
index: index:

View File

@ -18,9 +18,6 @@
daitch_mokotoff: daitch_mokotoff:
type: phonetic type: phonetic
encoder: daitch_mokotoff encoder: daitch_mokotoff
- do:
cluster.health:
wait_for_status: yellow
- do: - do:
indices.analyze: indices.analyze:
index: phonetic_sample index: phonetic_sample

View File

@ -12,9 +12,6 @@
text: text:
type: text type: text
analyzer: smartcn analyzer: smartcn
- do:
cluster.health:
wait_for_status: yellow
- do: - do:
index: index:

View File

@ -12,9 +12,6 @@
text: text:
type: text type: text
analyzer: polish analyzer: polish
- do:
cluster.health:
wait_for_status: yellow
- do: - do:
index: index:

View File

@ -14,10 +14,6 @@
properties: properties:
file: file:
type: attachment type: attachment
- do:
cluster.health:
wait_for_status: yellow
- do: - do:
catch: /(.)*mapper_parsing_exception.+No content is provided\.(.)*/ catch: /(.)*mapper_parsing_exception.+No content is provided\.(.)*/
index: index:
@ -59,9 +55,6 @@
type: attachment type: attachment
file2: file2:
type: attachment type: attachment
- do:
cluster.health:
wait_for_status: yellow
- do: - do:
index: index:
@ -133,9 +126,6 @@
# type: attachment # type: attachment
# file2: # file2:
# type: attachment # type: attachment
# - do:
# cluster.health:
# wait_for_status: yellow
# #
# - do: # - do:
# catch: /(.)*mapper_parsing_exception(.)*The supplied password does not match either the owner or user password in the document\.(.)*/ # catch: /(.)*mapper_parsing_exception(.)*The supplied password does not match either the owner or user password in the document\.(.)*/

View File

@ -11,9 +11,6 @@ setup:
properties: properties:
file: file:
type: attachment type: attachment
- do:
cluster.health:
wait_for_status: yellow
--- ---
# Encoded content with https://www.base64encode.org/ # Encoded content with https://www.base64encode.org/

View File

@ -32,9 +32,6 @@
"store": true "store": true
"name": "name":
"store": true "store": true
- do:
cluster.health:
wait_for_status: yellow
- do: - do:
index: index:

View File

@ -17,10 +17,6 @@ setup:
"store" : true "store" : true
"term_vector": "with_positions_offsets" "term_vector": "with_positions_offsets"
- do:
cluster.health:
wait_for_status: yellow
--- ---
# Encoded content with https://www.base64encode.org/ # Encoded content with https://www.base64encode.org/
#<html xmlns="http://www.w3.org/1999/xhtml"> #<html xmlns="http://www.w3.org/1999/xhtml">

View File

@ -20,9 +20,6 @@ setup:
content_type: content_type:
store: true store: true
- do:
cluster.health:
wait_for_status: yellow
--- ---
"Test mapper attachment processor with .doc file": "Test mapper attachment processor with .doc file":

View File

@ -23,11 +23,6 @@
number_of_shards: 1 number_of_shards: 1
number_of_replicas: 1 number_of_replicas: 1
# Wait for yellow
- do:
cluster.health:
wait_for_status: yellow
# Create snapshot # Create snapshot
- do: - do:
snapshot.create: snapshot.create:

View File

@ -6,10 +6,6 @@
index: index:
store.type: smb_mmap_fs store.type: smb_mmap_fs
- do:
cluster.health:
wait_for_status: yellow
- do: - do:
index: index:
index: smb-test index: smb-test

View File

@ -90,9 +90,6 @@
mappings: mappings:
tweet: tweet:
_parent: { type: "user" } _parent: { type: "user" }
- do:
cluster.health:
wait_for_status: yellow
- do: - do:
index: index:
@ -192,9 +189,6 @@
mappings: mappings:
tweet: tweet:
_parent: { type: "user" } _parent: { type: "user" }
- do:
cluster.health:
wait_for_status: yellow
- do: - do:
index: index:

View File

@ -46,10 +46,6 @@
indices.create: indices.create:
index: test index: test
- do:
cluster.health:
wait_for_status: yellow
- do: - do:
cat.allocation: {} cat.allocation: {}

View File

@ -15,9 +15,6 @@
settings: settings:
number_of_shards: "1" number_of_shards: "1"
number_of_replicas: "0" number_of_replicas: "0"
- do:
cluster.health:
wait_for_status: yellow
- do: - do:
cat.indices: {} cat.indices: {}

View File

@ -15,9 +15,6 @@
id: 1 id: 1
body: { foo: bar } body: { foo: bar }
refresh: true refresh: true
- do:
cluster.health:
wait_for_status: yellow
- do: - do:
cat.recovery: cat.recovery:
h: i,s,t,ty,st,shost,thost,rep,snap,f,fr,fp,tf,b,br,bp,tb,to,tor,top h: i,s,t,ty,st,shost,thost,rep,snap,f,fr,fp,tf,b,br,bp,tb,to,tor,top

View File

@ -139,9 +139,6 @@
settings: settings:
number_of_shards: "5" number_of_shards: "5"
number_of_replicas: "1" number_of_replicas: "1"
- do:
cluster.health:
wait_for_status: yellow
- do: - do:
cat.shards: {} cat.shards: {}
@ -158,7 +155,6 @@
number_of_replicas: "0" number_of_replicas: "0"
- do: - do:
cluster.health: cluster.health:
wait_for_status: yellow
wait_for_relocating_shards: 0 wait_for_relocating_shards: 0
- do: - do:
@ -185,7 +181,6 @@
shared_filesystem: false shared_filesystem: false
- do: - do:
cluster.health: cluster.health:
wait_for_status: yellow
wait_for_relocating_shards: 0 wait_for_relocating_shards: 0
- do: - do:

View File

@ -9,10 +9,6 @@
indices.create: indices.create:
index: test index: test
- do:
cluster.health:
wait_for_status: yellow
- do: - do:
cluster.state: cluster.state:
metric: [ master_node ] metric: [ master_node ]
@ -49,10 +45,6 @@
index: test index: test
body: { "index.number_of_shards": 1, "index.number_of_replicas": 9 } body: { "index.number_of_shards": 1, "index.number_of_replicas": 9 }
- do:
cluster.health:
wait_for_status: yellow
- do: - do:
cluster.state: cluster.state:
metric: [ master_node ] metric: [ master_node ]

View File

@ -46,7 +46,6 @@
index: test_index index: test_index
- do: - do:
cluster.health: cluster.health:
wait_for_status: yellow
level: indices level: indices
- is_true: indices - is_true: indices

View File

@ -9,10 +9,6 @@
test: test:
_parent: { type: "foo" } _parent: { type: "foo" }
- do:
cluster.health:
wait_for_status: yellow
- do: - do:
catch: /routing_missing_exception/ catch: /routing_missing_exception/
create: create:

View File

@ -8,10 +8,6 @@
settings: settings:
index.refresh_interval: -1 index.refresh_interval: -1
number_of_replicas: 0 number_of_replicas: 0
- do:
cluster.health:
wait_for_status: yellow
- do: - do:
create: create:
index: test_1 index: test_1

View File

@ -14,9 +14,6 @@
id: 1 id: 1
routing: 5 routing: 5
body: { foo: bar } body: { foo: bar }
- do:
cluster.health:
wait_for_status: yellow
- do: - do:
catch: missing catch: missing

View File

@ -9,9 +9,6 @@
mappings: mappings:
test: test:
_parent: { type: "foo" } _parent: { type: "foo" }
- do:
cluster.health:
wait_for_status: yellow
- do: - do:
index: index:

View File

@ -7,9 +7,6 @@ setup:
mappings: mappings:
test: test:
_parent: { type: "foo" } _parent: { type: "foo" }
- do:
cluster.health:
wait_for_status: yellow
--- ---
"Parent": "Parent":

View File

@ -5,10 +5,6 @@ setup:
body: body:
aliases: aliases:
alias_1: {} alias_1: {}
- do:
cluster.health:
wait_for_status: yellow
- do: - do:
index: index:
index: test_1 index: test_1

View File

@ -7,9 +7,6 @@ setup:
mappings: mappings:
test: test:
_parent: { type: "foo" } _parent: { type: "foo" }
- do:
cluster.health:
wait_for_status: yellow
- do: - do:
index: index:

View File

@ -7,9 +7,6 @@ setup:
mappings: mappings:
test: test:
_parent: { type: "foo" } _parent: { type: "foo" }
- do:
cluster.health:
wait_for_status: yellow
- do: - do:
index: index:

View File

@ -7,9 +7,6 @@ setup:
mappings: mappings:
test: test:
_source: { enabled: false } _source: { enabled: false }
- do:
cluster.health:
wait_for_status: yellow
- do: - do:
index: index:

View File

@ -8,9 +8,6 @@
mappings: mappings:
test: test:
_parent: { type: "foo" } _parent: { type: "foo" }
- do:
cluster.health:
wait_for_status: yellow
- do: - do:
catch: /routing_missing_exception/ catch: /routing_missing_exception/

View File

@ -8,9 +8,6 @@
settings: settings:
index.refresh_interval: -1 index.refresh_interval: -1
number_of_replicas: 0 number_of_replicas: 0
- do:
cluster.health:
wait_for_status: yellow
- do: - do:
index: index:

View File

@ -35,10 +35,6 @@ setup:
text: text:
type: text type: text
analyzer: whitespace analyzer: whitespace
- do:
cluster.health:
wait_for_status: yellow
- do: - do:
indices.analyze: indices.analyze:

View File

@ -33,10 +33,6 @@ setup:
test_alias: {} test_alias: {}
test_blias: {} test_blias: {}
- do:
cluster.health:
wait_for_status: yellow
- do: - do:
indices.close: indices.close:
index: test_index_3 index: test_index_3

View File

@ -9,9 +9,6 @@ setup:
properties: properties:
text: text:
type: text type: text
- do:
cluster.health:
wait_for_status: yellow
--- ---
"Get field mapping with no index and type": "Get field mapping with no index and type":

View File

@ -11,9 +11,6 @@
text: text:
type: text type: text
analyzer: whitespace analyzer: whitespace
- do:
cluster.health:
wait_for_status: yellow
- do: - do:
indices.get_field_mapping: indices.get_field_mapping:

View File

@ -11,9 +11,6 @@
text: text:
type: text type: text
analyzer: whitespace analyzer: whitespace
- do:
cluster.health:
wait_for_status: yellow
- do: - do:
catch: missing catch: missing

View File

@ -40,10 +40,6 @@ setup:
i_t3: i_t3:
type: text type: text
- do:
cluster.health:
wait_for_status: yellow
--- ---
"Get field mapping with * for fields": "Get field mapping with * for fields":

View File

@ -51,10 +51,6 @@
- is_true: '' - is_true: ''
- do:
cluster.health:
wait_for_status: yellow
# index into new index # index into new index
- do: - do:
index: index:

View File

@ -15,10 +15,6 @@ setup:
id: 1 id: 1
body: { "foo": "baz" } body: { "foo": "baz" }
- do:
cluster.health:
wait_for_status: yellow
--- ---
"Level - blank": "Level - blank":
- do: - do:

View File

@ -6,10 +6,6 @@ setup:
settings: settings:
number_of_replicas: 0 number_of_replicas: 0
- do:
cluster.health:
wait_for_status: yellow
--- ---
"Validate query api": "Validate query api":
- do: - do:

View File

@ -10,10 +10,6 @@
id: 1 id: 1
body: { foo: bar } body: { foo: bar }
- do:
cluster.health:
wait_for_status: yellow
- do: - do:
mget: mget:
index: test_1 index: test_1

View File

@ -7,10 +7,6 @@
id: 1 id: 1
body: { foo: bar } body: { foo: bar }
- do:
cluster.health:
wait_for_status: yellow
- do: - do:
mget: mget:
body: body:

View File

@ -8,10 +8,6 @@
id: 1 id: 1
body: { foo: bar } body: { foo: bar }
- do:
cluster.health:
wait_for_status: yellow
- do: - do:
catch: /action_request_validation_exception.+ id is missing/ catch: /action_request_validation_exception.+ id is missing/
mget: mget:

View File

@ -14,10 +14,6 @@
id: 2 id: 2
body: { foo: baz } body: { foo: baz }
- do:
cluster.health:
wait_for_status: yellow
- do: - do:
mget: mget:
index: test_1 index: test_1

View File

@ -8,10 +8,6 @@
id: 1 id: 1
body: { foo: bar } body: { foo: bar }
- do:
cluster.health:
wait_for_status: yellow
- do: - do:
mget: mget:
index: test_1 index: test_1

View File

@ -10,9 +10,6 @@
_parent: { type: "foo" } _parent: { type: "foo" }
settings: settings:
number_of_shards: 5 number_of_shards: 5
- do:
cluster.health:
wait_for_status: yellow
- do: - do:
index: index:

View File

@ -3,10 +3,6 @@ setup:
- do: - do:
indices.create: indices.create:
index: test_1 index: test_1
- do:
cluster.health:
wait_for_status: yellow
--- ---
"Check Status": "Check Status":
- do: - do:

View File

@ -4,10 +4,6 @@
indices.create: indices.create:
index: test_1 index: test_1
- do:
cluster.health:
wait_for_status: yellow
- do: - do:
search_shards: search_shards:
index: test_1 index: test_1

View File

@ -17,10 +17,6 @@ setup:
number_of_shards: 1 number_of_shards: 1
number_of_replicas: 1 number_of_replicas: 1
- do:
cluster.health:
wait_for_status: yellow
--- ---
"Create a snapshot": "Create a snapshot":

View File

@ -7,10 +7,6 @@ setup:
mappings: mappings:
test: test:
_parent: { type: "foo" } _parent: { type: "foo" }
- do:
cluster.health:
wait_for_status: yellow
--- ---
"Parent": "Parent":

View File

@ -8,9 +8,6 @@
settings: settings:
index.refresh_interval: -1 index.refresh_interval: -1
number_of_replicas: 0 number_of_replicas: 0
- do:
cluster.health:
wait_for_status: yellow
- do: - do:
update: update:

View File

@ -13,10 +13,6 @@
test: test:
_parent: { type: "foo" } _parent: { type: "foo" }
- do:
cluster.health:
wait_for_status: yellow
- do: - do:
update: update:
index: test_1 index: test_1