Skip to content

Investigate thread context correctness for batched listeners  #85225

Open
@albertzaharovits

Description

@albertzaharovits

In ES core, there is the GroupedActionListener which is a delegating action listener.
GroupedActionListener#onResponse is to be invoked multiple times (configurable) under any context.
The last invocation's context is the one that will be used to call on the delegate listener.
We should implement some guardrails to prevent that the delegate listener is invoked under different contexts depending on the order of the GroupedActionListener#onResponse invocations.

The above is just a particular example. There are probably multiple ways where listeners are batched which are then executed under the same context, although they might have been batched under different contexts, eg ActionListener#onResponse(Iterable<ActionListener<Response>>, Response).

Related:
#83019
#83021
#83035

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions