Skip to content

[8.x] Rare terms aggregation false **positive** fix (#126884) #127358

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

Merged
merged 1 commit into from
Apr 25, 2025

Conversation

nik9000
Copy link
Member

@nik9000 nik9000 commented Apr 24, 2025

Backports the following commits to 8.x:

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);
        }
```
@nik9000 nik9000 added :Analytics/Aggregations Aggregations >bug auto-merge-without-approval Automatically merge pull request when CI checks pass (NB doesn't wait for reviews!) backport external-contributor Pull request authored by a developer outside the Elasticsearch team Team:Analytics Meta label for analytical engine team (ESQL/Aggs/Geo) labels Apr 24, 2025
@nik9000
Copy link
Member Author

nik9000 commented Apr 25, 2025

The windows failures look to be missing jdks.

@nik9000 nik9000 merged commit d55b618 into elastic:8.x Apr 25, 2025
13 of 16 checks passed
@nik9000 nik9000 deleted the backport/8.x/pr-126884 branch April 25, 2025 17:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
:Analytics/Aggregations Aggregations auto-merge-without-approval Automatically merge pull request when CI checks pass (NB doesn't wait for reviews!) backport >bug external-contributor Pull request authored by a developer outside the Elasticsearch team Team:Analytics Meta label for analytical engine team (ESQL/Aggs/Geo) v8.19.0
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants