File tree 3 files changed +26
-0
lines changed
plugins/repository-gcs/src/internalClusterTest/java/org/elasticsearch/repositories/gcs
repositories-metering-api/qa/gcs/src/test/java/org/elasticsearch/xpack/repositories/metering/gcs
searchable-snapshots/qa/gcs/src/test/java/org/elasticsearch/xpack/searchablesnapshots
3 files changed +26
-0
lines changed Original file line number Diff line number Diff line change 15
15
import org .elasticsearch .common .settings .Settings ;
16
16
import org .elasticsearch .plugins .Plugin ;
17
17
import org .elasticsearch .repositories .AbstractThirdPartyRepositoryTestCase ;
18
+ import org .junit .BeforeClass ;
18
19
19
20
import java .util .Base64 ;
20
21
import java .util .Collection ;
25
26
26
27
public class GoogleCloudStorageThirdPartyTests extends AbstractThirdPartyRepositoryTestCase {
27
28
29
+ @ BeforeClass
30
+ public static void skipJava8 () {
31
+ GoogleCloudStorageBlobStoreRepositoryTests .assumeNotJava8 ();
32
+ }
33
+
28
34
@ Override
29
35
protected Collection <Class <? extends Plugin >> getPlugins () {
30
36
return pluginList (GoogleCloudStoragePlugin .class );
Original file line number Diff line number Diff line change 7
7
package org .elasticsearch .xpack .repositories .metering .gcs ;
8
8
9
9
import org .elasticsearch .common .settings .Settings ;
10
+ import org .elasticsearch .jdk .JavaVersion ;
10
11
import org .elasticsearch .xpack .repositories .metering .AbstractRepositoriesMeteringAPIRestTestCase ;
12
+ import org .junit .BeforeClass ;
11
13
12
14
import java .util .List ;
13
15
import java .util .Map ;
14
16
15
17
public class GCSRepositoriesMeteringIT extends AbstractRepositoriesMeteringAPIRestTestCase {
16
18
19
+ @ BeforeClass
20
+ public static void skipJava8 () {
21
+ assumeFalse ("This test is flaky on jdk8 - we suspect a JDK bug to trigger some assertion in the HttpServer implementation used " +
22
+ "to emulate the server side logic of Google Cloud Storage. See https://bugs.openjdk.java.net/browse/JDK-8180754, " +
23
+ "https://github.com/elastic/elasticsearch/pull/51933 and https://github.com/elastic/elasticsearch/issues/52906 " +
24
+ "for more background on this issue." , JavaVersion .current ().equals (JavaVersion .parse ("8" )));
25
+ }
26
+
17
27
@ Override
18
28
protected String repositoryType () {
19
29
return "gcs" ;
Original file line number Diff line number Diff line change 8
8
package org .elasticsearch .xpack .searchablesnapshots ;
9
9
10
10
import org .elasticsearch .common .settings .Settings ;
11
+ import org .elasticsearch .jdk .JavaVersion ;
12
+ import org .junit .BeforeClass ;
11
13
12
14
import static org .hamcrest .Matchers .blankOrNullString ;
13
15
import static org .hamcrest .Matchers .not ;
14
16
15
17
public class GCSSearchableSnapshotsIT extends AbstractSearchableSnapshotsRestTestCase {
16
18
19
+ @ BeforeClass
20
+ public static void skipJava8 () {
21
+ assumeFalse ("This test is flaky on jdk8 - we suspect a JDK bug to trigger some assertion in the HttpServer implementation used " +
22
+ "to emulate the server side logic of Google Cloud Storage. See https://bugs.openjdk.java.net/browse/JDK-8180754, " +
23
+ "https://github.com/elastic/elasticsearch/pull/51933 and https://github.com/elastic/elasticsearch/issues/52906 " +
24
+ "for more background on this issue." , JavaVersion .current ().equals (JavaVersion .parse ("8" )));
25
+ }
26
+
17
27
@ Override
18
28
protected String writeRepositoryType () {
19
29
return "gcs" ;
You can’t perform that action at this time.
0 commit comments