GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — Fix flaky RedisMultiDbClientSideCacheTest.clearIfOneDiesTest by atakavci · Pull Request #4823 · redis/jedis

Conversation

@atakavci

@atakavci atakavci commented Oct 30, 2026 •
edited by cursor Bot
Loading

Uh oh!

There was an error while loading. Please reload this page.

Copy link
Copy Markdown
Contributor

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
All reactions
  • 👍 1 reaction
@atakavci
- fix clearIfOne dies flakiness
6aea231
@atakavci
atakavci requested a review from ggivo October 30, 2026 14:33
@atakavci atakavci self-assigned this Oct 30, 2026
@atakavci atakavci added the testing label Oct 30, 2026
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Oct 30, 2026 •
edited
Loading

Uh oh!

There was an error while loading. Please reload this page.

Copy link
Copy Markdown

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.

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@atakavci
Merge branch 'master' into ali/fixClearIfOneDies
ac5f7e5
ggivo
ggivo approved these changes Nov 5, 2026
View reviewed changes

@ggivo ggivo left a comment

Copy link
Copy Markdown
Collaborator

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.

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
@atakavci
Merge branch 'master' into ali/fixClearIfOneDies
f8fd955
@atakavci
atakavci merged commit f9a7620 into redis:master Nov 5, 2026
15 checks passed

Uh oh!

There was an error while loading. Please reload this page.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

@ggivo ggivo ggivo approved these changes

Uh oh!

There was an error while loading. Please reload this page.

Assignees

@atakavci atakavci

Labels

testing

Projects

None yet

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.

2 participants

@atakavci @ggivo
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.
You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.