mirror of
https://github.com/elastic/elasticsearch.git
synced 2025-06-29 01:44:36 -04:00
Skip rest tests when hdfs cluster setup fails (#106856)
For now skip tests when flaky hdfs cluster cannot be started. Investigating further without bothering others and keeping pipeline green
This commit is contained in:
parent
8ddd03c4c9
commit
76f142f454
1 changed files with 1 additions and 1 deletions
|
@ -198,7 +198,7 @@ public class HdfsFixture extends ExternalResource {
|
||||||
// If the maximum number of attempts is reached, rethrow the exception
|
// If the maximum number of attempts is reached, rethrow the exception
|
||||||
FileUtils.deleteDirectory(baseDir.toFile());
|
FileUtils.deleteDirectory(baseDir.toFile());
|
||||||
if (attempt == maxAttempts) {
|
if (attempt == maxAttempts) {
|
||||||
throw e;
|
Assume.assumeTrue("Unable to start HDFS cluster", false);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue