You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@phoenix.apache.org by GitBox <gi...@apache.org> on 2019/09/12 02:17:36 UTC

[GitHub] [phoenix] yanxinyi opened a new pull request #585: PHOENIX-5470 Tool to find view corruption

yanxinyi opened a new pull request #585: PHOENIX-5470 Tool to find view corruption
URL: https://github.com/apache/phoenix/pull/585
 
 
   After 4.14, we enabled CHILD_LINK and changed the behavior of SYSCAT, so 4.15 branches have a different implementation. The logic as following:
   1. get all tables to a list.
   2. iterate all tables and find direct child/children from CHILD_LINK table.
   3. for each child view, we compare SELECT COUNT column from SYSCAT + parent.COLUMN_COUNT with child view COLUMN_COUNT.
   
   This groud buildup logic can help us find a view of corruption with pruning. If we have a corrupted global view with 1000 view on top of it, this algorithm will not waste of time to iterate 1000 views. Instead, it stops immediately and adds a corrupted view to the result list.
   

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services