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

Thomas D'Silva commented on PHOENIX-4893:
-----------------------------------------

We call ViewFinder.findRelatedViews() when adding a column to a base table to 
validate that if the same column exists in a child view the types etc are the 
same. This code can be moved client side. 
When we drop a base table we no longer drop child all the child views (whenever 
a child view is resolved we resolve the parent and if its doesn't exist we 
throw a TableNotFoundException). 
When we create a table we need to check if there are any orphaned child views 
and drop them, so we call ViewFinder.findRelatedViews(). 
ViewFinder.findRelatedViews() will also be called to clean up child views of a 
parent table that has been dropped (as part of PHOENIX-4764). 

> Phoenix scans SYSCAT region from RegionServerCoprocessor
> --------------------------------------------------------
>
>                 Key: PHOENIX-4893
>                 URL: https://issues.apache.org/jira/browse/PHOENIX-4893
>             Project: Phoenix
>          Issue Type: Bug
>            Reporter: Lars Hofhansl
>            Priority: Major
>
> In a stack trace I see that phoenix.coprocessor.ViewFinder.findRelatedViews() 
> scans SYSCAT. With splittable SYSCAT which now involves regions from other 
> servers.
> We should really push this to the client now.
> Related to HBASE-21166
> [~tdsilva]



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

Reply via email to