WithCacheStorage: Be resilient about cache failures
Description
Failures from the cache backend should not be fatal as long as the fallback backend works. This makes WithCacheStorage
more resilient with remote caches.
A warning is logged for cache failures, matching the existing code for bulk_delete()
.
This depends on !776 (merged).
Changes proposed in this merge request:
- WithCacheStorage: Be resilient about cache failures
- tests/cas/test_storage.py: Generalize deferred storage initialization
- tests/cas/test_storage.py: Add
disk_with_unavailable_cache
Validation
This code is exercised by existing storage tests using the new storage type disk_with_unavailable_cache
.