Skip to content

Use clean thread context for transport and applier service (#57792)#57914

Merged
ywelsch merged 2 commits intoelastic:7.xfrom
ywelsch:clean-thread-context-7x
Jun 10, 2020
Merged

Use clean thread context for transport and applier service (#57792)#57914
ywelsch merged 2 commits intoelastic:7.xfrom
ywelsch:clean-thread-context-7x

Conversation

@ywelsch
Copy link
Copy Markdown
Contributor

@ywelsch ywelsch commented Jun 10, 2020

Backport PR

ywelsch added 2 commits June 10, 2020 09:04
…7792)

Adds assertions to Netty to make sure that its threads are not polluted by thread contexts (and
also that thread contexts are not leaked). Moves the ClusterApplierService to use the system
context (same as we do for MasterService), which allows to remove a hack from
TemplateUgradeService and makes it clearer that applying CS updates is fully executing under
system context.
Only assert that actual request headers are empty, as default headers might still be there when stashing the context.
@ywelsch ywelsch merged commit 80f221e into elastic:7.x Jun 10, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant