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

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

                Author: ASF GitHub Bot
            Created on: 16/Jul/24 20:17
            Start Date: 16/Jul/24 20:17
    Worklog Time Spent: 10m 
      Work Description: clebertsuconic commented on code in PR #5092:
URL: https://github.com/apache/activemq-artemis/pull/5092#discussion_r1680017025


##########
artemis-server/src/main/java/org/apache/activemq/artemis/core/replication/ReplicationEndpoint.java:
##########
@@ -831,8 +830,8 @@ private void handlePageEvent(final 
ReplicationPageEventMessage packet) throws Ex
    private void handlePageWrite(final ReplicationPageWriteMessage packet) 
throws Exception {
       PagedMessage pgdMessage = packet.getPagedMessage();
       pgdMessage.initMessage(storageManager);
-      Message msg = pgdMessage.getMessage();
-      Page page = getPage(msg.getAddressSimpleString(), 
packet.getPageNumber());
+      SimpleString address = packet.getAddress();
+      Page page = getPage(address, packet.getPageNumber());

Review Comment:
   thanks 





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

    Worklog Id:     (was: 926224)
    Time Spent: 0.5h  (was: 20m)

> Mirroring and Replication do not work in combination
> ----------------------------------------------------
>
>                 Key: ARTEMIS-4925
>                 URL: https://issues.apache.org/jira/browse/ARTEMIS-4925
>             Project: ActiveMQ Artemis
>          Issue Type: Bug
>    Affects Versions: 2.35.0
>            Reporter: Clebert Suconic
>            Priority: Major
>             Fix For: 2.36.0
>
>          Time Spent: 0.5h
>  Remaining Estimate: 0h
>
> Mirror and replication will not work in combination.
> When I first developed mirroring I thought mirroring would be a replacement 
> on replication and people would not really mix both. However users reported 
> me about a setup where they use replication in a local setup, and mirror for 
> DR and that caused issues.
> Basically when paging, the write of the page will fail under replication, 
> because the message on the SNF for mirror will have a different address then 
> where it's stored, and that will cause issues in the process such as file 
> leaks and wrong writes.



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

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]
For further information, visit: https://activemq.apache.org/contact


Reply via email to