-
Notifications
You must be signed in to change notification settings - Fork 3.9k
Reduce log level to warn on reconnect in JedisSentinelPool #4336
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull Request Overview
This PR reduces the logging severity level from ERROR to WARN when a connection to a Sentinel is lost and will be automatically retried. This is appropriate since the condition is recoverable and doesn't represent a critical failure.
Key Changes:
- Changed log level from
LOG.error()toLOG.warn()for Sentinel reconnection attempts
Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.
Test Results 280 files ±0 280 suites ±0 11m 32s ⏱️ -20s Results for commit ce9d3e7. ± Comparison against base commit 4ddd7f4. This pull request skips 1011 tests.♻️ This comment has been updated with latest results. |
Losing connection to a Sentinel is a normal operational event. Sentinels can be restarted for maintenance, or because of network hiccups. The code automatically retries and recovers
ggivo
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
…#4336) * Reduce log level to warn on reconnect in JedisSentinelPool * reduce log level to WARN in SentineledConnectionProvider #4330 Losing connection to a Sentinel is a normal operational event. Sentinels can be restarted for maintenance, or because of network hiccups. The code automatically retries and recovers --------- Co-authored-by: ggivo <ivo.gaydazhiev@redis.com> (cherry picked from commit e7bf717)
Fixes #4330