ConcurrentModificationException with EventContextManager and OperationCollector

Description

In EventContextManager#onEventFinished, we have the following code:

The issue is that an OperationCollector entry might be added to the states map in one of the onFinish() call (more specifically the one for the OperationsQueue), thus leading to a ConcurrentModificationException.

Environment

None

Status

Assignee

Guillaume Smet

Reporter

Guillaume Smet

Labels

None

Feedback Requested

None

Feedback Requested By

None

backPortable

None

Suitable for new contributors

None

backportDecision

None

backportReEvaluate

None

Fix versions

Priority

Major
Configure