GitHub user squito opened a pull request: https://github.com/apache/spark/pull/22247
[SPARK-25253][PYSPARK] Refactor local connection & auth code This eliminates some duplication in the code to connect to a server on localhost to talk directly to the jvm. Also it gives consistent ipv6 and error handling. Two other incidental changes, that shouldn't matter: 1) python barrier tasks perform authentication immediately (rather than waiting for the BARRIER_FUNCTION indicator) 2) for `rdd._load_from_socket`, the timeout is only increased after authentication. You can merge this pull request into a Git repository by running: $ git pull https://github.com/squito/spark py_connection_refactor Alternatively you can review and apply these changes as the patch at: https://github.com/apache/spark/pull/22247.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 #22247 ---- commit c232ec63f80eea05d3756feb22e53aa5a1e67d93 Author: Imran Rashid <irashid@...> Date: 2018-08-27T17:07:44Z [SPARK-25253][PYSPARK] Refactor local connection & auth code ---- --- --------------------------------------------------------------------- To unsubscribe, e-mail: reviews-unsubscr...@spark.apache.org For additional commands, e-mail: reviews-h...@spark.apache.org