Skip to content

PHOENIX-8090 HA parallel connection tests wait for both cluster connections - #2722

Merged
apurtell merged 1 commit into
apache:masterfrom
apurtell:PHOENIX-8090
Dec 5, 2026
Merged

apurtell merged 1 commit into
apache:masterfrom
apurtell:PHOENIX-8090

Conversation

@apurtell

@apurtell apurtell commented Dec 4, 2026

Copy link
Copy Markdown
Contributor

The wrapped connection tests in the HA registry suite and the parallel connection suite fail sometimes in CI. A parallel connection returns when one cluster connects. The connection to the other cluster can still be opening. The tests restart a cluster or change the registry right after they connect. The pending connection then fails, and the test fails when it reads the result. The product works as designed.

This change is test-only. Before a test changes a cluster, it now waits for both cluster connections to complete. A shared helper that other tests call with one cluster down does not change.

🤖 Generated with Claude Code

…ctions

A parallel connection returns when one cluster connects. The tests then
restart a cluster or change a registry while the other connection is still
opening, and a later get on that future fails. The tests now wait for both
connections before they change a cluster.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟢 Approval recommended

No active review issues remain for the test changes aimed at reducing intermittent high-availability failures.

No open issues 🎉

What changed in this PR

Reduces intermittent failures in Phoenix high-availability integration tests by waiting for both cluster connections before changing cluster state or registries. Production behavior remains unchanged.

Changes:

  • Adds bounded waits for both underlying parallel connections.
  • Leaves the shared helper used by tests with one cluster down unchanged.
File Description
phoenix-core/​src/​it/​java/​org/​apache/​phoenix/​jdbc/​ParallelPhoenixConnectionIT.java Waits for both connections in two registry-change tests.
phoenix-core/​src/​it/​java/​org/​apache/​phoenix/​jdbc/​HAConnectionWithMasterAndRPCRegistryIT.java Updates the suite-local helper to wait for both connections.

Review effort: Balanced

@apurtell

apurtell commented Dec 4, 2026

Copy link
Copy Markdown
Contributor Author

Precommit note: the failures in this run are not related to this change. Each one is a known problem on master.

(Claude Code)

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