Uploaded image for project: 'Phoenix'
  1. Phoenix
  2. PHOENIX-3361

Collect stats correctly for local indexes

Attach filesAttach ScreenshotVotersWatch issueWatchersCreate sub-taskLinkCloneUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • None
    • 4.9.0
    • 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.

      Attachments

        1. PHOENIX-3361.patch
          120 kB
          James R. Taylor
        2. PHOENIX-3361_wip2.patch
          82 kB
          James R. Taylor
        3. PHOENIX-3361_wip.patch
          81 kB
          James R. Taylor

        Activity

          This comment will be Viewable by All Users Viewable by All Users
          Cancel

          People

            jamestaylor James R. Taylor
            jamestaylor James R. Taylor
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Slack

                Issue deployment