[OPENIDM-10816] Backport OPENIDM-10815: Protect against JDK-8161372 Created: 30/Apr/18  Updated: 08/Jun/18  Resolved: 08/Jun/18

Status: Closed
Project: OpenIDM
Component/s: Module - Core mapping, synchronization, reconciliation
Affects Version/s: OpenIDM 5.5.0
Fix Version/s: OpenIDM 5.5.1.0

Type: Bug Priority: Major
Reporter: Mark Offutt [X] (Inactive) Assignee: patrick diligent
Resolution: Fixed Votes: 0
Labels: Customer, Sustaining, no-release-notes, not-for-release-notes
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Backport
is a backport of OPENIDM-10815 Protect against JDK-8161372 Closed
Target Version/s:
QA Assignee: Jakub Janoska [X] (Inactive)

 Description   

JDK 8 has a bug where concurrent visits to Map#computeIfAbsent could eventually deadlock if the keys are in the map. See https://bugs.openjdk.java.net/browse/JDK-8161372 for a more complete explanation.

An easy solution to guard against this issue is to do a get before the computeIdAbsent so that computeIfAbsent will only happen if the key is not in the map.



 Comments   
Comment by patrick diligent [ 01/May/18 ]

The Meta service does not exist in 5.5 - this fix does not apply

Comment by patrick diligent [ 01/May/18 ]

To update fixed version

 

Comment by Jakub Janoska [X] (Inactive) [ 08/Jun/18 ]

adding label no-release-note

Generated at Sat Feb 27 03:44:28 UTC 2021 using Jira 7.13.12#713012-sha1:6e07c38070d5191bbf7353952ed38f111754533a.