mirror of
https://github.com/honeymoose/OpenSearch.git
synced 2025-03-27 18:38:41 +00:00
Tests: disable randomly-enabled custom data paths to make tests passing against an external cluster.
This commit is contained in:
parent
91f7aaaf4c
commit
2db1db0686
@ -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();
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user