Github user andrewor14 commented on a diff in the pull request:

    https://github.com/apache/spark/pull/10705#discussion_r53717677
  
    --- Diff: core/src/main/scala/org/apache/spark/storage/BlockManager.scala 
---
    @@ -521,16 +509,17 @@ private[spark] class BlockManager(
                   }
                 }
               }
    +        } else {
    +          releaseLock(blockId)
    --- End diff --
    
    It took me a while to figure out what this is case is. IIUC this happens 
when there is an entry for this block in `BlockInfoManager`, but it is neither 
in memory nor marked to use disk. In other words, this is only for 
`MEMORY_ONLY` and after the block has already been evicted. In that case it 
would make sense to release the lock as you have done.
    
    I'm actually not sure if we'll ever hit this case (if the block has already 
been evicted then its metadata won't even be in `BlockInfoManager`). Either way 
a simple comment to explain what this case represents will be very helpful.


---
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 [email protected] or file a JIRA ticket
with INFRA.
---

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to