You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@activemq.apache.org by "Jean-Louis Monteiro (Jira)" <ji...@apache.org> on 2026/02/11 13:22:00 UTC

[jira] [Resolved] (AMQ-9847) Fix race condition in QueueZeroPrefetchLazyDispatchPriorityTest causing message count mismatch

     [ https://issues.apache.org/jira/browse/AMQ-9847?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Jean-Louis Monteiro resolved AMQ-9847.
--------------------------------------
      Assignee: Jean-Louis Monteiro
    Resolution: Fixed

> Fix race condition in QueueZeroPrefetchLazyDispatchPriorityTest causing message count mismatch
> ----------------------------------------------------------------------------------------------
>
>                 Key: AMQ-9847
>                 URL: https://issues.apache.org/jira/browse/AMQ-9847
>             Project: ActiveMQ
>          Issue Type: Test
>            Reporter: Jean-Louis Monteiro
>            Assignee: Jean-Louis Monteiro
>            Priority: Major
>             Fix For: 6.3.0
>
>
> With zero-prefetch and lazy dispatch enabled, the test consumes messages before they are fully paged into the queue, resulting in "expected 5 but was 0". Fixed by adding Wait.waitFor() to verify messages are enqueued and available before consuming.                     
>   



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

---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@activemq.apache.org
For additional commands, e-mail: issues-help@activemq.apache.org
For further information, visit: https://activemq.apache.org/contact