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

Local indexing broken by manually splitting table at arbitrary point

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Open
    • Major
    • Resolution: Unresolved
    • 5.2.0
    • None
    • core
    • None

    Description

      While working on PHOENIX-6587, I found that splitting tables with local indexes on certain points will break the local indexing code, and result in incorrect query results.

      When a table is pre-split by Phoenix, or automatically split by HBase, then split points always have a minimum length that is equal to the possible minimum length of the table rowkey. 
      The automatic split always happens at an existing rowkey, and SchemaUtil.processSplits() has code that approximates the same behaviour for pre-split tables.

      However, it is still possible to split the table manually from HBase at points that do not satisfy the above requirement, which breaks local indexing.

      Attachments

        1. PHOENIX-6673-repro.patch
          7 kB
          Istvan Toth

        Issue Links

          Activity

            People

              Unassigned Unassigned
              stoty Istvan Toth
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated: