Return-Path: X-Original-To: archive-asf-public-internal@cust-asf2.ponee.io Delivered-To: archive-asf-public-internal@cust-asf2.ponee.io Received: from cust-asf.ponee.io (cust-asf.ponee.io [163.172.22.183]) by cust-asf2.ponee.io (Postfix) with ESMTP id DC78B200D36 for ; Mon, 6 Nov 2017 13:16:01 +0100 (CET) Received: by cust-asf.ponee.io (Postfix) id DAF09160BEC; Mon, 6 Nov 2017 12:16:01 +0000 (UTC) Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by cust-asf.ponee.io (Postfix) with SMTP id 541081609E0 for ; Mon, 6 Nov 2017 13:16:01 +0100 (CET) Received: (qmail 74139 invoked by uid 500); 6 Nov 2017 12:16:00 -0000 Mailing-List: contact reviews-help@spark.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Delivered-To: mailing list reviews@spark.apache.org Received: (qmail 74125 invoked by uid 99); 6 Nov 2017 12:16:00 -0000 Received: from git1-us-west.apache.org (HELO git1-us-west.apache.org) (140.211.11.23) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 06 Nov 2017 12:16:00 +0000 Received: by git1-us-west.apache.org (ASF Mail Server at git1-us-west.apache.org, from userid 33) id 31C82DFAB4; Mon, 6 Nov 2017 12:16:00 +0000 (UTC) From: wangyum To: reviews@spark.apache.org Reply-To: reviews@spark.apache.org Message-ID: Subject: [GitHub] spark pull request #19670: [SPARK-22454][CORE] ExternalShuffleClient.close()... Content-Type: text/plain Date: Mon, 6 Nov 2017 12:16:00 +0000 (UTC) archived-at: Mon, 06 Nov 2017 12:16:02 -0000 GitHub user wangyum opened a pull request: https://github.com/apache/spark/pull/19670 [SPARK-22454][CORE] ExternalShuffleClient.close() should check clientFactory null ## What changes were proposed in this pull request? `ExternalShuffleClient.close()` should check `clientFactory` null. otherwise it will throw NPE sometimes: ``` 17/11/06 20:08:05 ERROR Utils: Uncaught exception in thread main java.lang.NullPointerException at org.apache.spark.network.shuffle.ExternalShuffleClient.close(ExternalShuffleClient.java:152) at org.apache.spark.storage.BlockManager.stop(BlockManager.scala:1407) at org.apache.spark.SparkEnv.stop(SparkEnv.scala:89) at org.apache.spark.SparkContext$$anonfun$stop$11.apply$mcV$sp(SparkContext.scala:1849) ``` ## How was this patch tested? manual tests You can merge this pull request into a Git repository by running: $ git pull https://github.com/wangyum/spark SPARK-22454 Alternatively you can review and apply these changes as the patch at: https://github.com/apache/spark/pull/19670.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 #19670 ---- commit fba4c8a7c5a343ffc1693de8994099a2aeecbd43 Author: Yuming Wang Date: 2017-11-06T12:12:00Z ExternalShuffleClient.close() should check null ---- --- --------------------------------------------------------------------- To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org For additional commands, e-mail: reviews-help@spark.apache.org