Skip to content

PHOENIX-5470 Tool to find view corruption#585

Closed
yanxinyi wants to merge 1 commit intoapache:4.x-HBase-1.3from
yanxinyi:PHOENIX-5470-4.x-HBase-1.3
Closed

PHOENIX-5470 Tool to find view corruption#585
yanxinyi wants to merge 1 commit intoapache:4.x-HBase-1.3from
yanxinyi:PHOENIX-5470-4.x-HBase-1.3

Conversation

@yanxinyi
Copy link
Contributor

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.

@yanxinyi
Copy link
Contributor Author

close this PR since I plan to implement this tool as part of phck.

@yanxinyi yanxinyi closed this Apr 10, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant