Skip to content

Conversation

@klsince
Copy link
Contributor

@klsince klsince commented Jul 10, 2024

Add feature flag for two optimizations for TextIndex recently: 1) reuse mutable index when converting mutable segment to immutable segment; 2) use NRT caching for mutable segment.

The feature flags are added to TextIndex config, as listed below

  • reuseMutableIndex
  • luceneNRTCachingDirectoryMaxBufferSizeMB

I set them to false by default so one can enable them incrementally. As those are validated more widely and we can set them to true by default to keep them on by default.

@klsince klsince added enhancement release-notes Referenced by PRs that need attention when compiling the next release notes labels Jul 10, 2024
@codecov-commenter
Copy link

codecov-commenter commented Jul 10, 2024

Codecov Report

Attention: Patch coverage is 70.58824% with 10 lines in your changes missing coverage. Please review.

Project coverage is 62.03%. Comparing base (59551e4) to head (17a0b2f).
Report is 740 commits behind head on master.

Files Patch % Lines
...pache/pinot/segment/spi/index/TextIndexConfig.java 60.00% 8 Missing ⚠️
...me/impl/invertedindex/RealtimeLuceneTextIndex.java 80.00% 1 Missing ⚠️
...ment/creator/impl/text/LuceneTextIndexCreator.java 88.88% 0 Missing and 1 partial ⚠️
Additional details and impacted files
@@             Coverage Diff              @@
##             master   #13577      +/-   ##
============================================
+ Coverage     61.75%   62.03%   +0.28%     
+ Complexity      207      198       -9     
============================================
  Files          2436     2558     +122     
  Lines        133233   140968    +7735     
  Branches      20636    21869    +1233     
============================================
+ Hits          82274    87448    +5174     
- Misses        44911    46883    +1972     
- Partials       6048     6637     +589     
Flag Coverage Δ
custom-integration1 <0.01% <0.00%> (-0.01%) ⬇️
integration <0.01% <0.00%> (-0.01%) ⬇️
integration1 <0.01% <0.00%> (-0.01%) ⬇️
integration2 0.00% <0.00%> (ø)
java-11 62.02% <70.58%> (+0.31%) ⬆️
java-21 27.63% <35.29%> (-34.00%) ⬇️
skip-bytebuffers-false 62.02% <70.58%> (+0.27%) ⬆️
skip-bytebuffers-true 27.63% <35.29%> (-0.10%) ⬇️
temurin 62.03% <70.58%> (+0.28%) ⬆️
unittests 62.02% <70.58%> (+0.28%) ⬆️
unittests1 46.62% <35.29%> (-0.27%) ⬇️
unittests2 27.63% <35.29%> (-0.10%) ⬇️

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@Jackie-Jiang Jackie-Jiang added the Configuration Config changes (addition/deletion/change in behavior) label Jul 11, 2024
@klsince klsince merged commit 4cb27af into apache:master Jul 11, 2024
@klsince klsince deleted the feature_flag_reuse_text_index branch July 11, 2024 00:21
yashmayya pushed a commit to yashmayya/pinot that referenced this pull request Jul 24, 2024
* add feature flag for recent TextIndex optimizations

* expand the reuseParams test data

* add cache size config for NRT cache
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Configuration Config changes (addition/deletion/change in behavior) enhancement release-notes Referenced by PRs that need attention when compiling the next release notes

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants