[ 
https://issues.apache.org/jira/browse/ARTEMIS-2476?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17617178#comment-17617178
 ] 

ASF subversion and git services commented on ARTEMIS-2476:
----------------------------------------------------------

Commit ea04426bcd2b3dab266abd17c2568524a5e3b6b5 in activemq-artemis's branch 
refs/heads/main from Justin Bertram
[ https://gitbox.apache.org/repos/asf?p=activemq-artemis.git;h=ea04426bcd ]

ARTEMIS-4037 refactor MQTTRetainMessageManagerTest

Commit 5a42de5fa6ee1b96f6f3e404f5a3d11a702e1776 called my attention to
this test. It really needs to be refactored because:

 - It belongs in the integration-tests module rather than the MQTT
   protocol module.
 - It is using a lot of non-standard components (e.g.
   EmbeddedJMSResource, Awaitility, etc.).
 - It is overly complicated (e.g. using its own MqttClientService).

This commit resolves all those problems. The new implementation is quite
a bit different but still equivalent. I reverted the original fix from
ARTEMIS-2476 and the test still fails.


> New MQTT subscriptions receive older (not last published) retained message.
> ---------------------------------------------------------------------------
>
>                 Key: ARTEMIS-2476
>                 URL: https://issues.apache.org/jira/browse/ARTEMIS-2476
>             Project: ActiveMQ Artemis
>          Issue Type: Bug
>          Components: MQTT
>    Affects Versions: 2.10.0, 2.10.1
>            Reporter: Assen Sharlandjiev
>            Priority: Blocker
>             Fix For: 2.12.0
>
>          Time Spent: 2h
>  Remaining Estimate: 0h
>
> I have observed that new MQTT subscriptions on a given topic, receive older 
> retained messages. Instead of getting the latest retained message published 
> on the topic, the new subscription received an older message, published 
> before that last one. 
>  
> I have created a [mqtt-test|https://github.com/assens/mqtt-test] project that 
> demonstrated the problem.  Check the readme, and run the Artemis broker test:
>  
> mvn -Dtest=ArtemisTest verify
>  
>  The test project contains multiple MQTT brokers tests. Only Artemis broker 
> tests fail.
>  



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

Reply via email to