[
https://issues.apache.org/jira/browse/AMQ-9595?focusedWorklogId=938991&page=com.atlassian.jira.plugin.system.issuetabpanels:worklog-tabpanel#worklog-938991
]
ASF GitHub Bot logged work on AMQ-9595:
---------------------------------------
Author: ASF GitHub Bot
Created on: 18/Oct/24 22:38
Start Date: 18/Oct/24 22:38
Worklog Time Spent: 10m
Work Description: Nikita-Shupletsov opened a new pull request, #1324:
URL: https://github.com/apache/activemq/pull/1324
**What problems does this PR solve?**
Fixes a bug when a durable consumer can received messages which it's already
acknowledged
**Why is it beneficial to merge into ActiveMQ?**
It fixes a bug
**How do you make sure this PR is well tested?**
I couldn't find any tests that test that part of code directly. I wrote a
high level integration test that covers that edge case.
Issue Time Tracking
-------------------
Worklog Id: (was: 938991)
Remaining Estimate: 0h
Time Spent: 10m
> Durable subscriber receives acknowledge messages if there are farther than
> the maxBatchSize
> -------------------------------------------------------------------------------------------
>
> Key: AMQ-9595
> URL: https://issues.apache.org/jira/browse/AMQ-9595
> Project: ActiveMQ Classic
> Issue Type: Bug
> Components: KahaDB
> Affects Versions: 6.1.3, 5.18.6
> Reporter: Nikita Shupletsov
> Priority: Major
> Attachments: DurableSubscriptionPartialAckTest_test.patch
>
> Time Spent: 10m
> Remaining Estimate: 0h
>
> Let's say we have a topic with 2 durable subscribers:
> * we send 10000 messages to the topic.
> * First subscriber receives all messages, and acknowledges every second of
> them(0th, 2nd, 4th and so on)
> * Second subscriber doesn't acknowledge anything
> * we restart the broker
> * first subscriber connects to the broker and starts receiving messages
> * at first it receives correct messages(1st, 3rd, 5th and so on), but at
> some point it starts receiving all messages(400th, 401st, 402nd and so on).
> See a test in the attachment
--
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