[ 
https://issues.apache.org/jira/browse/PHOENIX-4335?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16226372#comment-16226372
 ] 

Samarth Jain commented on PHOENIX-4335:
---------------------------------------

You could possibly spy/mock the ConnectionQueryServicesImpl object and make 
sure that when establishing more than one HConnection to the cluster (by using 
the EXTRA_JDBC_ARGUMENTS param in the connection properties), 
{code}
private void createSnapshot(String snapshotName, String tableName)
            throws SQLException {
{code}

is not called more than once. Such a test will fail without your patch. 

> System catalog snapshot created each time a new connection is created
> ---------------------------------------------------------------------
>
>                 Key: PHOENIX-4335
>                 URL: https://issues.apache.org/jira/browse/PHOENIX-4335
>             Project: Phoenix
>          Issue Type: Bug
>    Affects Versions: 4.12.0
>            Reporter: Mujtaba Chohan
>            Priority: Blocker
>             Fix For: 4.13.0
>
>
> With current head of 4.x, System Catalog snapshot is created on each new 
> connection.



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)

Reply via email to