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

Local indexes get out of sync after changes for global consistent indexes

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Blocker
    • Resolution: Fixed
    • 4.15.0, 5.1.0, 4.16.0
    • 5.1.0, 4.16.0
    • None
    • None

    Description

       > select /*+ NO_INDEX */ count(*) from test;
      +----------+
      | COUNT(1) |
      +----------+
      | 522244   |
      +----------+
      1 row selected (1.213 seconds)
      
      > select count(*) from test;
      +---------+
      | COUNT(1) |
      +----------+
      | 522245   |
      +----------+
      1 row selected (1.23 seconds)
      
      

       

      This was after I did some insert and a bunch of splits (but not in parallel).

      It's not, yet, clear under what circumstances that exactly happens. Just that after a while it happens.

      This is Phoenix built from master and HBase built from branch-2.3. (Client and server versions of HBase are matching).

      I've since tried with Phoenix 4.x and see the same issue - also see attached tests.

      Attachments

        1. 6090-final-master.txt
          10 kB
          Lars Hofhansl
        2. 6090-fix-4.x.txt
          7 kB
          Lars Hofhansl
        3. 6090-fix-v2-4.x.txt
          6 kB
          Lars Hofhansl
        4. 6090-fix-v3-4.x.txt
          7 kB
          Lars Hofhansl
        5. 6090-fix-v4-4.x.txt
          10 kB
          Lars Hofhansl
        6. 6090-test-4.x.txt
          2 kB
          Lars Hofhansl
        7. 6090-test-v2-4.x.txt
          2 kB
          Lars Hofhansl

        Activity

          People

            larsh Lars Hofhansl
            larsh Lars Hofhansl
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: