Skip to content

Conversation

@dongjoon-hyun
Copy link
Member

@dongjoon-hyun dongjoon-hyun commented Sep 16, 2021

What changes were proposed in this pull request?

This PR aims the following.

  • Use Java 17 instead of Java 17 EA.
  • Remove Java 16 to save the community testing resources
  • Recover GitHub Action CI by using java17 profile.
  • Disable dependency check on hadoop-hdfs of shim module

Note that there is a TODO (ORC-1003) which fails due to some shaded classes.
We will revisit that.

Why are the changes needed?

Java 17 is finally available.

How was this patch tested?

Pass the CIs with Java 17.

When we test manually, it passed like the following.

$ java -version
openjdk version "17" 2021-09-14 LTS
OpenJDK Runtime Environment Zulu17.28+13-CA (build 17+35-LTS)
OpenJDK 64-Bit Server VM Zulu17.28+13-CA (build 17+35-LTS, mixed mode, sharing)

...
Test project /Users/dongjoon/APACHE/orc-merge/build
    Start 1: orc-test
1/7 Test #1: orc-test .........................   Passed    3.41 sec
    Start 2: java-test
2/7 Test #2: java-test ........................   Passed   97.92 sec
    Start 3: java-tools-test
3/7 Test #3: java-tools-test ..................   Passed    0.11 sec
    Start 4: java-bench-gen-test
4/7 Test #4: java-bench-gen-test ..............   Passed    0.98 sec
    Start 5: java-bench-scan-test
5/7 Test #5: java-bench-scan-test .............   Passed    0.67 sec
    Start 6: java-bench-hive-test
6/7 Test #6: java-bench-hive-test .............   Passed   12.47 sec
    Start 7: tool-test
7/7 Test #7: tool-test ........................   Passed   10.02 sec

100% tests passed, 0 tests failed out of 7

Total Test time (real) = 125.58 sec
Built target test-out

@github-actions github-actions bot added the JAVA label Sep 16, 2021
@dongjoon-hyun dongjoon-hyun marked this pull request as ready for review September 16, 2021 10:21
set(JAVA_TEST_PROFILE -Pcmake,java17)
set(ADD_OPENS --add-opens)
set(JAVA_NIO java.base/java.nio=ALL-UNNAMED)
endif()
Copy link
Member Author

@dongjoon-hyun dongjoon-hyun Sep 16, 2021

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is moved from here and revised.

@dongjoon-hyun
Copy link
Member Author

cc @williamhyun and @guiyanakuang

@github-actions github-actions bot added the BUILD label Sep 16, 2021
@guiyanakuang
Copy link
Member

+1 LGTM.

@dongjoon-hyun
Copy link
Member Author

Thank you so much, @guiyanakuang !

@dongjoon-hyun dongjoon-hyun merged commit 028fab9 into apache:main Sep 16, 2021
@dongjoon-hyun dongjoon-hyun deleted the ORC-1000 branch September 16, 2021 11:30
dongjoon-hyun added a commit that referenced this pull request Sep 16, 2021
### What changes were proposed in this pull request?

This PR aims the following.
- Use `Java 17` instead of `Java 17 EA`.
- Remove `Java 16` to save the community testing resources
- Recover GitHub Action CI by using `java17` profile.
- Disable dependency check on `hadoop-hdfs` of `shim` module

Note that there is a TODO (ORC-1003) which fails due to some `shaded` classes.
We will revisit that.

### Why are the changes needed?

Java 17 is finally available.

### How was this patch tested?

Pass the CIs with Java 17.

When we test manually, it passed like the following.
```
$ java -version
openjdk version "17" 2021-09-14 LTS
OpenJDK Runtime Environment Zulu17.28+13-CA (build 17+35-LTS)
OpenJDK 64-Bit Server VM Zulu17.28+13-CA (build 17+35-LTS, mixed mode, sharing)

...
Test project /Users/dongjoon/APACHE/orc-merge/build
    Start 1: orc-test
1/7 Test #1: orc-test .........................   Passed    3.41 sec
    Start 2: java-test
2/7 Test #2: java-test ........................   Passed   97.92 sec
    Start 3: java-tools-test
3/7 Test #3: java-tools-test ..................   Passed    0.11 sec
    Start 4: java-bench-gen-test
4/7 Test #4: java-bench-gen-test ..............   Passed    0.98 sec
    Start 5: java-bench-scan-test
5/7 Test #5: java-bench-scan-test .............   Passed    0.67 sec
    Start 6: java-bench-hive-test
6/7 Test #6: java-bench-hive-test .............   Passed   12.47 sec
    Start 7: tool-test
7/7 Test #7: tool-test ........................   Passed   10.02 sec

100% tests passed, 0 tests failed out of 7

Total Test time (real) = 125.58 sec
Built target test-out
```
@dongjoon-hyun dongjoon-hyun added this to the 1.7.1 milestone Nov 1, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants