Skip to content

redis: log recovery when a connection succeeds after a prior dial error - #1205

Merged
collin-lee merged 1 commit into
envoyproxy:mainfrom
OS-kiranmalsetty:redis-conn-error-recovery-log
Aug 5, 2026
Merged

redis: log recovery when a connection succeeds after a prior dial error#1205
collin-lee merged 1 commit into
envoyproxy:mainfrom
OS-kiranmalsetty:redis-conn-error-recovery-log

Conversation

@OS-kiranmalsetty

Copy link
Copy Markdown
Contributor

Summary

  • Adds an atomic.Bool to poolStats that tracks whether the most recent Redis dial attempt failed.
  • Logs an info-level "redis connection re-established after previous error" message the first time a connection succeeds after prior dial errors, giving operators an explicit recovery signal instead of only seeing repeated error logs.

Test plan

  • go build ./...
  • go vet ./src/redis/...
  • go test ./test/redis/...

Operators currently only see repeated dial-error logs and have no
explicit signal when the pool starts succeeding again. Track whether
the last dial attempt failed and log once when a subsequent connection
succeeds.

Signed-off-by: kiran malsetty <kiran.malsetty@outsystems.com>
@OS-kiranmalsetty
OS-kiranmalsetty force-pushed the redis-conn-error-recovery-log branch from e711bfd to d4c2dbb Compare August 5, 2026 15:43
@OS-kiranmalsetty

Copy link
Copy Markdown
Contributor Author

@collin-lee, can you please review when you have a chance?

@collin-lee
collin-lee merged commit 4969da5 into envoyproxy:main Aug 5, 2026
6 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants