Skip to content

Commit e0cfa16

Browse files
Turn off real-mem breaker in REST tests
With this commit we disable the real-memory circuit breaker in REST tests as this breaker is based on real memory usage over which we have no (full) control in tests and the REST client is not yet ready to retry on circuit breaker exceptions. This is only meant as a temporary measure to avoid spurious test failures while we ensure that the REST client can handle those situations appropriately. Closes #32050 Relates #31767 Relates #31986 Relates #32074
1 parent 016e876 commit e0cfa16

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

buildSrc/src/main/groovy/org/elasticsearch/gradle/test/ClusterFormationTasks.groovy

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -331,6 +331,12 @@ class ClusterFormationTasks {
331331
}
332332
// increase script compilation limit since tests can rapid-fire script compilations
333333
esConfig['script.max_compilations_rate'] = '2048/1m'
334+
// Temporarily disable the real memory usage circuit breaker. It depends on real memory usage which we have no full control
335+
// over and the REST client will not retry on circuit breaking exceptions yet (see #31986 for details). Once the REST client
336+
// can retry on circuit breaking exceptions, we can revert again to the default configuration.
337+
if (node.nodeVersion.major >= 7) {
338+
esConfig['indices.breaker.total.use_real_memory'] = false
339+
}
334340
esConfig.putAll(node.config.settings)
335341

336342
Task writeConfig = project.tasks.create(name: name, type: DefaultTask, dependsOn: setup)

0 commit comments

Comments
 (0)