Repository navigation
PHOENIX-8090 HA parallel connection tests wait for both cluster connections - #2722
Merged
Merged
Conversation
…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>
There was a problem hiding this comment.
🟢 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
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) |
This was referenced Dec 4, 2026
PHOENIX-8091 IndexToolForNonTxGlobalIndexIT incremental rebuild test writes in one millisecond
#2723
Merged
Merged
asf-gitbox-commits
pushed a commit
that referenced
this pull request
Dec 5, 2026
…ctions (#2722) Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Co-authored-by: Andrew Purtell <apurtell@salesforce.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
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