Andrew Kyle Purtell created PHOENIX-8082:
--------------------------------------------

             Summary: BackwardCompatibilityIT reuses a cached connection after 
a ZK port is reused
                 Key: PHOENIX-8082
                 URL: https://issues.apache.org/jira/browse/PHOENIX-8082
             Project: Phoenix
          Issue Type: Bug
          Components: test
    Affects Versions: 5.3.2
            Reporter: Andrew Kyle Purtell
            Assignee: Andrew Kyle Purtell
             Fix For: 5.4.0, 5.3.3


{{BackwardCompatibilityIT.testCreateDivergedViewWithNewClientReadFromOldClient}}
 failed in a master branch build:

{{org.apache.phoenix.exception.PhoenixIOException: SYSTEM.CATALOG
        at 
org.apache.phoenix.util.ClientUtil.parseServerException(ClientUtil.java:71)
        ...
        at 
org.apache.phoenix.query.ConnectionQueryServicesImpl.createTable(ConnectionQueryServicesImpl.java:2696)
        at 
org.apache.phoenix.schema.MetaDataClient.createTableInternal(MetaDataClient.java:3814)
        ...
        at 
org.apache.phoenix.end2end.BackwardCompatibilityTestUtil.executeQueriesWithCurrentVersion(BackwardCompatibilityTestUtil.java:381)
        at 
org.apache.phoenix.end2end.BackwardCompatibilityIT.testCreateDivergedViewWithNewClientReadFromOldClient(BackwardCompatibilityIT.java:196)
        ...
Caused by: org.apache.hadoop.hbase.TableNotFoundException: SYSTEM.CATALOG
        at 
org.apache.hadoop.hbase.client.ConnectionImplementation.getTableState(ConnectionImplementation.java:2328)}}

In the same fork, two mini clusters got the same ZooKeeper client port, 53783. 
They started at 00:46:56 and at 01:37:19. After the second start, the new 
client logged {{{}Found quorum: localhost:53783:/hbase{}}}. It then logged 
{{{}Not trying to connect to ...:41177 this server is in the failed servers 
list{}}}. Port 41177 was the master port of the earlier cluster.

The test reuses a cached, initialized {{ConnectionQueryServices}} (CQS) of a 
stopped cluster. 

This is a test issue, not a product defect.



--
This message was sent by Atlassian Jira
(v10.3.26#10030026)

Reply via email to