[ 
https://issues.apache.org/jira/browse/ARTEMIS-4667?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17854561#comment-17854561
 ] 

ASF subversion and git services commented on ARTEMIS-4667:
----------------------------------------------------------

Commit 7f038de9ad0d999044749c6ab398ef2f2d8dee5f in activemq-artemis's branch 
refs/heads/main from Clebert Suconic
[ https://gitbox.apache.org/repos/asf?p=activemq-artemis.git;h=7f038de9ad ]

ARTEMIS-4667 Fixing replay manager with replication on the large message case


> JMX Recovery operation triggers ClassCastException
> --------------------------------------------------
>
>                 Key: ARTEMIS-4667
>                 URL: https://issues.apache.org/jira/browse/ARTEMIS-4667
>             Project: ActiveMQ Artemis
>          Issue Type: Bug
>          Components: Broker
>    Affects Versions: 2.30.0
>            Reporter: Jean-Pascal Briquet
>            Assignee: Clebert Suconic
>            Priority: Major
>             Fix For: 2.36.0
>
>         Attachments: ReplayWithReplicationTest.java, 
> msg-replay-classcastexception.png
>
>          Time Spent: 0.5h
>  Remaining Estimate: 0h
>
> *Description:*
> Impossibility to replay messages from retention folders due to a 
> ClassCastException.
> It happens when replication ha-policy is configured and after the live role 
> switch back from the backup node to the primary node:
>  
> {code:java}
> java.lang.ClassCastException : class 
> org.apache.activemq.artemis.core.replication.ReplicatedJournal cannot be cast 
> to class org.apache.activemq.artemis.core.journal.impl.JournalImpl 
> (org.apache.activemq.artemis.core.replication.ReplicatedJournal and 
> org.apache.activemq.artemis.core.journal.impl.JournalImpl are in unnamed 
> module of loader java.net.URLClassLoader @73d16e93){code}
>  
> See attached screenshot of the Artemis console for additional details.
>  
> *Configuration details:*
>  * Cluster of Artemis primary/backup groups and with replication ha-policy 
> (ZK)
>  
> *Reproduction scenario:*
> With a brand new primary/backup group with replica :
>  * Start primary and backup nodes
>  * The JMX replay command works well on primary
>  * Stop the primary node, backup becomes live
>  * Restart the primary, it becomes live again (failback is enabled)
>  * At this step, the reuse of the replay command on the primary trigger the 
> ClassCastException
>  



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscr...@activemq.apache.org
For additional commands, e-mail: issues-h...@activemq.apache.org
For further information, visit: https://activemq.apache.org/contact


Reply via email to