• Bug
  • Status: Closed
  • 2 Major
  • Resolution: Fixed
  • ehcache-core
  • hsingh
  • Reporter: cdennis
  • May 11, 2010
  • 0
  • Watchers: 0
  • January 17, 2013
  • May 11, 2010

Description

When attempting to remove an expired element during a get, we try to take the write lock. BlockingCache was being greedy and holding a read lock over the whole cache.get which leads to expiry removals being lock upgrades which deadlock.

Comments

Himadri Singh 2010-05-12

BlockingCacheTest.testNoDeadlockOnRemovingExpiredElement() passes.