Andrew Kyle Purtell created PHOENIX-8090:
--------------------------------------------
Summary: HA parallel connection tests wait for both cluster
connections
Key: PHOENIX-8090
URL: https://issues.apache.org/jira/browse/PHOENIX-8090
Project: Phoenix
Issue Type: Test
Components: test
Affects Versions: 5.3.2
Reporter: Andrew Kyle Purtell
Assignee: Andrew Kyle Purtell
Fix For: 5.4.0, 5.3.3
There are two forms of the error.
The first:
{{[ERROR]
org.apache.phoenix.jdbc.HAConnectionWithMasterAndRPCRegistryIT.testAllWrappedConnectionsClosedAfterActiveURLChange[ClusterRoleRecord_registryType=RPC]
-- Time elapsed: 60.27 s <<< ERROR!
java.util.concurrent.ExecutionException:
org.apache.phoenix.exception.PhoenixIOException: Failed after attempts=5,
exceptions:
2026-11-21T00:30:24.356Z,
RpcRetryingCaller\{globalStartTime=2026-11-21T00:30:24.277Z, pause=2000,
maxAttempts=5},
org.apache.hadoop.hbase.regionserver.RegionServerStoppedException:
org.apache.hadoop.hbase.regionserver.RegionServerStoppedException: Server
<host> ...
...
row 'SYSTEM.CATALOG' on table 'hbase:meta' at region=hbase:meta,,1.1588230740,
...
...
at
org.apache.phoenix.jdbc.HAConnectionWithMasterAndRPCRegistryIT.testAllWrappedConnectionsClosedAfterActiveURLChange(HAConnectionWithMasterAndRPCRegistryIT.java:383)}}
The second:
{{{}java.util.concurrent.ExecutionException: java.lang.IllegalStateException:
Connection to the cluster is closed
Caused by: java.lang.IllegalStateException: Connection to the cluster is closed
at
org.apache.phoenix.query.ConnectionQueryServicesImpl.throwConnectionClosedExce{}}}e
This is a test race.
*The connection returns early.* The {{ParallelPhoenixConnection}} constructor
starts one connection future for each cluster. Then it calls
{{{}ParallelPhoenixUtil.runFutures{}}}, which returns when one future succeeds.
The other future can still connect.
*The tests change a cluster immediately.* The HA test makes its parallel
connections in a loop, through {{{}getParallelConnection(){}}}. Then it
restarts a cluster immediately. The parallel connection test makes 10
connections in a loop. Then it changes the registry.
*The pending future then fails.*
--
This message was sent by Atlassian Jira
(v10.3.26#10030026)