Closed
Description
Symfony version(s) affected: 5.2.0
Description
CombinedStore do not handle store exceptions on exists method call.
How to reproduce
$lockFactory = new \Symfony\Component\Lock\LockFactory(
new \Symfony\Component\Lock\Store\CombinedStore([
new \Symfony\Component\Lock\Store\RedisStore(
new \Predis\Client(['host' => 'unexisting-or-unreachable-localhost'])
),
new \Symfony\Component\Lock\Store\InMemoryStore(),
new \Symfony\Component\Lock\Store\FlockStore(),
],
new \Symfony\Component\Lock\Strategy\ConsensusStrategy()
));
$key = uniqid(true);
$lock = $lockFactory->createLock($key, 30, false);
$lock->acquire();
$lock->release();
Possible Solution
Additional context