Maryann Xue created PHOENIX-2712:
------------------------------------

             Summary: Stats doesn't work for multi-tenant view indexes
                 Key: PHOENIX-2712
                 URL: https://issues.apache.org/jira/browse/PHOENIX-2712
             Project: Phoenix
          Issue Type: Bug
    Affects Versions: 4.7.0
            Reporter: Maryann Xue
            Assignee: Maryann Xue


Looks like there are two problems:
1) When we do getTable(), we do not retrieve stats if tenantId != null.
2) When we do updateStatistics(), we clear cache based on the table's physical 
name. For multi-tenant view indexes, the physical table name is totally 
unrelated to the logical index table name. We need to do clearCache for the 
logical table name + tenantId as well.

Not sure why, but my test cases used to pass without any fix to the second 
problem, but after my latest sync with master, they don't work any more unless 
I apply a fix for the second problem.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to