1
0
mirror of https://github.com/quay/quay.git synced 2026-01-26 06:21:37 +03:00
Files
OpenShift Cherrypick Robot 5f6cbae224 [redhat-3.16] fix: Added lazy initialization for redis to retry the connection after pod restart automatically connect when available (PROJQUAY-9791) (#4551)
* Fix: Add lazy Redis connection with retry logic for pull metrics

- Implement lazy initialization to prevent startup failures when Redis unavailable
- Add retry logic (3 attempts, 1s delay) for automatic reconnection
- Add health checks before each Redis operation
- Improve error logging from DEBUG to WARNING level
- Fix silent failures after pod restart when Redis not immediately available

This fixes the issue where pull statistics tracking was permanently broken
after registry component restart if Redis wasn't available at startup.

* fixing tests

* fixing tests

---------

Co-authored-by: shudeshp <shudeshp@redhat.com>
Co-authored-by: Shubhra Deshpande <shubhrajayant+github@gmail.com>
Co-authored-by: Brandon Caton <bcaton@redhat.com>
2025-11-20 14:37:33 -05:00
..
2019-11-12 11:09:47 -05:00
2020-02-05 19:55:07 -08:00