You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@activemq.apache.org by "ASF GitHub Bot (Jira)" <ji...@apache.org> on 2022/09/15 03:44:00 UTC

[jira] [Work logged] (ARTEMIS-3986) Last value errors

     [ https://issues.apache.org/jira/browse/ARTEMIS-3986?focusedWorklogId=808954&page=com.atlassian.jira.plugin.system.issuetabpanels:worklog-tabpanel#worklog-808954 ]

ASF GitHub Bot logged work on ARTEMIS-3986:
-------------------------------------------

                Author: ASF GitHub Bot
            Created on: 15/Sep/22 03:43
            Start Date: 15/Sep/22 03:43
    Worklog Time Spent: 10m 
      Work Description: jbertram opened a new pull request, #4218:
URL: https://github.com/apache/activemq-artemis/pull/4218

   The map used by LastValueQueue was inadvertently changed to a non-thread-safe implementation in
   4a4765c39cb73438ea2199b6e0937566d3556c10. This resulted in an occasional ConcurrentModificationException from the hashCode implementation.
   
   This commit restores the thread-safe map implementation and adds a test which brute-forces a CME when using the non-thread-safe implementation.




Issue Time Tracking
-------------------

            Worklog Id:     (was: 808954)
    Remaining Estimate: 0h
            Time Spent: 10m

> 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
>          Time Spent: 10m
>  Remaining Estimate: 0h
>
> 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)