Skip to content

Commit 3664b5e

Browse files
committed
Enabled CNAME in http publish host for testing
We already had parsing code for this dating back to the 2.x era. Lucky us. fixes #1175
1 parent 2a9a61f commit 3664b5e

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

buildSrc/src/main/groovy/org/elasticsearch/hadoop/gradle/fixture/ElasticsearchFixturePlugin.groovy

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,8 +81,16 @@ class ElasticsearchFixturePlugin implements Plugin<Project> {
8181
clusterConfig.setting("http.type","netty4")
8282
clusterConfig.setting("script.inline", "true")
8383
clusterConfig.setting("node.ingest", "true")
84-
} else if (majorVersion >= 6) {
84+
clusterConfig.setting("script.max_compilations_rate", null)
85+
} else if (majorVersion == 6) {
8586
clusterConfig.setting("node.ingest", "true")
87+
clusterConfig.setting("http.host", "localhost")
88+
clusterConfig.systemProperty('es.http.cname_in_publish_address', 'true')
89+
} else if (majorVersion >= 7) {
90+
clusterConfig.setting("node.ingest", "true")
91+
clusterConfig.setting("http.host", "localhost")
92+
// TODO: Remove this when this is the default in 7
93+
clusterConfig.systemProperty('es.http.cname_in_publish_address', 'true')
8694
}
8795

8896
// Also write a script to a file for use in tests

0 commit comments

Comments
 (0)