phoenix-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "James Taylor (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (PHOENIX-2712) Stats doesn't work for multi-tenant view indexes
Date Wed, 24 Feb 2016 04:11:18 GMT

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

James Taylor commented on PHOENIX-2712:
---------------------------------------

FYI, stats are only cached for physical tables by design, but during query compilation, the
physical table is loaded into the cache as well so stats should be easily accessible.

> 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)

Mime
View raw message