Skip to content

Commit

Permalink
[Test] Revert temporary fixes for update mapping on recovery issue
Browse files Browse the repository at this point in the history
This reverts:
"Test: Temporarily change delete/put_mapping to wait for green": commit e408f8f638c2dd97a3ec86c8a9ac940f43ab37a0.
"[TEST] wait for green to update mapping": commit b3641a2ee6eb23318d49f5f04b39149e70c2b65b.
  • Loading branch information
bleskes committed Jul 7, 2014
1 parent 867d887 commit 83770c2
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 29 deletions.
6 changes: 2 additions & 4 deletions rest-api-spec/test/indices.delete_mapping/10_basic.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,6 @@
indices.create:
index: test_index
body:
settings:
number_of_replicas: 0
mappings:
test_type:
properties:
Expand All @@ -15,7 +13,7 @@

- do:
cluster.health:
wait_for_status: green
wait_for_status: yellow

- do:
indices.exists_type:
Expand All @@ -28,7 +26,7 @@
indices.delete_mapping:
index: test_index
type: test_type

- do:
indices.exists_type:
index: test_index
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,24 +5,21 @@ setup:
index: test_index1
body:
mappings: { test_type1: { }}
settings: { number_of_replicas: 0 }

- do:
indices.create:
index: test_index2
body:
mappings: { test_type2: { }}
settings: { number_of_replicas: 0 }
- do:
indices.create:
index: foo
body:
mappings: { test_type2: { }}
settings: { number_of_replicas: 0 }

- do:
cluster.health:
wait_for_status: green
wait_for_status: yellow
---
"delete with _all index":
- do:
Expand Down
10 changes: 2 additions & 8 deletions rest-api-spec/test/indices.put_mapping/10_basic.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,6 @@
- do:
indices.create:
index: test_index
body:
settings:
number_of_replicas: 0
- do:
cluster.health:
wait_for_status: green

- do:
indices.put_mapping:
Expand All @@ -27,7 +21,7 @@
- do:
indices.get_mapping:
index: test_index

- match: {test_index.mappings.test_type.properties.text1.type: string}
- match: {test_index.mappings.test_type.properties.text1.analyzer: whitespace}
- match: {test_index.mappings.test_type.properties.text2.type: string}
Expand Down Expand Up @@ -61,7 +55,7 @@
- do:
indices.get_mapping:
index: test_index

- match: {test_index.mappings.test_type.properties.text1.type: string}
- match: {test_index.mappings.test_type.properties.text1.fields.text_raw.index: not_analyzed}
- match: {test_index.mappings.test_type.properties.text2.type: string}
Expand Down
13 changes: 1 addition & 12 deletions rest-api-spec/test/indices.put_mapping/all_path_options.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,24 +2,13 @@ setup:
- do:
indices.create:
index: test_index1
body:
settings:
number_of_replicas: 0
- do:
indices.create:
index: test_index2
body:
settings:
number_of_replicas: 0
- do:
indices.create:
index: foo
body:
settings:
number_of_replicas: 0
- do:
cluster.health:
wait_for_status: green


---
"put one mapping per index":
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ public void testUpdatePrecision() throws Exception {
.endObject()
.endObject()
.endObject()).execute().actionGet();
ensureGreen();
ensureYellow();
assertPrecision(new Distance(2, DistanceUnit.MILLIMETERS));

client().admin().indices().preparePutMapping("test").setType("type1").setSource(XContentFactory.jsonBuilder().startObject()
Expand Down

0 comments on commit 83770c2

Please sign in to comment.