full-cluster-restart tests: prevent shards from going inactive

FullClusterRestartIT.testRecovery relies on the translogs not being flushed
This commit is contained in:
Boaz Leskes 2017-10-05 09:38:11 +02:00
parent 2a04118e88
commit 2d409a912f

View File

@ -48,6 +48,10 @@ for (Version version : indexCompatVersions) {
numBwcNodes = 2
numNodes = 2
clusterName = 'full-cluster-restart'
// some tests rely on the translog not being flushed
setting 'indices.memory.shard_inactive_time', '20m'
if (version.onOrAfter('5.3.0')) {
setting 'http.content_type.required', 'true'
}
@ -64,6 +68,10 @@ for (Version version : indexCompatVersions) {
"${baseName}#oldClusterTestCluster#node1.stop"
distribution = 'zip'
clusterName = 'full-cluster-restart'
// some tests rely on the translog not being flushed
setting 'indices.memory.shard_inactive_time', '20m'
numNodes = 2
dataDir = { nodeNum -> oldClusterTest.nodes[nodeNum].dataDir }
cleanShared = false // We want to keep snapshots made by the old cluster!