You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@celeborn.apache.org by "pan3793 (via GitHub)" <gi...@apache.org> on 2023/07/04 13:53:16 UTC
[GitHub] [incubator-celeborn] pan3793 opened a new pull request, #1677: [CELEBORN-763] Add --add-opens to bootstrap shell scripts
pan3793 opened a new pull request, #1677:
URL: https://github.com/apache/incubator-celeborn/pull/1677
<!--
Thanks for sending a pull request! Here are some tips for you:
- Make sure the PR title start w/ a JIRA ticket, e.g. '[CELEBORN-XXXX] Your PR title ...'.
- Be sure to keep the PR description updated to reflect all changes.
- Please write your PR title to summarize what this PR proposes.
- If possible, provide a concise example to reproduce the issue for a faster review.
-->
### What changes were proposed in this pull request?
Add --add-opens to bootstrap shell scripts
### Why are the changes needed?
`--add-opens` is required for Java 17, notes, the `--add-opens` list is copied from Spark and was used for UT, I not sure each of them are required but at least the UT passed with them.
### Does this PR introduce _any_ user-facing change?
Yes, for Java 17 support.
### How was this patch tested?
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: issues-unsubscribe@celeborn.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [incubator-celeborn] pan3793 commented on a diff in pull request #1677: [CELEBORN-763] Add --add-opens to bootstrap shell scripts
Posted by "pan3793 (via GitHub)" <gi...@apache.org>.
pan3793 commented on code in PR #1677:
URL: https://github.com/apache/incubator-celeborn/pull/1677#discussion_r1252066890
##########
pom.xml:
##########
@@ -123,11 +123,11 @@
--add-opens=java.base/java.util=ALL-UNNAMED
--add-opens=java.base/java.util.concurrent=ALL-UNNAMED
--add-opens=java.base/java.util.concurrent.atomic=ALL-UNNAMED
+ --add-opens=java.base/jdk.internal.misc=ALL-UNNAMED
Review Comment:
It's OK, we have CI for JDK 11
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: issues-unsubscribe@celeborn.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [incubator-celeborn] pan3793 commented on pull request #1677: [CELEBORN-763] Add --add-opens to bootstrap shell scripts
Posted by "pan3793 (via GitHub)" <gi...@apache.org>.
pan3793 commented on PR #1677:
URL: https://github.com/apache/incubator-celeborn/pull/1677#issuecomment-1620305678
Since Spark 3.3, the `--add-opens` list is added no matter JDK version you are using.
e.g. Spark 3.3.1 with Java 8
<img width="1703" alt="image" src="https://github.com/apache/incubator-celeborn/assets/26535726/a812aac7-cd17-4e25-bd71-309837bf6c03">
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: issues-unsubscribe@celeborn.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [incubator-celeborn] cfmcgrady commented on a diff in pull request #1677: [CELEBORN-763] Add --add-opens to bootstrap shell scripts
Posted by "cfmcgrady (via GitHub)" <gi...@apache.org>.
cfmcgrady commented on code in PR #1677:
URL: https://github.com/apache/incubator-celeborn/pull/1677#discussion_r1252230844
##########
pom.xml:
##########
@@ -123,11 +123,11 @@
--add-opens=java.base/java.util=ALL-UNNAMED
--add-opens=java.base/java.util.concurrent=ALL-UNNAMED
--add-opens=java.base/java.util.concurrent.atomic=ALL-UNNAMED
+ --add-opens=java.base/jdk.internal.misc=ALL-UNNAMED
Review Comment:
the `--add-opens` flag was introduced since JDK 9, see https://docs.oracle.com/javase/9/migrate/toc.htm#JSMIG-GUID-12F945EB-71D6-46AF-8C3D-D354FD0B1781 for details.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: issues-unsubscribe@celeborn.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [incubator-celeborn] pan3793 commented on pull request #1677: [CELEBORN-763] Add --add-opens to bootstrap shell scripts
Posted by "pan3793 (via GitHub)" <gi...@apache.org>.
pan3793 commented on PR #1677:
URL: https://github.com/apache/incubator-celeborn/pull/1677#issuecomment-1620969077
Thanks, merged to main/0.3
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: issues-unsubscribe@celeborn.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [incubator-celeborn] pan3793 closed pull request #1677: [CELEBORN-763] Add --add-opens to bootstrap shell scripts
Posted by "pan3793 (via GitHub)" <gi...@apache.org>.
pan3793 closed pull request #1677: [CELEBORN-763] Add --add-opens to bootstrap shell scripts
URL: https://github.com/apache/incubator-celeborn/pull/1677
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: issues-unsubscribe@celeborn.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [incubator-celeborn] FMX commented on a diff in pull request #1677: [CELEBORN-763] Add --add-opens to bootstrap shell scripts
Posted by "FMX (via GitHub)" <gi...@apache.org>.
FMX commented on code in PR #1677:
URL: https://github.com/apache/incubator-celeborn/pull/1677#discussion_r1252065909
##########
pom.xml:
##########
@@ -123,11 +123,11 @@
--add-opens=java.base/java.util=ALL-UNNAMED
--add-opens=java.base/java.util.concurrent=ALL-UNNAMED
--add-opens=java.base/java.util.concurrent.atomic=ALL-UNNAMED
+ --add-opens=java.base/jdk.internal.misc=ALL-UNNAMED
Review Comment:
Is this command line OK for Java 11?
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: issues-unsubscribe@celeborn.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [incubator-celeborn] cfmcgrady commented on pull request #1677: [CELEBORN-763] Add --add-opens to bootstrap shell scripts
Posted by "cfmcgrady (via GitHub)" <gi...@apache.org>.
cfmcgrady commented on PR #1677:
URL: https://github.com/apache/incubator-celeborn/pull/1677#issuecomment-1620571141
> Since Spark 3.3, the `--add-opens` list is added no matter JDK version you are using.
>
> e.g. Spark 3.3.1 with Java 8 <img alt="image" width="1703" src="https://user-images.githubusercontent.com/26535726/250923341-a812aac7-cd17-4e25-bd71-309837bf6c03.png">
this is because we have the flag `-XX:+IgnoreUnrecognizedVMOptions` for the JDK 8
```shell
> java -version
openjdk version "1.8.0_362"
OpenJDK Runtime Environment (Temurin)(build 1.8.0_362-b09)
OpenJDK 64-Bit Server VM (Temurin)(build 25.362-b09, mixed mode)
> java --add-opens=java.base/java.nio=ALL-UNNAMED -version
Unrecognized option: --add-opens=java.base/java.nio=ALL-UNNAMED
Error: Could not create the Java Virtual Machine.
Error: A fatal exception has occurred. Program will exit.
> java -XX:+IgnoreUnrecognizedVMOptions --add-opens=java.base/java.nio=ALL-UNNAMED -version
openjdk version "1.8.0_362"
OpenJDK Runtime Environment (Temurin)(build 1.8.0_362-b09)
OpenJDK 64-Bit Server VM (Temurin)(build 25.362-b09, mixed mode)
```
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: issues-unsubscribe@celeborn.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [incubator-celeborn] cfmcgrady commented on pull request #1677: [CELEBORN-763] Add --add-opens to bootstrap shell scripts
Posted by "cfmcgrady (via GitHub)" <gi...@apache.org>.
cfmcgrady commented on PR #1677:
URL: https://github.com/apache/incubator-celeborn/pull/1677#issuecomment-1620562041
FYI:
[JEP 403](https://openjdk.java.net/jeps/403) targeted for [JDK 17](https://openjdk.java.net/projects/jdk/17/) will remove `--illegal-access` flag. That will be equivalent to `--illegal-access=deny`.
this means using reflection to invoke protected methods of exported `java.*` APIs will no longer work. For example:
```shell
> /Library/Java/JavaVirtualMachines/temurin-17.jdk/Contents/Home/bin/jshell
| 欢迎使用 JShell -- 版本 17.0.7
| 要大致了解该版本, 请键入: /help intro
jshell> java.nio.ByteBuffer direct = java.nio.ByteBuffer.allocateDirect(1);
direct ==> java.nio.DirectByteBuffer[pos=0 lim=1 cap=1]
jshell> direct.getClass().getDeclaredConstructor(long.class, int.class).setAccessible(true);
| 异常错误 java.lang.reflect.InaccessibleObjectException:Unable to make private java.nio.DirectByteBuffer(long,int) accessible: module java.base does not "opens java.nio" to unnamed module @34c45dca
| at AccessibleObject.checkCanSetAccessible (AccessibleObject.java:354)
| at AccessibleObject.checkCanSetAccessible (AccessibleObject.java:297)
| at Constructor.checkCanSetAccessible (Constructor.java:188)
| at Constructor.setAccessible (Constructor.java:181)
| at (#2:1)
jshell>
```
```shell
> /Library/Java/JavaVirtualMachines/temurin-17.jdk/Contents/Home/bin/jshell -R --add-opens=java.base/java.nio=ALL-UNNAMED
| 欢迎使用 JShell -- 版本 17.0.7
| 要大致了解该版本, 请键入: /help intro
jshell> java.nio.ByteBuffer direct = java.nio.ByteBuffer.allocateDirect(1);
direct ==> java.nio.DirectByteBuffer[pos=0 lim=1 cap=1]
jshell> direct.getClass().getDeclaredConstructor(long.class, int.class).setAccessible(true);
jshell>
```
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: issues-unsubscribe@celeborn.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [incubator-celeborn] codecov[bot] commented on pull request #1677: [CELEBORN-763] Add --add-opens to bootstrap shell scripts
Posted by "codecov[bot] (via GitHub)" <gi...@apache.org>.
codecov[bot] commented on PR #1677:
URL: https://github.com/apache/incubator-celeborn/pull/1677#issuecomment-1620308966
## [Codecov](https://app.codecov.io/gh/apache/incubator-celeborn/pull/1677?src=pr&el=h1&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=apache) Report
> Merging [#1677](https://app.codecov.io/gh/apache/incubator-celeborn/pull/1677?src=pr&el=desc&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=apache) (58e3f76) into [main](https://app.codecov.io/gh/apache/incubator-celeborn/commit/de0fd8cc44275ff78bb3d9228be0d94db57b79d4?el=desc&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=apache) (de0fd8c) will **increase** coverage by `0.03%`.
> The diff coverage is `n/a`.
> :exclamation: Current head 58e3f76 differs from pull request most recent head 7538aff. Consider uploading reports for the commit 7538aff to get more accurate results
```diff
@@ Coverage Diff @@
## main #1677 +/- ##
==========================================
+ Coverage 46.22% 46.24% +0.03%
==========================================
Files 161 161
Lines 9957 9957
Branches 920 920
==========================================
+ Hits 4602 4604 +2
+ Misses 5051 5050 -1
+ Partials 304 303 -1
```
[see 1 file with indirect coverage changes](https://app.codecov.io/gh/apache/incubator-celeborn/pull/1677/indirect-changes?src=pr&el=tree-more&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=apache)
:mega: We’re building smart automated test selection to slash your CI/CD build times. [Learn more](https://about.codecov.io/iterative-testing/?utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=apache)
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: issues-unsubscribe@celeborn.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [incubator-celeborn] pan3793 commented on pull request #1677: [CELEBORN-763] Add --add-opens to bootstrap shell scripts
Posted by "pan3793 (via GitHub)" <gi...@apache.org>.
pan3793 commented on PR #1677:
URL: https://github.com/apache/incubator-celeborn/pull/1677#issuecomment-1620912653
@cfmcgrady thanks for supplying additional information
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: issues-unsubscribe@celeborn.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org