-
Notifications
You must be signed in to change notification settings - Fork 25k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Check formatting of after keys at construction time (#94979)
Composite after_keys are currently only formatted when they are serialized to xcontent, meaning that a key that cannot be formatted will not be caught until after all the results from an aggregation have been reduced. This wastes CPU time, and also blocks any move to chunked xcontent handling in search responses. This commit moves formatting of an after_key into InternalComposite's constructor, catching these errors earlier. Resolves #94760
- Loading branch information
1 parent
400b7ec
commit 092fa8d
Showing
2 changed files
with
31 additions
and
13 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters