-
- Downloads
[SPARK-22083][CORE] Release locks in MemoryStore.evictBlocksToFreeSpace
## What changes were proposed in this pull request? MemoryStore.evictBlocksToFreeSpace acquires write locks for all the blocks it intends to evict up front. If there is a failure to evict blocks (eg., some failure dropping a block to disk), then we have to release the lock. Otherwise the lock is never released and an executor trying to get the lock will wait forever. ## How was this patch tested? Added unit test. Author: Imran Rashid <irashid@cloudera.com> Closes #19311 from squito/SPARK-22083.
Showing
- core/src/main/scala/org/apache/spark/storage/memory/MemoryStore.scala 34 additions, 13 deletions...n/scala/org/apache/spark/storage/memory/MemoryStore.scala
- core/src/test/scala/org/apache/spark/storage/MemoryStoreSuite.scala 119 additions, 0 deletions...est/scala/org/apache/spark/storage/MemoryStoreSuite.scala
Please register or sign in to comment