• Bug
  • Status: Closed
  • 2 Major
  • Resolution: Fixed
  • ehcache-core
  • cdennis
  • Reporter: cdennis
  • February 24, 2010
  • 0
  • Watchers: 0
  • May 21, 2010
  • April 07, 2010

Description

The CacheLockProvider.lock method (in both of its implementations) has strange behavior. It silently ignores re-entrant lock requests which obviously causes problems on unlocking. The weird behavior is in place for BlockingCache. We should rename the method to reflects its strangeness, and provide a regular lock method as well.

Comments

Chris Dennis 2010-04-07

The Sync.lock method now has proper reentrant semantics and BlockingCache now uses a new query method on the Sync instead.