[
https://issues.apache.org/jira/browse/PHOENIX-7822?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Andrew Kyle Purtell updated PHOENIX-7822:
-----------------------------------------
Description: {{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.
> MaxConcurrentConnectionsIT poll for async connection counts
> -----------------------------------------------------------
>
> Key: PHOENIX-7822
> URL: https://issues.apache.org/jira/browse/PHOENIX-7822
> Project: Phoenix
> Issue Type: Sub-task
> Components: test
> Reporter: Andrew Kyle Purtell
> Assignee: Andrew Kyle Purtell
> Priority: Minor
> Fix For: 5.4.0, 5.3.1
>
>
> {{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.
--
This message was sent by Atlassian Jira
(v8.20.10#820010)