Details
-
Bug
-
Status: Resolved
-
Major
-
Resolution: Fixed
-
None
-
None
-
None
Description
Stats are not being correctly collected for local indexes and tables with local indexes, because the logic that deletes the old stats is based on all store families of a table. Thus, when stats are collected for a table with local indexes, the local index stats would be deleted and when the stats for a local index are collected, the stats for the table will be deleted.
Instead, if we cache stats per column family instead of across entire table, plus detect if we're collecting stats for a local index versus the data table, we can fix this issue. Caching stats per column family makes more sense anyway, because depending on the query, we may only use the stats associated with the default column family. Also, we wouldn't want to have to pull over stats for local index with the data table stats.