EHC ❯ CacheLockProvider has a lock method that has strange behavior (we should rename it and provide a proper lock method too)
-
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.
The Sync.lock method now has proper reentrant semantics and BlockingCache now uses a new query method on the Sync instead.