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
Fixed

Assignee

Guillaume Smet

Reporter

Guillaume Smet