-
Notifications
You must be signed in to change notification settings - Fork 24.9k
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
Reduce memory required for search responses when many shards are unavailable #91365
Reduce memory required for search responses when many shards are unavailable #91365
Conversation
Hi @benwtrent, I've created a changelog YAML for you. |
@elasticmachine update branch |
…-shards-unavailable
…vailable' of github.com:benwtrent/elasticsearch into feature/search-improve-performance-when-many-shards-unavailable
…ove-performance-when-many-shards-unavailable
Pinging @elastic/es-search (Team:Search) |
server/src/main/java/org/elasticsearch/ElasticsearchException.java
Outdated
Show resolved
Hide resolved
…ove-performance-when-many-shards-unavailable
server/src/main/java/org/elasticsearch/action/NoShardAvailableActionException.java
Outdated
Show resolved
Hide resolved
server/src/main/java/org/elasticsearch/action/NoShardAvailableActionException.java
Outdated
Show resolved
Hide resolved
run elasticsearch-ci/docs |
@elasticmachine update branch |
…-shards-unavailable
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.
this looks good, the only bit I would add is a test that verifies that the actual search code throws the right exception, which may get lost over time. Perhaps it's something that we could add to AbstractSearchAsyncActionTests ?
…ove-performance-when-many-shards-unavailable
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.
LGTM thanks @benwtrent !
I would propose backporting this to 8.6, I added the relevant label. |
@elasticmachine update branch |
…-shards-unavailable
run elasticsearch-ci/bwc |
💚 Backport successful
|
…ailable (elastic#91365) When there are many shards unavailable, we repeatably store the exact same stack trace and exception. The only difference is the exception message. This commit fixes this by slightly modifying the created exception to not provide a stacktrace or print its stacktrace as a "reason" when a shard is unavailable. closes elastic#90622
…ailable (#91365) (#92907) When there are many shards unavailable, we repeatably store the exact same stack trace and exception. The only difference is the exception message. This commit fixes this by slightly modifying the created exception to not provide a stacktrace or print its stacktrace as a "reason" when a shard is unavailable. closes #90622
When there are many shards unavailable, we repeatably store the exact same stack trace and exception. The only difference is the exception message.
This commit fixes this by slightly modifying the created exception to not provide a stacktrace or print its stacktrace as a "reason" when a shard is unavailable.
closes #90622