Skip to content

Commit

Permalink
More fixes about running tests on JDK11 (apache#9893)
Browse files Browse the repository at this point in the history
    ### Motivation
    When you are running tests on JDK11 you encounter a lot of issues.
    This patch includes a list of minor fixes that can be grouped.

    Master issue apache#9578

    ### Modifications
    - Upgrade Mockito to latest version
    - Add  "--add-opens java.base/jdk.internal.loader=ALL-UNNAMED" in order to allow PowerMock to work
    - add JAXB into jcloud provider (we already have it on the classpath in production, it is only in order to let tests run)
    - Upgrade HDFS minicluster to 3.3.0
    - Pin netty-codec-http dependency to the same version of netty (inherited from HDFS client)
    - Use the same version of Jetty for hdfs-offload (old version does not work with JDK11)

cherry picked manually from c94d782
  • Loading branch information
eolivelli committed May 20, 2021
1 parent 79ddf32 commit ed1f33e
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -86,6 +86,7 @@ flexible messaging model and an intuitive client API.</description>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>
<redirectTestOutputToFile>true</redirectTestOutputToFile>
<test.additional.args></test.additional.args>
<testReuseFork>true</testReuseFork>
<testForkCount>4</testForkCount>
<testRealAWS>false</testRealAWS>
Expand Down Expand Up @@ -143,8 +144,7 @@ flexible messaging model and an intuitive client API.</description>
<postgresql-jdbc.version>42.2.12</postgresql-jdbc.version>
<clickhouse-jdbc.version>0.2.4</clickhouse-jdbc.version>
<mariadb-jdbc.version>2.6.0</mariadb-jdbc.version>
<hdfs-offload-version3>3.2.0</hdfs-offload-version3>
<org.eclipse.jetty-hdfs-offload>9.3.24.v20180605</org.eclipse.jetty-hdfs-offload>
<hdfs-offload-version3>3.3.0</hdfs-offload-version3>
<elasticsearch.version>7.9.1</elasticsearch.version>
<presto.version>334</presto.version>
<flink.version>1.6.0</flink.version>
Expand Down
4 changes: 4 additions & 0 deletions tiered-storage/file-system/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -80,21 +80,25 @@
<dependency>
<groupId>org.eclipse.jetty</groupId>
<artifactId>jetty-server</artifactId>
<version>${jetty.version}</version>
<scope>test</scope>
</dependency>
<dependency>
<groupId>org.eclipse.jetty</groupId>
<artifactId>jetty-alpn-conscrypt-server</artifactId>
<version>${jetty.version}</version>
<scope>test</scope>
</dependency>
<dependency>
<groupId>org.eclipse.jetty</groupId>
<artifactId>jetty-servlet</artifactId>
<version>${jetty.version}</version>
<scope>test</scope>
</dependency>
<dependency>
<groupId>org.eclipse.jetty</groupId>
<artifactId>jetty-util</artifactId>
<version>${jetty.version}</version>
<scope>test</scope>
</dependency>
</dependencies>
Expand Down

0 comments on commit ed1f33e

Please sign in to comment.