]> source.dussan.org Git - sonarqube.git/commitdiff
SONAR-8798 do not automatically create indexes, not even in unit tests
authorDaniel Schwarz <daniel.schwarz@sonarsource.com>
Thu, 27 Jul 2017 12:06:31 +0000 (14:06 +0200)
committerDaniel Schwarz <bartfastiel@users.noreply.github.com>
Wed, 9 Aug 2017 13:09:54 +0000 (15:09 +0200)
server/sonar-server/src/test/java/org/sonar/elasticsearch/test/EsTestCluster.java

index 100be3127102f2a882c9d090c78a293364302686..ec3154a60482a5cc614bd424769300c02bdb8bed 100644 (file)
@@ -200,6 +200,7 @@ public final class EsTestCluster {
     if (Strings.hasLength(System.getProperty("es.logger.prefix"))) {
       builder.put("logger.prefix", System.getProperty("es.logger.prefix"));
     }
+    builder.put("action.auto_create_index", false);
     // Default the watermarks to absurdly low to prevent the tests
     // from failing on nodes without enough disk space
     builder.put(DiskThresholdSettings.CLUSTER_ROUTING_ALLOCATION_LOW_DISK_WATERMARK_SETTING.getKey(), "1b");