You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@activemq.apache.org by "Justin Bertram (Jira)" <ji...@apache.org> on 2022/09/14 22:11:00 UTC
[jira] [Commented] (ARTEMIS-3986) Last value errors
[ https://issues.apache.org/jira/browse/ARTEMIS-3986?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17604995#comment-17604995 ]
Justin Bertram commented on ARTEMIS-3986:
-----------------------------------------
Can you provide details regarding how you produced this error? I can see in the code that {{LastValueQueue.hashCode}} is not thread-safe, but I'm curious about why {{hashCode}} is being called in the first place.
> Last value errors
> -----------------
>
> Key: ARTEMIS-3986
> URL: https://issues.apache.org/jira/browse/ARTEMIS-3986
> Project: ActiveMQ Artemis
> Issue Type: Bug
> Affects Versions: 2.25.0
> Reporter: RĂ´mulo Coutinho
> Priority: Major
>
> Last value was not working correctly on version 2.24.0, as posted on https://issues.apache.org/jira/browse/ARTEMIS-3925 . I just tried version 2.25.0 and I am getting lots of errors on the broker:
> {code:java}
> AMQ224016: Caught exception: java.util.ConcurrentModificationException
> at java.base/java.util.HashMap$HashIterator.nextNode(HashMap.java:1597) [java.base:]
> at java.base/java.util.HashMap$EntryIterator.next(HashMap.java:1630) [java.base:]
> at java.base/java.util.HashMap$EntryIterator.next(HashMap.java:1628) [java.base:]
> at java.base/java.util.AbstractMap.hashCode(AbstractMap.java:525) [java.base:]
> at org.apache.activemq.artemis.core.server.impl.LastValueQueue.hashCode(LastValueQueue.java:305) [artemis-server-2.25.0.jar:2.25.0]
> at java.base/java.util.HashMap.hash(HashMap.java:338) [java.base:] {code}
--
This message was sent by Atlassian Jira
(v8.20.10#820010)