-
Notifications
You must be signed in to change notification settings - Fork 9.1k
MAPREDUCE-7517 TestPipeApplication hangs with JAVA 17+ #7952
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
Conversation
|
@slfan1989 @pan3793 @szetszwo PTAL |
| os.write(("ls ").getBytes()); | ||
| } else { | ||
| os.write(("java -cp " + classpath + " " + clazz).getBytes()); | ||
| os.write((System.getProperty("java.home") + "/bin/java -cp " + classpath + " " + clazz).getBytes()); |
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.
This should work.
It might be worth documenting that in Java 8, System.getProperty("java.home") actually returns $JAVA_HOME/jre, commands under $JAVA_HOME/jre/bin are a subset of $JAVA_HOME/bin.
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.
I didn't know that.
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.
Added comment
|
💔 -1 overall
This message was automatically generated. |
|
💔 -1 overall
This message was automatically generated. |
…Contributed by Istvan Toth. * MAPREDUCE-7517 TestPipeApplication hangs with JAVA 17+ * add comment about JRE path Reviewed-by: Cheng Pan <chengpan@apache.org> Signed-off-by: Shilun Fan <slfan1989@apache.org>
Description of PR
MAPREDUCE-7517 TestPipeApplication hangs with JAVA 17+
Fixes TestPipeApplication to use the java.home system property to start a new Java process instead of taking it from the $PATH.
I have also added timeouts to make sure this test won't hang forever if any problems crop up in the future.
How was this patch tested?
Ran TestPipeApplication in the development docker image with JAVA_HOME set to JAVA_17.
For code changes:
LICENSE,LICENSE-binary,NOTICE-binaryfiles?