diff --git a/src/Symfony/Component/Lock/Store/CombinedStore.php b/src/Symfony/Component/Lock/Store/CombinedStore.php index f6e9319359175..8d0526b088466 100644 --- a/src/Symfony/Component/Lock/Store/CombinedStore.php +++ b/src/Symfony/Component/Lock/Store/CombinedStore.php @@ -199,9 +199,14 @@ public function exists(Key $key) $storesCount = \count($this->stores); foreach ($this->stores as $store) { - if ($store->exists($key)) { - ++$successCount; - } else { + try { + if ($store->exists($key)) { + ++$successCount; + } else { + ++$failureCount; + } + } catch (\Exception $e) { + $this->logger->debug('One store failed to check the "{resource}" lock.', ['resource' => $key, 'store' => $store, 'exception' => $e]); ++$failureCount; }
Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.
Alternative Proxies: