You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@activemq.apache.org by "Jean-Pascal Briquet (Jira)" <ji...@apache.org> on 2024/05/02 12:35:00 UTC

[jira] [Comment Edited] (ARTEMIS-4667) JMX Recovery operation triggers ClassCastException

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

Jean-Pascal Briquet edited comment on ARTEMIS-4667 at 5/2/24 12:34 PM:
-----------------------------------------------------------------------

Adding an integration test "ReplayWithReplicationTest.java" to ease the reproduction.

Add it under artemis folder (tested on 2.33.0) :

-> activemq-artemis\tests\integration-tests\src\test\java\org\apache\activemq\artemis\tests\integration\retention

 


was (Author: JIRAUSER303376):
Adding an integration test "ReplayWithReplicationTest.java" to ease the reproduction.

Add it under artemis folder (tested on 2.23.0) :

-> activemq-artemis\tests\integration-tests\src\test\java\org\apache\activemq\artemis\tests\integration\retention

 

> 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
>            Priority: Major
>         Attachments: ReplayWithReplicationTest.java, msg-replay-classcastexception.png
>
>
> *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)