02579c7acc
As part of authentication, we use a iterating action listener to perform asynchronous authentication against the realm chain. When this listener is called with a response or a failure, it could be called from a thread that is not owned by the Elasticsearch threadpool such as a LDAPConnectionReader thread. When this happens, we need to ensure that the ThreadContext is not left with items in it otherwise we leave behind things like Authentication and hit obscure errors. This commit stores the context when the listener calls the consumer or onResponse/onFailure is invoked, which prevents us from polluting a external thread's ThreadContext. Original commit: elastic/x-pack-elasticsearch@0f50fb6c10 |
||
---|---|---|
.. | ||
bin/x-pack | ||
config/x-pack | ||
keys | ||
licenses | ||
src | ||
NOTICE.txt | ||
build.gradle |