Details
-
Bug
-
Status: Closed
-
Major
-
Resolution: Fixed
-
None
-
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
Attachments
Issue Links
- is related to
-
PHOENIX-933 Enhance Local index support
- Resolved