Skip to content

Commit 8ccb8c0

Browse files
committed
full-cluster-restart tests: prevent shards from going inactive
FullClusterRestartIT.testRecovery relies on the translogs not being flushed
1 parent 671223b commit 8ccb8c0

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

qa/full-cluster-restart/build.gradle

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,10 @@ for (Version version : indexCompatVersions) {
4848
numBwcNodes = 2
4949
numNodes = 2
5050
clusterName = 'full-cluster-restart'
51+
52+
// some tests rely on the translog not being flushed
53+
setting 'indices.memory.shard_inactive_time', '20m'
54+
5155
if (version.onOrAfter('5.3.0')) {
5256
setting 'http.content_type.required', 'true'
5357
}
@@ -64,6 +68,10 @@ for (Version version : indexCompatVersions) {
6468
"${baseName}#oldClusterTestCluster#node1.stop"
6569
distribution = 'zip'
6670
clusterName = 'full-cluster-restart'
71+
72+
// some tests rely on the translog not being flushed
73+
setting 'indices.memory.shard_inactive_time', '20m'
74+
6775
numNodes = 2
6876
dataDir = { nodeNum -> oldClusterTest.nodes[nodeNum].dataDir }
6977
cleanShared = false // We want to keep snapshots made by the old cluster!

0 commit comments

Comments
 (0)