-
Notifications
You must be signed in to change notification settings - Fork 8.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
HADOOP-19058. [JDK-17] Fix UT Failures in hadoop common, hdfs, yarn #6531
base: trunk
Are you sure you want to change the base?
Conversation
💔 -1 overall
This message was automatically generated. |
@@ -168,7 +168,18 @@ | |||
<enforced.maven.version>[3.3.0,)</enforced.maven.version> | |||
|
|||
<!-- Plugin versions and config --> | |||
<maven-surefire-plugin.argLine>-Xmx2048m -XX:+HeapDumpOnOutOfMemoryError</maven-surefire-plugin.argLine> | |||
<maven-surefire-plugin.argLine>-Xmx2048m -XX:+HeapDumpOnOutOfMemoryError --add-exports=jdk.compiler/com.sun.tools.javac.util=ALL-UNNAMED |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you very much for submitting this PR. We are looking forward to Hadoop supporting JDK11 and JDK17.
I have some questions:
Should we fully support JDK11 and JDK17, or should we try to avoid certain issues by adding some compilation parameters?
From my perspective, we should find ways to upgrade the code and make all modules fully compatible with the recommended syntax of JDK11 and JDK17.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
it's a big ongoing bit of work; aws have been busier than the rest of us...we do test against later java versions, but do the build/UT/IT against v8.
I'd like to move 3.5 and then 3.4.x to java17+ ..., where x is a release which comes out this year but is greater than 1
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
anyway, regarding this line: the exports thing is java11+ only, right? so it should only be set on java11+.
proposed: add a java17 profile and set some maven.surefire.java17.options string to it there, on the default java8 profile set it to ""
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Spark added such JVM args unconditional with -XX:+IgnoreUnrecognizedVMOptions
, this might be a simpler way.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
HBase uses maven profiles for these options, and it works well.
commented. I looked at surefire and it is at 3.2.5; probably time to upgrade. I propose it is done before doing this one, splitting them in two. and we need java8 and java17 profiles so we can add other options in other places |
I agree with your points, but there are some additional details to be added:
I will create a JIRA ticket for Java 17 compile support. I am aware that there is a lot of work to be done, and I hope that we can address the JDK support issue this year. |
💔 -1 overall
This message was automatically generated. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
sorry, realised I hadn't submitted by review. here it is though we've already discussed the issues
@@ -168,7 +168,18 @@ | |||
<enforced.maven.version>[3.3.0,)</enforced.maven.version> | |||
|
|||
<!-- Plugin versions and config --> | |||
<maven-surefire-plugin.argLine>-Xmx2048m -XX:+HeapDumpOnOutOfMemoryError</maven-surefire-plugin.argLine> | |||
<maven-surefire-plugin.argLine>-Xmx2048m -XX:+HeapDumpOnOutOfMemoryError --add-exports=jdk.compiler/com.sun.tools.javac.util=ALL-UNNAMED |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
anyway, regarding this line: the exports thing is java11+ only, right? so it should only be set on java11+.
proposed: add a java17 profile and set some maven.surefire.java17.options string to it there, on the default java8 profile set it to ""
Description of PR
How was this patch tested?
For code changes:
LICENSE
,LICENSE-binary
,NOTICE-binary
files?