Closed
Description
joongsoo opened DATAREDIS-1117 and commented
If using RedisCacheWriter.lockingCacheWriter()
, it is not atomic.
In DefaultRedisCacheWriter
execute
method wait for unlock. and execute target callable.- try acquire lock in target callable.
When the lock is released, many waiting threads possible access to callable.
But doLock
method is not guarantee to acquire lock. because it does not check acquired lock.
So multiple threads can run the task at the same time.
So the doLock
method must be improved to acquired a lock
Affects: 2.2.5 (Moore SR5)
Referenced from: pull request #518