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

Index mutations should be committed as batches while building local index

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • 4.1.0
    • None
    • None

    Description

      Currently while building local indexes batchSize is 0 so we are not committing the index mutations until full region scan is done and which may cause high memory usage or OOM with huge data.

                              // Commit in batches based on UPSERT_BATCH_SIZE_ATTRIB in config
                              if (!indexMutations.isEmpty() && batchSize > 0 && indexMutations.size() % batchSize == 0) {
                                  HRegion indexRegion = getIndexRegion(c.getEnvironment());
                                  // Get indexRegion corresponding to data region
                                  commitBatch(indexRegion, indexMutations, null);
                                  indexMutations.clear();
                              }
      

      Thanks for finding this mujtabachohan.

      Attachments

        1. PHOENIX-1149.patch
          2 kB
          rajeshbabu

        Issue Links

          Activity

            People

              rajesh23 rajeshbabu
              rajesh23 rajeshbabu
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: