We're updating the issue view to help you get more done. 

CME while calculating Group Cache stats

Description

When calculating the size of the cache entries for a Group, a ConcurrentModificationException can occur (when the group is changed by another thread, while the statistics are being calculated:

Environment

None

Acceptance Test - Entry

None

Activity

Show:
Guus der Kinderen
November 3, 2017, 9:38 AM

Making bits of code synchronized probably won't do, as the collections are iterated over in the inline classes that extend from an abstract that's not thread safe.

Copying the sets before iterating over them still would involve iterating over the collection, that might be modified at at time (although chances are slimmer, as we're not otherwise operating on the data).

Should we use a weakly consistent  instead of a fail-fast, implementation? That'd introduce performance changes.

Assignee

Dave Cridland

Reporter

Guus der Kinderen

Labels

None

Expected Effort

None

Ignite Forum URL

None

Fix versions

Priority

Major
Configure