Skip to content

Commit 58b0970

Browse files
Mute test for keystore wrapper in jdk8 (#72592)
1 parent 7d707f1 commit 58b0970

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

server/src/test/java/org/elasticsearch/common/settings/KeyStoreWrapperTests.java

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@
2323
import org.apache.lucene.store.IOContext;
2424
import org.apache.lucene.store.IndexOutput;
2525
import org.apache.lucene.store.SimpleFSDirectory;
26+
import org.elasticsearch.bootstrap.JavaVersion;
2627
import org.elasticsearch.common.Randomness;
2728
import org.elasticsearch.core.internal.io.IOUtils;
2829
import org.elasticsearch.env.Environment;
@@ -306,6 +307,8 @@ public void testIllegalSettingName() throws Exception {
306307

307308
public void testBackcompatV1() throws Exception {
308309
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);
309312
Path configDir = env.configFile();
310313
SimpleFSDirectory directory = new SimpleFSDirectory(configDir);
311314
try (IndexOutput output = directory.createOutput("elasticsearch.keystore", IOContext.DEFAULT)) {
@@ -337,6 +340,8 @@ public void testBackcompatV1() throws Exception {
337340

338341
public void testBackcompatV2() throws Exception {
339342
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);
340345
Path configDir = env.configFile();
341346
SimpleFSDirectory directory = new SimpleFSDirectory(configDir);
342347
byte[] fileBytes = new byte[20];

0 commit comments

Comments
 (0)