Repository navigation
redis: add configurable IO timeouts - #2965
Merged
Merged
Conversation
Codecov Report❌ Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #2965 +/- ##
==========================================
+ Coverage 78.92% 79.27% +0.34%
==========================================
Files 75 75
Lines 46005 46107 +102
==========================================
+ Hits 36310 36550 +240
+ Misses 9695 9557 -138 ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
sylvestre
reviewed
Oct 29, 2026
sylvestre
reviewed
Oct 29, 2026
aw1cks
force-pushed
the
redis-io-timeout
branch
from
November 12, 2026 22:29
ca5424e to
535562f
Compare
sylvestre
reviewed
Nov 15, 2026
A stalled Redis connection can keep a disk-cache miss waiting for the pool even though the compiler could run locally. Install an OpenDAL TimeoutLayer for Redis reads and writes only when a positive deadline is configured. Read it from the same source as the endpoint; unset preserves the existing behavior. Use a silent listener and a paused clock to distinguish the configured IO deadline from the cluster client’s own connection timeout.
aw1cks
force-pushed
the
redis-io-timeout
branch
from
November 18, 2026 11:34
535562f to
4b4c838
Compare
Collaborator
|
Thanks for your PR |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
When using a
disk,redistiered cache, an unavailable Redis can delay local compilation if disk misses - this can end up waiting for OpenDAL’s 10-second pool-acquisition deadline[1].The default overall cache-read timeout is 60 seconds, so it does not shorten this wait. In client-side mode, even shortening the overall cache-read timeout does not reliably bound command completion.
As such I propose to add an optional
SCCACHE_REDIS_IO_TIMEOUT_SECSwhich allows setting a shorter Redis-specific IO deadline (including connection acquisition). This uses theTimeoutLayermiddleware[2].When the config is unset, previous behavior is preserved.
[1] https://docs.rs/opendal-service-redis/0.58.1/src/opendal_service_redis/core.rs.html#158-170
[2] https://docs.rs/opendal-layer-timeout/0.58.1/opendal_layer_timeout/struct.TimeoutLayer.html