GitHub user ueshin opened a pull request: https://github.com/apache/spark/pull/22132
[SPARK-25142][PYSPARK] Add error messages when Python worker could not open socket in `_load_from_socket`. ## What changes were proposed in this pull request? Sometimes Python worker can't open socket in `_load_from_socket` for some reason, but it's difficult to figure out the reason because the exception doesn't even contain the messages from `socket.error`s. We should at least add the error messages when raising the exception. ## How was this patch tested? Manually in my local environment. You can merge this pull request into a Git repository by running: $ git pull https://github.com/ueshin/apache-spark issues/SPARK-25142/socket_error Alternatively you can review and apply these changes as the patch at: https://github.com/apache/spark/pull/22132.patch To close this pull request, make a commit to your master/trunk branch with (at least) the following in the commit message: This closes #22132 ---- commit 16b4f72a3f15c1f5b84b33dcdb4cb8ec980f6bb5 Author: Takuya UESHIN <ueshin@...> Date: 2018-08-17T09:59:28Z Add error messages when Python worker could not open socket in `_load_from_socket`. ---- --- --------------------------------------------------------------------- To unsubscribe, e-mail: reviews-unsubscr...@spark.apache.org For additional commands, e-mail: reviews-h...@spark.apache.org