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 subversion and git services (Jira)" <ji...@apache.org> on 2023/03/18 15:53:00 UTC

[jira] [Commented] (ARTEMIS-4211) AMQ222153: Cannot locate record in bidirectional upstream queue federation

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

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

Commit aaa8627795c9b22434a86e00fd7c79289d374393 in activemq-artemis's branch refs/heads/main from Domenico Francesco Bruscino
[ https://gitbox.apache.org/repos/asf?p=activemq-artemis.git;h=aaa8627795 ]

ARTEMIS-4211 Fix record message id for federated queue consumers

The federated queue consumer has to generate a new id for the messages
received from the upstream broker because they have an id generated by
the store manager of the upstream broker.

Co-authored-by: Clebert Suconic <cl...@apache.org>


> AMQ222153: Cannot locate record in bidirectional upstream queue federation
> --------------------------------------------------------------------------
>
>                 Key: ARTEMIS-4211
>                 URL: https://issues.apache.org/jira/browse/ARTEMIS-4211
>             Project: ActiveMQ Artemis
>          Issue Type: Bug
>            Reporter: Domenico Francesco Bruscino
>            Assignee: Domenico Francesco Bruscino
>            Priority: Major
>          Time Spent: 20m
>  Remaining Estimate: 0h
>
> Two consumers of the same queue connected to two distinct federated brokers with a bidirectional upstream queue federation can cause the following error:
> {code:java}
> [Thread-12 (ActiveMQ-IO-server-org.apache.activemq.artemis.core.server.impl.ActiveMQServerImpl$8@3e14c16d)] 17:55:45,171 WARN  [org.apache.activemq.artemis.core.server] AMQ222153: Cannot locate record for message id = 260 on Journal
> java.lang.Exception: trace
> 	at org.apache.activemq.artemis.core.persistence.impl.journal.AbstractJournalStorageManager.messageUpdateCallback(AbstractJournalStorageManager.java:461) ~[classes/:?]
> 	at org.apache.activemq.artemis.core.journal.impl.JournalImpl$3.run(JournalImpl.java:1194) ~[classes/:?]
> 	at org.apache.activemq.artemis.utils.actors.OrderedExecutor.doTask(OrderedExecutor.java:57) ~[classes/:?]
> 	at org.apache.activemq.artemis.utils.actors.OrderedExecutor.doTask(OrderedExecutor.java:32) ~[classes/:?]
> 	at org.apache.activemq.artemis.utils.actors.ProcessorBase.executePendingTasks(ProcessorBase.java:68) ~[classes/:?]
> 	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128) ~[?:?]
> 	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628) ~[?:?]
> 	at org.apache.activemq.artemis.utils.ActiveMQThreadFactory$1.run(ActiveMQThreadFactory.java:118) ~[classes/:?]
> {code}



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