You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
refactor(proxy): address review feedback on retry and leader discovery
- proxy/dualwrite.go: preserve NOSCRIPT→EVAL fallback across compacted
retries so each attempt after the first skips the known-missing
EVALSHA; add jitter + bounded exponential backoff; use time.NewTimer
so the timer is released on ctx cancellation; tag the two Result()
reads with the same nolint:wrapcheck used elsewhere.
- proxy/leader_aware_backend.go: derive a cancellable context from
stopCh so Close() interrupts in-flight INFO probes instead of
waiting for refreshTimeout, check ctx.Err() between candidates, and
log per-client Close errors.
- proxy/leader_aware_backend_test.go: replace net.Listen with
net.ListenConfig.Listen (noctx linter).
- adapter/redis_info_test.go: gofmt.
- proxy/proxy_test.go: regression test that the NOSCRIPT resolution is
reused across compacted retries.
0 commit comments