Skip to content

PHOENIX-8115 UpsertSelectIT counts server connections of the shared cluster - #2747

Open
apurtell wants to merge 1 commit into
apache:masterfrom
apurtell:PHOENIX-8115
Open

apurtell wants to merge 1 commit into
apache:masterfrom
apurtell:PHOENIX-8115

Conversation

@apurtell

@apurtell apurtell commented Dec 4, 2026

Copy link
Copy Markdown
Contributor

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

…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>

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 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 ParallelStatsDisabledTest with NeedsOwnMiniClusterTest, 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

@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