-
Notifications
You must be signed in to change notification settings - Fork 29k
[SPARK-44153][CORE][UI][FOLLOWUP] Use JAVA_HOME and stderr #41731
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
| while (line != null) { | ||
| if (line.nonEmpty) rows += line | ||
| line = r.readLine() | ||
| Utils.tryWithResource(new BufferedReader(new InputStreamReader(p.getInputStream()))) { r => |
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.
@mridulm . I'll make another PR to limit the number of results and to address your comment for readLine parts. In this PR, I just wrapped with tryWithResource.
pan3793
left a comment
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.
@dongjoon-hyun thanks for fixing this issue.
|
Merged to master! |
### What changes were proposed in this pull request? This is a follow-up of apache#41709 to address the review comments. ### Why are the changes needed? 1. Use `JAVA_HOME` prefixed `jmap` to ensure the same version's `JVM` and JMAP. 2. Use the existing stderr instead of merging `stderr` and `stdout` via `redirectErrorStream` 3. Use `tryWithResource`. ### Does this PR introduce _any_ user-facing change? No. ### How was this patch tested? Manual review. Closes apache#41731 from dongjoon-hyun/SPARK-44153-2. Authored-by: Dongjoon Hyun <[email protected]> Signed-off-by: Dongjoon Hyun <[email protected]>
### What changes were proposed in this pull request? This is a follow-up of apache#41709 to address the review comments. ### Why are the changes needed? 1. Use `JAVA_HOME` prefixed `jmap` to ensure the same version's `JVM` and JMAP. 2. Use the existing stderr instead of merging `stderr` and `stdout` via `redirectErrorStream` 3. Use `tryWithResource`. ### Does this PR introduce _any_ user-facing change? No. ### How was this patch tested? Manual review. Closes apache#41731 from dongjoon-hyun/SPARK-44153-2. Authored-by: Dongjoon Hyun <[email protected]> Signed-off-by: Dongjoon Hyun <[email protected]> (cherry picked from commit 646388e)
What changes were proposed in this pull request?
This is a follow-up of #41709 to address the review comments.
Why are the changes needed?
JAVA_HOMEprefixedjmapto ensure the same version'sJVMand JMAP.stderrandstdoutviaredirectErrorStreamtryWithResource.Does this PR introduce any user-facing change?
No.
How was this patch tested?
Manual review.