TSDB: Add feature flag to more builds (#78619)

When we run the build in non-snapshot mode we don't enable feature flags
by default. This would cause the tests for tsdb to fail. So we enable
the tsdb feature flag in every build that needs it. There were a few
builds that needed it that didn't have it. This adds it to those builds.

Closes #78443
Closes #78598
This commit is contained in:
Nik Everett 2021-10-04 10:56:23 -04:00 committed by GitHub
parent 9aef3315b2
commit 5de59aa988
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
5 changed files with 27 additions and 2 deletions

View file

@ -6,6 +6,7 @@
* Side Public License, v 1.
*/
import org.elasticsearch.gradle.internal.info.BuildParams
import org.elasticsearch.gradle.internal.test.RestIntegTestTask
apply plugin: 'elasticsearch.internal-testclusters'
@ -24,6 +25,12 @@ tasks.register('remote-cluster', RestIntegTestTask) {
systemProperty 'tests.rest.suite', 'remote_cluster'
}
testClusters.configureEach {
if (BuildParams.isSnapshotBuild() == false) {
systemProperty 'es.index_mode_feature_flag_registered', 'true'
}
}
testClusters.matching{ it.name == 'remote-cluster' }.configureEach {
numberOfNodes = 2
setting 'node.roles', '[data,ingest,master]'