spark-reviews mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From rxin <>
Subject [GitHub] spark pull request: [SPARK-2162] Double check in doGetLocal to avo...
Date Wed, 18 Jun 2014 08:06:53 GMT
Github user rxin commented on a diff in the pull request:
    --- 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 or file a JIRA ticket
with INFRA.

View raw message