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
[TEST] NPE with seed ED695B6A3A249CA6 #6211
Conversation
With -Dtests.seed=ED695B6A3A249CA6, in `FreqTermsEnumTests` term has been skipped so not available in reference array.
I don't think this should go in as I think it is masking something fishy. If I run the unmodified master test and remove the "if(rarely()" around the writer commit calls the test passes with this seed. If I leave the "rarely" bit in we have issues with deleted items and this seed. |
I think this is actually a bug in the test code
or fix the test to just ignore that in the filtered case:
or alternatively
|
+1 to not reporting a term as live if it has a freq of 0. |
I agree with @jpountz we should not report the term as live. If we do this we should also fix given that this is new I guess we should fix it for |
I opened #6221 to fix this... |
Cool. Closing this one. |
FilterableTermsEnum allows to filter stats by supplying per segment bits. Today if all docs are filtered out the term is still reported as live but shouldn't. Relates to elastic#6211
FilterableTermsEnum allows to filter stats by supplying per segment bits. Today if all docs are filtered out the term is still reported as live but shouldn't. Relates to #6211
With -Dtests.seed=ED695B6A3A249CA6, in
FreqTermsEnumTests
term has been skipped so not available in reference array.