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

LocalIndexes could fail if your data row is not in the same region as your index region

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Open
    • Priority: Major
    • Resolution: Unresolved
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: None
    • Labels:
      None

      Description

      This is not likely to happen, but if this does your data table and index write will never succeed.

      In HRegion.doMiniBatchMutation()
      You create index rows in the preBatchMutate() then when you call checkRow() on that index row the exception will bubble up if the index row is not in the same region as your data row.

      Like I said this is unlikely, but you would have to do a region merge to fix this issue if encountered.

      Vincent Poon has a test which he will attach to this JIRA showing an example how this can happen. The write will never succeed unless you merge regions if this ever happens.

        Attachments

        1. LocalIndexIT.java
          37 kB
          Vincent Poon

          Issue Links

            Activity

              People

              • Assignee:
                rajeshbabu Rajeshbabu Chintaguntla
                Reporter:
                churromorales churro morales
              • Votes:
                0 Vote for this issue
                Watchers:
                6 Start watching this issue

                Dates

                • Created:
                  Updated: