GitHub user dataknocker opened a pull request: https://github.com/apache/spark/pull/18324
[SPARK-21045][PYSPARK]Fixed executor blocked because traceback.format_exc throw UnicodeDecodeError ## What changes were proposed in this pull request? check if traceback.format_exc() is unicode then encode utf8. ## How was this patch tested? We can run in pyspark: ```python def f(): raise Exception("ä¸") spark = SparkSession.builder.master('local').getOrCreate() spark.sparkContext.parallelize([1]).map(lambda x: f()).count() ``` Before fixed this bug, this program will be blocked. After fixed this bug, this program will throw exception expected. And I have added the test to pyspark.tests. You can merge this pull request into a Git repository by running: $ git pull https://github.com/dataknocker/spark SPARK-21045 Alternatively you can review and apply these changes as the patch at: https://github.com/apache/spark/pull/18324.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 #18324 ---- commit 6cbc3f70f35b24dfef71771ab64f300f86faf325 Author: wangzejie <wangze...@sprucetec.com> Date: 2017-06-16T06:49:37Z Fixed executor blocked because traceback.format_exc encode utf8 throw UnicodeDecodeError ---- --- If your project is set up for it, you can reply to this email and have your reply appear on GitHub as well. If your project does not have this feature enabled and wishes so, or if the feature is enabled but not working, please contact infrastructure at infrastruct...@apache.org or file a JIRA ticket with INFRA. --- --------------------------------------------------------------------- To unsubscribe, e-mail: reviews-unsubscr...@spark.apache.org For additional commands, e-mail: reviews-h...@spark.apache.org