Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix static DictionaryIndexConfig.DEFAULT_OFFHEAP being actually onheap #10632

Merged
merged 1 commit into from Apr 18, 2023

Conversation

gortiz
Copy link
Contributor

@gortiz gortiz commented Apr 18, 2023

This is a bugfix. There were two situations where Dictionary reader was loaded offheap before index-spi was merged but loaded onheap after that. All the cases were related to other indexes requiring to have a DictionaryReader to be created, so the issue shouldn't affect queries. The original issue was detected by @jadami10 in #10554 (comment).

The reason was the static final instance DictionaryIndexConfig.DEFAULT_OFFHEAP that was actually configured to load the index onheap. The normal DictionaryIndexConfig.DEFAULT is already offheap, so there is no need to have the incorrect static final.

@codecov-commenter
Copy link

Codecov Report

Merging #10632 (61db808) into master (44fe694) will decrease coverage by 0.05%.
The diff coverage is 0.00%.

@@             Coverage Diff              @@
##             master   #10632      +/-   ##
============================================
- Coverage     27.79%   27.74%   -0.05%     
  Complexity       58       58              
============================================
  Files          2090     2090              
  Lines        112648   112647       -1     
  Branches      16988    16988              
============================================
- Hits          31307    31255      -52     
- Misses        78232    78268      +36     
- Partials       3109     3124      +15     
Flag Coverage Δ
integration1 24.52% <0.00%> (-0.07%) ⬇️
integration2 23.88% <0.00%> (-0.09%) ⬇️

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

Impacted Files Coverage Δ
.../segment/index/dictionary/DictionaryIndexType.java 0.00% <0.00%> (ø)
...t/index/loader/bloomfilter/BloomFilterHandler.java 0.00% <0.00%> (ø)
...pinot/segment/spi/index/DictionaryIndexConfig.java 0.00% <ø> (ø)

... and 53 files with indirect coverage changes

📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more

@Jackie-Jiang Jackie-Jiang merged commit 8903920 into apache:master Apr 18, 2023
12 of 14 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants