Synchronization violated for InterfaceToNodeCacheDaoImpl

Description

The implementation contains a mutable cache datastructure. Access to that datastructure is synchronized by a lock. Yet, some methods return iterators based on that datastructure. Pulling from these iterators is no more synchronized.

Acceptance / Success Criteria

None

Lucidchart Diagrams

Activity

Show:

Stefan Wachter December 14, 2021 at 3:08 PM

PR1: https://github.com/OpenNMS/opennms-integration-api/pull/43
(removes InterfaceToNodeCache.getNodeIds from OpenNMS integration API; must be merged first)
PR2: https://github.com/OpenNMS/opennms/pull/3921
(resolves the synchronization issue; must be adapted after API jar has changed)

Fixed

Details

Assignee

Reporter

Story Points

Sprint

Fix versions

Priority

PagerDuty

Created November 26, 2021 at 8:17 AM
Updated January 28, 2022 at 9:09 PM
Resolved December 22, 2021 at 6:00 PM