-
Notifications
You must be signed in to change notification settings - Fork 25.2k
Rare terms aggregation false **positive** fix #126884
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
Conversation
Pinging @elastic/es-analytical-engine (Team:Analytics) |
hello there, it's about a week since this pr was created, can anyone review this please? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good. I'm going to make the robot happy and get this in.
Changelogbot, I've pushed a changelog. |
@iamgd67, what version are you using? |
Sorry for the long delay. Busy looking at very different areas, but yeah. Well done. Thanks for waiting! |
elasticmachine, test this please |
elasticmachine test this please |
buildkite run elasticsearch-ci |
buildkite test this |
buildkite test this |
I found that `rare_terms` aggregation can return **false positive** results (some of the returned results are not real). I traced it down and find out it's a bug in `CuckooFilter`'s merge methord. ``` if (isSetMode == false && other.isSetMode) { other.hashes.forEach(this::add); } ``` should be ``` if (isSetMode == false && other.isSetMode) { other.hashes.forEach(this::addHash); } ```
I found that `rare_terms` aggregation can return **false positive** results (some of the returned results are not real). I traced it down and find out it's a bug in `CuckooFilter`'s merge methord. ``` if (isSetMode == false && other.isSetMode) { other.hashes.forEach(this::add); } ``` should be ``` if (isSetMode == false && other.isSetMode) { other.hashes.forEach(this::addHash); } ```
I found that `rare_terms` aggregation can return **false positive** results (some of the returned results are not real). I traced it down and find out it's a bug in `CuckooFilter`'s merge methord. ``` if (isSetMode == false && other.isSetMode) { other.hashes.forEach(this::add); } ``` should be ``` if (isSetMode == false && other.isSetMode) { other.hashes.forEach(this::addHash); } ```
I found that `rare_terms` aggregation can return **false positive** results (some of the returned results are not real). I traced it down and find out it's a bug in `CuckooFilter`'s merge methord. ``` if (isSetMode == false && other.isSetMode) { other.hashes.forEach(this::add); } ``` should be ``` if (isSetMode == false && other.isSetMode) { other.hashes.forEach(this::addHash); } ``` Co-authored-by: iamgd67 <[email protected]>
I found that `rare_terms` aggregation can return **false positive** results (some of the returned results are not real). I traced it down and find out it's a bug in `CuckooFilter`'s merge methord. ``` if (isSetMode == false && other.isSetMode) { other.hashes.forEach(this::add); } ``` should be ``` if (isSetMode == false && other.isSetMode) { other.hashes.forEach(this::addHash); } ``` Co-authored-by: iamgd67 <[email protected]>
thanks for your review and merge. I am using 7.17.8 |
I found that `rare_terms` aggregation can return **false positive** results (some of the returned results are not real). I traced it down and find out it's a bug in `CuckooFilter`'s merge methord. ``` if (isSetMode == false && other.isSetMode) { other.hashes.forEach(this::add); } ``` should be ``` if (isSetMode == false && other.isSetMode) { other.hashes.forEach(this::addHash); } ``` Co-authored-by: iamgd67 <[email protected]>
Oof. The earliest version I can get this to is 8.17. I've already got it back to 8.18 but would have to manaully pull it one more back if you want it there. Sorry. |
I found that
rare terms aggregation
can return false positive results (some of the returned results are not real rear).I traced it down and find out it's a bug in
CuckooFilter
's merge methord.should be