eclipse / microprofile-lra

microprofile-lra
Apache License 2.0
99 stars 30 forks source link

[#323] LRAClientOps using ConcurrentHashMap which takes snapshot for iteration #324

Closed ochaloup closed 4 years ago

ochaloup commented 4 years ago

fixes #323

This is a small fix which makes the cleanUp operation to not throw ConcurrentModificationException as the ConcurrentHashMap takes a snapshot of the map at the start of the iteration and the modification of the map in the background has no impact for finishing of the iteration.