Tests: disable randomly-enabled custom data paths to make tests passing against an external cluster.

This commit is contained in:
Adrien Grand 2015-08-06 22:24:43 +02:00
parent 91f7aaaf4c
commit 2db1db0686

View File

@ -692,12 +692,15 @@ public abstract class ESIntegTestCase extends ESTestCase {
if (numberOfReplicas >= 0) {
builder.put(SETTING_NUMBER_OF_REPLICAS, numberOfReplicas).build();
}
// norelease: disabled because custom data paths don't play well against
// an external test cluster: the security manager is not happy that random
// files are touched. See http://build-us-00.elastic.co/job/es_core_master_strong/4357/console
// 30% of the time
if (randomInt(9) < 3) {
final Path dataPath = createTempDir();
logger.info("using custom data_path for index: [{}]", dataPath);
builder.put(IndexMetaData.SETTING_DATA_PATH, dataPath);
}
// if (randomInt(9) < 3) {
// final Path dataPath = createTempDir();
// logger.info("using custom data_path for index: [{}]", dataPath);
// builder.put(IndexMetaData.SETTING_DATA_PATH, dataPath);
// }
return builder.build();
}