You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@phoenix.apache.org by "Maryann Xue (JIRA)" <ji...@apache.org> on 2016/02/26 15:09:18 UTC

[jira] [Resolved] (PHOENIX-2712) Stats doesn't work for multi-tenant view indexes

     [ https://issues.apache.org/jira/browse/PHOENIX-2712?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Maryann Xue resolved PHOENIX-2712.
----------------------------------
    Resolution: Not A Problem

I no longer use the PTableStats object in PTable now for getting the row count of a table (not a tablescan). Instead I get the stats for a table the same way I do for a tablescan.

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