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

too many clause in OpenSearch #2809

Open
chibenwa opened this issue Apr 16, 2024 · 1 comment
Open

too many clause in OpenSearch #2809

chibenwa opened this issue Apr 16, 2024 · 1 comment
Labels
bug Something isn't working Minor

Comments

@chibenwa
Copy link
Member

Description

org.opensearch.client.ResponseException: method [POST], host [https://100.96.74.153:9200], URI [/read-mailbox/_search?scroll=1m&typed_keys=true], status line [HTTP/1.1 500 Internal Server Error]
{"error":{"root_cause":[{"type":"too_many_clauses","reason":"too_many_clauses: maxClauseCount is set to 1024"},{"type":"too_many_clauses","reason":"maxClauseCount is set to 1024"}],"type":"search_phase_execution_exception","reason":"all shards failed","phase":"query","grouped":true,"failed_shards":[{"shard":3,"index":"mailbox_v2","node":"M1WBnL5MTLWd4DkhxpwiLA","reason":{"type":"too_many_clauses","reason":"too_many_clauses: maxClauseCount is set to 1024"}},{"shard":1,"index":"mailbox_v2","node":"3isLBh-mQT2Tr07r79OTIA","reason":{"type":"too_many_clauses","reason":"maxClauseCount is set to 1024"}}]},"status":500}
	at org.opensearch.client.RestClient.convertResponse(RestClient.java:375)

Reported on backend side.

First thought it was a backend bug linked to right management pushimg mailbox list onto the search index

But apache/james-project#2198 failed at reproducing it and the user for who this happens only have around one hundred mailbox.

Thus I believe somewhere in the tmail app we put too many search clause.

@chibenwa chibenwa added bug Something isn't working Minor labels Apr 16, 2024
@chibenwa
Copy link
Member Author

Question is: what could cause the frontend to pass 1024+ filters?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working Minor
Projects
None yet
Development

No branches or pull requests

1 participant