powsybl / powsybl-open-rao

A toolbox based on powsybl framework dedicated to power systems coordinated capacity calculation and security analysis projects
Mozilla Public License 2.0
17 stars 6 forks source link

Fix concurrent exceptions due to Map in FlowResultImpl #1118

Closed phiedw closed 2 months ago

phiedw commented 2 months ago

Please check if the PR fulfills these requirements

Does this PR already have an issue describing the problem?

No

What kind of change does this PR introduce?

Bug fix

What is the current behavior?

An exception was sometimes thrown by FlowResultImpl when getting a result from the memoization map.

What is the new behavior (if this is a feature change)? The HashMap has been replaced by a ConcurrentHashMap.

Does this PR introduce a breaking change or deprecate an API?