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

Chinmay Kulkarni commented on PHOENIX-5103:
-------------------------------------------

Okay there are 2 cases we can split the problem of orphan views into:

1. *4.14 client connecting to a 4.15 server (which has never gotten a 
connection from a 4.15 client):*
- In this case, splitting of SYSCAT is not allowed yet, SYSTEM.TASK does not 
exist and SYSTEM.CHILD_LINK does not exist.
- In this case, can we issue drop of child/grandchild... views synchronously as 
per old 4.14 server logic before dropping the base table?

2. *4.14 client connecting to a 4.15 server (which has previously been 
connected to by a 4.15 client):*
- In this case, SYSCAT may have split, SYSTEM.TASK and SYSTEM.CHILD_LINK exist.
- In this case, we can use the SYSTEM.TASK table to add tasks for 
child-view-drops as per the current 4.15 server-side logic.

This will avoid orphan views for backward compatibility cases too. WDYT 
[~kozdemir] [~tdsilva] 

> Can't create/drop table using 4.14 client against 4.15 server
> -------------------------------------------------------------
>
>                 Key: PHOENIX-5103
>                 URL: https://issues.apache.org/jira/browse/PHOENIX-5103
>             Project: Phoenix
>          Issue Type: Bug
>    Affects Versions: 4.15.0
>            Reporter: Vincent Poon
>            Assignee: Chinmay Kulkarni
>            Priority: Blocker
>             Fix For: 4.15.0, 5.1.0
>
>         Attachments: PHOENIX-5103-4.x-HBase-1.3.patch, 
> PHOENIX-5103-master.patch
>
>          Time Spent: 1h
>  Remaining Estimate: 0h
>
> server is running 4.15 commit e3280f
> Connect with 4.14.1 client.  Create table gives this:
> Caused by: 
> org.apache.hadoop.hbase.ipc.RemoteWithExtrasException(org.apache.hadoop.hbase.TableNotFoundException):
>  org.apache.hadoop.hbase.TableNotFoundException: Table 'SYSTEM:CHILD_LINK' 
> was not found, got: SYSTEM:CATALOG.
>       at 
> org.apache.hadoop.hbase.client.ConnectionManager$HConnectionImplementation.locateRegionInMeta(ConnectionManager.java:1362)
>       at 
> org.apache.hadoop.hbase.client.ConnectionManager$HConnectionImplementation.locateRegion(ConnectionManager.java:1230)
>       at 
> org.apache.hadoop.hbase.client.CoprocessorHConnection.locateRegion(CoprocessorHConnection.java:41)



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

Reply via email to