Added a indices flush to the rolling upgrades rest tests to ensure
they are on disk for the upgraded nodes to pick up.
This commit is contained in:
parent
0c7dd1865c
commit
513ed58d17
|
@ -39,7 +39,7 @@ task mixedClusterTest(type: RestIntegTestTask) {
|
||||||
distribution = 'zip'
|
distribution = 'zip'
|
||||||
clusterName = 'rolling-upgrade'
|
clusterName = 'rolling-upgrade'
|
||||||
unicastTransportUri = { seedNode, node, ant -> oldClusterTest.nodes.get(0).transportUri() }
|
unicastTransportUri = { seedNode, node, ant -> oldClusterTest.nodes.get(0).transportUri() }
|
||||||
dataDir = "${-> oldClusterTest.nodes[1].getDataDir()}"
|
dataDir = "${-> oldClusterTest.nodes[1].dataDir}"
|
||||||
}
|
}
|
||||||
systemProperty 'tests.rest.suite', 'mixed_cluster'
|
systemProperty 'tests.rest.suite', 'mixed_cluster'
|
||||||
|
|
||||||
|
@ -51,7 +51,7 @@ task upgradedClusterTest(type: RestIntegTestTask) {
|
||||||
distribution = 'zip'
|
distribution = 'zip'
|
||||||
clusterName = 'rolling-upgrade'
|
clusterName = 'rolling-upgrade'
|
||||||
unicastTransportUri = { seedNode, node, ant -> mixedClusterTest.nodes.get(0).transportUri() }
|
unicastTransportUri = { seedNode, node, ant -> mixedClusterTest.nodes.get(0).transportUri() }
|
||||||
dataDir = "${-> oldClusterTest.nodes[0].getDataDir()}"
|
dataDir = "${-> oldClusterTest.nodes[0].dataDir}"
|
||||||
}
|
}
|
||||||
systemProperty 'tests.rest.suite', 'upgraded_cluster'
|
systemProperty 'tests.rest.suite', 'upgraded_cluster'
|
||||||
}
|
}
|
||||||
|
|
|
@ -21,6 +21,10 @@
|
||||||
- '{"index": {"_index": "test_index", "_type": "test_type"}}'
|
- '{"index": {"_index": "test_index", "_type": "test_type"}}'
|
||||||
- '{"f1": "v5_mixed", "f2": 9}'
|
- '{"f1": "v5_mixed", "f2": 9}'
|
||||||
|
|
||||||
|
- do:
|
||||||
|
indices.flush:
|
||||||
|
index: test_index
|
||||||
|
|
||||||
- do:
|
- do:
|
||||||
search:
|
search:
|
||||||
index: test_index
|
index: test_index
|
||||||
|
|
|
@ -15,6 +15,10 @@
|
||||||
- '{"index": {"_index": "test_index", "_type": "test_type"}}'
|
- '{"index": {"_index": "test_index", "_type": "test_type"}}'
|
||||||
- '{"f1": "v5_old", "f2": 4}'
|
- '{"f1": "v5_old", "f2": 4}'
|
||||||
|
|
||||||
|
- do:
|
||||||
|
indices.flush:
|
||||||
|
index: test_index
|
||||||
|
|
||||||
- do:
|
- do:
|
||||||
search:
|
search:
|
||||||
index: test_index
|
index: test_index
|
||||||
|
|
|
@ -21,6 +21,10 @@
|
||||||
- '{"index": {"_index": "test_index", "_type": "test_type"}}'
|
- '{"index": {"_index": "test_index", "_type": "test_type"}}'
|
||||||
- '{"f1": "v5_upgraded", "f2": 14}'
|
- '{"f1": "v5_upgraded", "f2": 14}'
|
||||||
|
|
||||||
|
- do:
|
||||||
|
indices.flush:
|
||||||
|
index: test_index
|
||||||
|
|
||||||
- do:
|
- do:
|
||||||
search:
|
search:
|
||||||
index: test_index
|
index: test_index
|
||||||
|
|
Loading…
Reference in New Issue