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

Index Rebuilder scan increases data table region split time

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 4.14.1
    • 4.15.0, 5.1.0, 4.14.2
    • None
    • None

    Description

      lhofhansl vincentpoon tdsilva please review

      In order to differentiate between the index rebuilder retries  (UngroupedAggregateRegionObserver.rebuildIndices()) and commits that happen in the loop of UngroupedAggregateRegionObserver.doPostScannerOpen() as part of  PHOENIX-4600 blockingMemstoreSize was set to -1 for rebuildIndices;

      commitBatchWithRetries(region, mutations, -1);

      blocks the region split as the check for region closing does not happen  blockingMemstoreSize > 0

      for (int i = 0; blockingMemstoreSize > 0 && region.getMemstoreSize() > blockingMemstoreSize && i < 30; i++) {
        try{
         checkForRegionClosing();
         ....
      

      Plan is to have the check for region closing at least once before committing the batch

      checkForRegionClosing();
      for (int i = 0; blockingMemstoreSize > 0 && region.getMemstoreSize() > blockingMemstoreSize && i < 30; i++) {
        try{
         checkForRegionClosing();
         ....
      

      Steps to reproduce
      1. Create a table with one index (startime)
      2. Add 1-2 million rows
      3. Wait till the index is active
      4. Disable the index with start time (noted in step 1)
      5. Once the rebuilder starts split data table region

      Repeat the steps again after applying the patch to check the difference.

      Attachments

        1. PHOENIX-5137-4.14-Hbase-1.3.01.patch
          1 kB
          Kiran Kumar Maturi
        2. PHOENIX-5137-4.14-Hbase-1.3.01.patch
          1 kB
          Kiran Kumar Maturi
        3. PHOENIX-5137-4.14-HBase-1.3.02.patch
          5 kB
          Kiran Kumar Maturi
        4. PHOENIX-5137-4.x-HBase-1.3.01.patch
          5 kB
          Kiran Kumar Maturi
        5. PHOENIX-5137-master.01.patch
          5 kB
          Kiran Kumar Maturi

        Activity

          People

            kiran.maturi Kiran Kumar Maturi
            kiran.maturi Kiran Kumar Maturi
            Votes:
            0 Vote for this issue
            Watchers:
            7 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: