|
23 | 23 | import org.apache.lucene.store.IOContext; |
24 | 24 | import org.apache.lucene.store.IndexOutput; |
25 | 25 | import org.apache.lucene.store.SimpleFSDirectory; |
| 26 | +import org.elasticsearch.bootstrap.JavaVersion; |
26 | 27 | import org.elasticsearch.common.Randomness; |
27 | 28 | import org.elasticsearch.core.internal.io.IOUtils; |
28 | 29 | import org.elasticsearch.env.Environment; |
@@ -306,6 +307,8 @@ public void testIllegalSettingName() throws Exception { |
306 | 307 |
|
307 | 308 | public void testBackcompatV1() throws Exception { |
308 | 309 | assumeFalse("Can't run in a FIPS JVM as PBE is not available", inFipsJvm()); |
| 310 | + assumeFalse("JDK bug JDK-8266279, https://github.com/elastic/elasticsearch/issues/72466", |
| 311 | + JavaVersion.current().compareTo(JavaVersion.parse("8")) == 0); |
309 | 312 | Path configDir = env.configFile(); |
310 | 313 | SimpleFSDirectory directory = new SimpleFSDirectory(configDir); |
311 | 314 | try (IndexOutput output = directory.createOutput("elasticsearch.keystore", IOContext.DEFAULT)) { |
@@ -337,6 +340,8 @@ public void testBackcompatV1() throws Exception { |
337 | 340 |
|
338 | 341 | public void testBackcompatV2() throws Exception { |
339 | 342 | assumeFalse("Can't run in a FIPS JVM as PBE is not available", inFipsJvm()); |
| 343 | + assumeFalse("JDK bug JDK-8266279, https://github.com/elastic/elasticsearch/issues/72466", |
| 344 | + JavaVersion.current().compareTo(JavaVersion.parse("8")) == 0); |
340 | 345 | Path configDir = env.configFile(); |
341 | 346 | SimpleFSDirectory directory = new SimpleFSDirectory(configDir); |
342 | 347 | byte[] fileBytes = new byte[20]; |
|
0 commit comments