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

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

                Author: ASF GitHub Bot
            Created on: 22/Nov/21 14:29
            Start Date: 22/Nov/21 14:29
    Worklog Time Spent: 10m 
      Work Description: AntonRoskvist commented on a change in pull request 
#3858:
URL: https://github.com/apache/activemq-artemis/pull/3858#discussion_r754330153



##########
File path: 
tests/integration-tests/src/test/java/org/apache/activemq/artemis/tests/integration/cluster/distribution/MessageRedistributionTest.java
##########
@@ -794,6 +794,46 @@ public void 
testRedistributionOnlyWhenLocalRemovedLbOffWithRedistribution() thro
       verifyReceiveAll(2, 1);
    }
 
+   @Test
+   public void 
testRedistributionToRemoteConsumerFromNewQueueLbOffWithRedistribution() throws 
Exception {
+
+      String address = "test.address";
+      String queue = "test.address";
+      String clusterAddress = "test";
+      AddressSettings settings = new 
AddressSettings().setRedistributionDelay(0).setAutoCreateAddresses(true).setAutoCreateQueues(true);

Review comment:
       That is very interesting, I have yet to see or even make it happen 
here... the test always completes with that assert being met. It's not a 
strictly necessary assert, I added it to make doubly sure there was no initial 
forwarding happening but that is covered in other tests... the "real" 
verification is that all messages sent are also received by the "old" consumer. 
I will have a closer look at that, but otherwise I might just remove that 
assertion if you don't mind?




-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


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

    Worklog Id:     (was: 684739)
    Time Spent: 1h 10m  (was: 1h)

> ARTEMIS-1925 fix does not handle redistribution to "old" consumers
> ------------------------------------------------------------------
>
>                 Key: ARTEMIS-3557
>                 URL: https://issues.apache.org/jira/browse/ARTEMIS-3557
>             Project: ActiveMQ Artemis
>          Issue Type: Bug
>            Reporter: Anton Roskvist
>            Priority: Major
>          Time Spent: 1h 10m
>  Remaining Estimate: 0h
>
> OFF_WITH_REDISTRIBUTION does not handle this scenario:
> If a destination and consumer exist on one node in a cluster and a producer 
> shows up on another node messages will not get redistributed until the old 
> consumer disconnects and reconnects.



--
This message was sent by Atlassian Jira
(v8.20.1#820001)

Reply via email to