Skip to content

Conversation

@DaveCTurner
Copy link
Contributor

Today the CancellableSingleObjectCache completes its listeners in the
thread context of the get() call that actually computes the value
which will be the correct context only if no batching took place. With
this commit we make sure to complete each listener in the context in
which it was passed to the corresponding get() call.

@DaveCTurner DaveCTurner added backport auto-merge-without-approval Automatically merge pull request when CI checks pass (NB doesn't wait for reviews!) v7.17.1 and removed auto-merge-without-approval Automatically merge pull request when CI checks pass (NB doesn't wait for reviews!) labels Jan 26, 2022
Today the `CancellableSingleObjectCache` completes its listeners in the
thread context of the `get()` call that actually computes the value
which will be the correct context only if no batching took place. With
this commit we make sure to complete each listener in the context in
which it was passed to the corresponding `get()` call.
@DaveCTurner DaveCTurner force-pushed the 2022-01-26-backport-83021-7.17 branch from 3d22277 to a66be37 Compare January 26, 2022 17:06
@DaveCTurner DaveCTurner added the auto-merge-without-approval Automatically merge pull request when CI checks pass (NB doesn't wait for reviews!) label Jan 26, 2022
@elasticsearchmachine elasticsearchmachine merged commit 3b494e4 into elastic:7.17 Jan 26, 2022
@DaveCTurner DaveCTurner deleted the 2022-01-26-backport-83021-7.17 branch January 26, 2022 18:44
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.0

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants