Skip to content

PHOENIX-7822 MaxConcurrentConnectionsIT poll for async connection counts#2439

Open
apurtell wants to merge 1 commit intoapache:masterfrom
apurtell:PHOENIX-7822
Open

PHOENIX-7822 MaxConcurrentConnectionsIT poll for async connection counts#2439
apurtell wants to merge 1 commit intoapache:masterfrom
apurtell:PHOENIX-7822

Conversation

@apurtell
Copy link
Copy Markdown
Contributor

@apurtell apurtell commented May 1, 2026

PhoenixConnection.close() is asynchronous because internal child connections are reaped on a background thread. Counters are decremented on the close path with updates that may not be visible immediately to the caller after close() returns. Tests that assert against these counters immediately after the close call were racy. The fix is to use HBaseTestingUtility.waitFor() to poll until the counters reach the desired condition.

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