-
Notifications
You must be signed in to change notification settings - Fork 28.5k
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
[SPARK-4606] Send EOF to child JVM when there's no more data to read. #3460
Conversation
Test build #23846 has started for PR 3460 at commit
|
Test build #23846 has finished for PR 3460 at commit
|
Test PASSed. |
@@ -151,7 +151,8 @@ private[spark] object SparkSubmitDriverBootstrapper { | |||
val isWindows = Utils.isWindows | |||
val isSubprocess = sys.env.contains("IS_SUBPROCESS") | |||
if (!isWindows) { | |||
val stdinThread = new RedirectThread(System.in, process.getOutputStream, "redirect stdin") | |||
val stdinThread = new RedirectThread(System.in, process.getOutputStream, "redirect stdin", | |||
true) |
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.
Kind of nitpicky, but I'd probably explicitly name the boolean parameter here (IntelliJ complains otherwise, and besides, it's a nice practice). I can fix this up myself on merge, though.
I tried this out and was able to reproduce the original issue based on your JIRA description, and I can confirm that this PR fixes the problem. It looks like this issue also affects 1.1.1, so I'll pull this in there, too. Therefore, I'm going to merge this into |
Author: Marcelo Vanzin <[email protected]> Closes #3460 from vanzin/SPARK-4606 and squashes the following commits: 031207d [Marcelo Vanzin] [SPARK-4606] Send EOF to child JVM when there's no more data to read. (cherry picked from commit 7e2deb7) Signed-off-by: Josh Rosen <[email protected]>
Author: Marcelo Vanzin <[email protected]> Closes #3460 from vanzin/SPARK-4606 and squashes the following commits: 031207d [Marcelo Vanzin] [SPARK-4606] Send EOF to child JVM when there's no more data to read. (cherry picked from commit 7e2deb7) Signed-off-by: Josh Rosen <[email protected]>
No description provided.