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

[BUG] Bucket aggregation fails after upgrading from 2.11 to 2.13 in BestBucketsDifferingCollector #14799

Open
harshavamsi opened this issue Jul 17, 2024 · 0 comments
Labels
bug Something isn't working Search:Aggregations

Comments

@harshavamsi
Copy link
Contributor

Describe the bug

After upgrading from 2.11 to 2.13, bucket aggregations queries that previously worked with terminate_after fail with

{"error":{"root_cause":[{"type":"illegal_state_exception","reason":"Cannot replay yet, collection is not finished: postCollect() has not been called"}],"type":"search_phase_execution_exception","reason":"all shards failed","phase":"query","grouped":true,"failed_shards":[{"shard":0,"index":"all_contexts4","node":"7pWVZteZQ9O-_vNCrFhj1Q","reason":{"type":"illegal_state_exception","reason":"Cannot replay yet, collection is not finished: postCollect() has not been called"}}],"caused_by":{"type":"illegal_state_exception","reason":"Cannot replay yet, collection is not finished: postCollect() has not been called","caused_by":{"type":"illegal_state_exception","reason":"Cannot replay yet, collection is not finished: postCollect() has not been called"}}},"status":500}

This is most likely coming from the changes made here https://github.com/opensearch-project/OpenSearch/pull/11421/files#diff-ce7faa9058609579cb9a555e07b5dda7699aef192a9a6252c0fcd0bdee9ff6ebR106

Related component

Search:Aggregations

To Reproduce

example query

"aggs": {
        "header": {
            "terms": {
                "field": "field1",
                "size": 100
            },
            "aggs": {
                "attributes": {
                    "nested": {
                        "path": "header2"
                    },
                    "aggs": {
                        "attribute_name_filter": {
                            "filter": {
                                "prefix": {
                                    "header3": {
                                        "value": "value1",
                                        "case_insensitive": true
                                    }
                                }
                            },
                        }
                    }
                }
            }
        }
    }

Expected behavior

Expected behavior is that the query works as it did in 2.11

Additional Details

Plugins
Please list all plugins currently enabled.

Screenshots
If applicable, add screenshots to help explain your problem.

Host/Environment (please complete the following information):

  • OS: [e.g. iOS]
  • Version [e.g. 22]

Additional context
Add any other context about the problem here.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working Search:Aggregations
Projects
Status: 🆕 New
Development

No branches or pull requests

2 participants