[
https://issues.apache.org/jira/browse/ARTEMIS-4821?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
nmeylan updated ARTEMIS-4821:
-----------------------------
Description:
After upgrading from 2.30 to 2.34 one of my test case is failling
{{QueueImpl::getMessageCount()}} does not returns what was expected
See attached Test [^MessageCount235Test.java] case
*testMessageCount_whenFailoverHappenWhileBridgeIsOpen* which is failing, I
attempt other scenario which succeed
I link also [^MessageCount230Test.java] for version 2.30 (it is another file
because due to renaming of master/slave, SimpleString and migration to junit5,
code needs to be adapt), all scenario are succeed
{code:java}
Topology: Simulating DC1 (1 primary + backup pair)
Simulating DC2 1 single primary node
1. Produce messages on dc1Primary1
2. Start a bridge from dc1Primary1 to dc2Primary1
3. Stop dc1Primary1 while transfer has started but not finished
4. dc1Backup1 become alive
5. Start a bridge from dc1Backup1 to dc2Primary1
6. dc2Primary1 has received all messages produced originally
7. Expected: messageCount on dc1Backup1 to be equal to 0, but actual is > 0
Notes: if address is not paging, there is no issue
{code}
After investigation it happen only when address is paging.
Also as I can reproduce only when using bridge it might be due to async
acknowledgement
was:
After upgrading from 2.30 to 2.34 one of my test case is failling
{{QueueImpl::getMessageCount()}} does not returns what was expected
See attached Test [^MessageCount235Test.java] case
*testMessageCount_whenFailoverHappenWhileBridgeIsOpen* which is failing, I
attempt other scenario which succeed
I link also [^MessageCount230Test.java] for version 2.30 (it is another file
because due to renaming of master/slave, SimpleString and migration to junit5,
code need to be adapt), all scenario are succeed
{code:java}
Topology: Simulating DC1 (1 primary + backup pair)
Simulating DC2 1 single primary node
1. Produce messages on dc1Primary1
2. Start a bridge from dc1Primary1 to dc2Primary1
3. Stop dc1Primary1 while transfer has started but not finished
4. dc1Backup1 become alive
5. Start a bridge from dc1Backup1 to dc2Primary1
6. dc2Primary1 has received all messages produced originally
7. Expected: messageCount on dc1Backup1 to be equal to 0, but actual is > 0
Notes: if address is not paging, there is no issue
{code}
After investigation it happen only when address is paging.
Also as I can reproduce only when using bridge it might be due to async
acknowledgement
> Message count is not correct in case of failover while a bridge is open on a
> paging address
> -------------------------------------------------------------------------------------------
>
> Key: ARTEMIS-4821
> URL: https://issues.apache.org/jira/browse/ARTEMIS-4821
> Project: ActiveMQ Artemis
> Issue Type: Bug
> Affects Versions: 2.35.0
> Reporter: nmeylan
> Priority: Major
> Attachments: MessageCount230Test.java, MessageCount235Test.java
>
>
> After upgrading from 2.30 to 2.34 one of my test case is failling
> {{QueueImpl::getMessageCount()}} does not returns what was expected
> See attached Test [^MessageCount235Test.java] case
> *testMessageCount_whenFailoverHappenWhileBridgeIsOpen* which is failing, I
> attempt other scenario which succeed
> I link also [^MessageCount230Test.java] for version 2.30 (it is another file
> because due to renaming of master/slave, SimpleString and migration to
> junit5, code needs to be adapt), all scenario are succeed
>
> {code:java}
> Topology: Simulating DC1 (1 primary + backup pair)
> Simulating DC2 1 single primary node
> 1. Produce messages on dc1Primary1
> 2. Start a bridge from dc1Primary1 to dc2Primary1
> 3. Stop dc1Primary1 while transfer has started but not finished
> 4. dc1Backup1 become alive
> 5. Start a bridge from dc1Backup1 to dc2Primary1
> 6. dc2Primary1 has received all messages produced originally
> 7. Expected: messageCount on dc1Backup1 to be equal to 0, but actual is > 0
> Notes: if address is not paging, there is no issue
> {code}
> After investigation it happen only when address is paging.
> Also as I can reproduce only when using bridge it might be due to async
> acknowledgement
--
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