Skip to content

Conversation

@DaveCTurner
Copy link
Contributor

The get-indices API does some nontrivial work on the master and at high
index counts the response may be very large and could take a long time
to compute. Some clients will time out and retry if it takes too long.
Today this API is not properly cancellable which leads to a good deal of
wasted work in this situation, and the potentially-enormous response is
serialized on a transport worker thread.

With this commit we make the API cancellable and move the serialization
to a MANAGEMENT thread.

Backport of #87681
Relates #77466

The get-indices API does some nontrivial work on the master and at high
index counts the response may be very large and could take a long time
to compute. Some clients will time out and retry if it takes too long.
Today this API is not properly cancellable which leads to a good deal of
wasted work in this situation, and the potentially-enormous response is
serialized on a transport worker thread.

With this commit we make the API cancellable and move the serialization
to a `MANAGEMENT` thread.

Backport of elastic#87681
Relates elastic#77466
@DaveCTurner DaveCTurner added backport auto-merge-without-approval Automatically merge pull request when CI checks pass (NB doesn't wait for reviews!) v7.17.5 labels Jun 16, 2022
@elasticsearchmachine elasticsearchmachine merged commit 021fbeb into elastic:7.17 Jun 16, 2022
@DaveCTurner DaveCTurner deleted the 2022-06-16-backport-87681-7.17 branch June 16, 2022 10:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

auto-merge-without-approval Automatically merge pull request when CI checks pass (NB doesn't wait for reviews!) backport v7.17.5

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants