You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@aries.apache.org by "Christian Schneider (JIRA)" <ji...@apache.org> on 2018/09/28 10:12:00 UTC

[jira] [Created] (ARIES-1837) ConcurrentModificationException in InterestManager.endpointChanged

Christian Schneider created ARIES-1837:
------------------------------------------

             Summary: ConcurrentModificationException in InterestManager.endpointChanged
                 Key: ARIES-1837
                 URL: https://issues.apache.org/jira/browse/ARIES-1837
             Project: Aries
          Issue Type: Test
          Components: Remote Service Admin
    Affects Versions: rsa-1.12.0
            Reporter: Christian Schneider
            Assignee: Christian Schneider
             Fix For: rsa-1.13.0


In InterestManager.endpointChanged we iterate through the interests in an unsafe way:

        *for* (Interest interest : interests.values())

As interests is a simple HashMap this fails if an endpoint is added or removed while iterating.

I propose to use a ConcurrentHashMap instead to fix this.

 



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)