Return-Path: X-Original-To: apmail-spark-reviews-archive@minotaur.apache.org Delivered-To: apmail-spark-reviews-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id A358E11892 for ; Wed, 18 Jun 2014 08:06:54 +0000 (UTC) Received: (qmail 27808 invoked by uid 500); 18 Jun 2014 08:06:54 -0000 Delivered-To: apmail-spark-reviews-archive@spark.apache.org Received: (qmail 27791 invoked by uid 500); 18 Jun 2014 08:06:54 -0000 Mailing-List: contact reviews-help@spark.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: reviews@spark.apache.org Delivered-To: mailing list reviews@spark.apache.org Received: (qmail 27775 invoked by uid 99); 18 Jun 2014 08:06:54 -0000 Received: from tyr.zones.apache.org (HELO tyr.zones.apache.org) (140.211.11.114) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 18 Jun 2014 08:06:54 +0000 Received: by tyr.zones.apache.org (Postfix, from userid 65534) id D0B4F83B57B; Wed, 18 Jun 2014 08:06:53 +0000 (UTC) From: rxin To: reviews@spark.apache.org Reply-To: reviews@spark.apache.org References: In-Reply-To: Subject: [GitHub] spark pull request: [SPARK-2162] Double check in doGetLocal to avo... Content-Type: text/plain Message-Id: <20140618080653.D0B4F83B57B@tyr.zones.apache.org> Date: Wed, 18 Jun 2014 08:06:53 +0000 (UTC) Github user rxin commented on a diff in the pull request: https://github.com/apache/spark/pull/1103#discussion_r13903517 --- Diff: core/src/main/scala/org/apache/spark/storage/BlockManager.scala --- @@ -363,6 +363,12 @@ private[spark] class BlockManager( val info = blockInfo.get(blockId).orNull if (info != null) { info.synchronized { + // Double check to make sure the block is still there, since it + // might has been removed when we actually come here. --- End diff -- has -> have also can you point out in the comment that this only works because "removeBlock" also synchronizes on the block info object? --- 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 infrastructure@apache.org or file a JIRA ticket with INFRA. ---