Skip to content

Tests: fail fast in GetCleanDatabase when a cluster node is disconnected - #585

Merged
mgravell merged 1 commit into
masterfrom
marc/cluster-clean-guard
Oct 22, 2026
Merged

mgravell merged 1 commit into
masterfrom
marc/cluster-clean-guard

Conversation

@mgravell

@mgravell mgravell commented Oct 19, 2026 •

Copy link
Copy Markdown
Collaborator

Skipping a disconnected node in the per-test FLUSHALL loop left its keys and indices in place, so one connectivity blip in CI cascaded into ~300 'index already exists' failures in later tests. Wait briefly for reconnect, then throw naming the unreachable endpoints.


Note

Low Risk
Test-harness-only change; production client code is unaffected, though cluster tests may fail earlier when connectivity is flaky instead of producing misleading downstream failures.

Overview
Cluster test setup in GetCleanDatabase no longer silently skips disconnected primaries during FLUSHALL. It now resolves all cluster servers up front, waits up to ~2s for reconnects, and throws with the unreachable endpoints if any node is still down—so CI does not run tests against a partially flushed cluster.

Replica skipping is unchanged; standalone behavior is unchanged.

Reviewed by Cursor Bugbot for commit 0203813. Bugbot is set up for automated code reviews on this repo. Configure here.

Skipping a disconnected node in the per-test FLUSHALL loop left its keys and
indices in place, so one connectivity blip in CI cascaded into ~300
'index already exists' failures in later tests. Wait briefly for reconnect,
then throw naming the unreachable endpoints.
@mgravell
mgravell marked this pull request as ready for review October 19, 2026 08:17
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Oct 19, 2026 •

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-10-19T08:21:27.969725Z 0203813 Draft marked ready
ℹ️ 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.

@mgravell
mgravell merged commit 87ed683 into master Oct 22, 2026
21 checks passed
@mgravell
mgravell deleted the marc/cluster-clean-guard branch October 22, 2026 13:26
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.

1 participant