GeezerVison is showing github.com — Fix flaky RedisMultiDbClientSideCacheTest.clearIfOneDiesTest by atakavci · Pull Request #4823 · redis/jedis
Conversation
atakavci
commented
Oct 30, 2026
•
edited by cursor
Bot
Loading
Uh oh!
There was an error while loading. Please reload this page.
Summary
clearIfOneDiesTest fails intermittently in the Redis Enterprise integration CI (jedis_integration.yml in redis-developer/cae-client-testing, 7 of 14 daily runs in the last two weeks, e.g. run 40179847989) with "Database endpoint could not failover since the MultiDbConfig was not provided with an additional database endpoint". The test now builds its single-database MultiDbClient with health checks disabled, so it exercises only what it is meant to: the client-side cache being cleared when the connection dies.
Key Decisions & Assumptions
- The test runs
CLIENT KILL TYPE normal SKIPME yes, which also kills the idle connection in the health checker's own pool. With the default ALL_SUCCESS policy a single failed PING marks the only database unhealthy, and the default 60 s grace period then keeps it locked out even after the next PING succeeds, so get("foo") fails after the retries are exhausted.
- Whether this happens depends on where the kill lands in the 5 s health-check cycle. Locally the 200 preceding round trips finish in milliseconds; against a remote RE cluster they take seconds, which is why it only failed in CI.
- Disabling health checks is the established pattern for mcf tests that kill connections (e.g.
MultiDbCSCTest). It is a test-only change; the product behaviour is the documented one and is left untouched.
Testing
The change affects all tests in RedisMultiDbClientSideCacheTest; none of the inherited cache tests depend on health checks, and a database without health checks is always considered healthy. clearIfOneDiesTest still verifies that the first attempt on the dead pooled connection flushes the cache and the retry succeeds on a fresh connection.
Note
Low Risk
Test-only configuration change; production MultiDb health-check behavior is unchanged.
Overview
Fixes flaky clearIfOneDiesTest in CI by building the cached MultiDbClient with healthCheckEnabled(false) on its single DatabaseConfig, plus a short comment on why.
CLIENT KILL tears down the health checker’s pooled connection too; with default health policy that can mark the lone database unhealthy for the grace period and make get("foo") fail after retries—timing-dependent on remote clusters. Disabling health checks matches other connection-kill tests (e.g. MultiDbCSCTest) and keeps the test focused on client-side cache invalidation when a pooled connection dies, not failover or health semantics.
Reviewed by Cursor Bugbot for commit f8fd955. Bugbot is set up for automated code reviews on this repo. Configure here.
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
chatgpt-codex-connector[bot] reacted with thumbs up emoji
Codex Review Summary
This comment shows the latest Codex review activity on this pull request.
| Review |
Status |
Commit |
Review trigger |
| 📝 Code Review |
✅ Completed 2026-11-05T11:56:10.757647Z |
f8fd955 |
New commits |
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review" or "@codex security review".
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.
|
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
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.
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Reviewers
ggivo
ggivo approved these changes
Uh oh!
There was an error while loading. Please reload this page.
Milestone
No milestone
Development
Successfully merging this pull request may close these issues.
Uh oh!
There was an error while loading. Please reload this page.
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.