Repository navigation
Conversation
…luster UpsertSelectIT sets its own cluster properties, but it is in the ParallelStatsDisabledTest group. That group reuses a cluster that an earlier class started with the CDC consumer on. The consumer opens server connections across the metric reset, and the open connection count goes below zero. Move the class to NeedsOwnMiniClusterTest, so its properties take effect. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
There was a problem hiding this comment.
🟢 Approval recommended
No active review issues are reported for the test-only change isolating UpsertSelectIT from shared-cluster connections.
No open issues 🎉
What changed in this PR
This test-only change isolates UpsertSelectIT from shared-cluster connections that can cause false connection-leak failures.
Changes:
- Replaces
ParallelStatsDisabledTestwithNeedsOwnMiniClusterTest, allowing setup to disable the index CDC consumer. - Leaves the connection-leak check unchanged.
| File | Description |
|---|---|
| phoenix-core/src/it/java/org/apache/phoenix/end2end/UpsertSelectIT.java | Changes the test category to require its own mini cluster. |
Review effort: Balanced
This was referenced Dec 4, 2026
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 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 connection leak check after each test sometimes fails because the count of open connections goes negative.
The class runs in a test group that reuses forks, so it shares a mini cluster that an earlier class started. Its setup then cannot turn off the index CDC consumer. The consumer opens server connections, and the global connection metric counts them. When a consumer connection opens before the metric reset and closes after it, the count goes below zero. The leak check cannot recover from this. This change is test-only. The class now starts its own mini cluster, so its setup applies. The leak check does not change. PHOENIX-8094 fixes the same problem in the metadata endpoint test.
🤖 Generated with Claude Code