OpenSearch/plugin
Jay Modi 02579c7acc IteratingActionListener should store context before calling consumers (elastic/x-pack-elasticsearch#675)
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
2017-03-01 10:40:42 -05:00
..
bin/x-pack Rename core plugin and transport dirs 2017-02-10 11:02:42 -08:00
config/x-pack Rename core plugin and transport dirs 2017-02-10 11:02:42 -08:00
keys Rename core plugin and transport dirs 2017-02-10 11:02:42 -08:00
licenses Watcher: Add license files (elastic/x-pack-elasticsearch#619) 2017-02-23 10:24:16 +01:00
src IteratingActionListener should store context before calling consumers (elastic/x-pack-elasticsearch#675) 2017-03-01 10:40:42 -05:00
NOTICE.txt Rename core plugin and transport dirs 2017-02-10 11:02:42 -08:00
build.gradle Build: Convert integ test dsl to new split cluster/runner dsl 2017-02-22 00:56:52 -08:00