Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
BlockBasedIndexPopulator#drop free memory and improve test coverage
BlockBasedIndexPopulator - Drop also close bufferFactory to free allocated memory. - Drop and Close steps are run through Runnables.runAll, making sure that we run all steps even if some fail. - Extract method mergeScanUpdates() for readability. - Constructor takes MemoryAllocationTracker to make testing possible. BlockBasedIndexPopulatorTest - Close populator in finally. - Separate initiate populator and add data. - Add tests for memory allocation. GenericBlockBasedPopulatorTest (new) - Make sure external updates are visible to reader, both added before and after scanCompleted.
- Loading branch information
Showing
3 changed files
with
362 additions
and
93 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.