activemq-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Stefan Nilsson (JIRA)" <j...@apache.org>
Subject [jira] [Updated] (AMQ-6575) Retained messages not persisted? (MQTT)
Date Sat, 21 Jan 2017 20:19:26 GMT

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

Stefan Nilsson updated AMQ-6575:
--------------------------------
    Description: 
*Issue*
Retained message is not persisted.

*Steps to reproduce*
# Client *c1* connects and publishes a message *m1* to topic *t1*  with retain: *true* and
QoS: *2*. Client then disconnects.
# Client connect (with same clientId or different, both works) and *c1* subscribes to *t1*.
*c1* recieves *m1*.
However, if the broker is restarted and *step 2* is re-run, the *m1* is never recieved.

Shouldn't a retained message with QoS-2 be persisted and send to clients even after restart?

  was:
*Configuration*
Two Linux machines sharing an NFS-export, configured as MasterSlave configuration with *kahaDB*
persistence.

*Scenario*
1. Connecting to an *mqtt+ws* endpoint and publishing a message to topic: *foo* with retain:
*true* and QoS: *2*.
2. Stopping the Master-node (activemq stop) and seeing the previously Slave takes over.
3. Connecting to the  new Master-node (previously Slave) and subscribing to the topic I sent
a retained message to. But no message delivered.

Seems like the retain message is not persisted? Shouldn't this be the case?

Also ran a test when publishing a retain message, waiting for more than 5 minutes and then
"fail-over" - no difference.


> Retained messages not persisted? (MQTT)
> ---------------------------------------
>
>                 Key: AMQ-6575
>                 URL: https://issues.apache.org/jira/browse/AMQ-6575
>             Project: ActiveMQ
>          Issue Type: Bug
>          Components: Broker, MQTT
>    Affects Versions: 5.14.3
>            Reporter: Stefan Nilsson
>
> *Issue*
> Retained message is not persisted.
> *Steps to reproduce*
> # Client *c1* connects and publishes a message *m1* to topic *t1*  with retain: *true*
and QoS: *2*. Client then disconnects.
> # Client connect (with same clientId or different, both works) and *c1* subscribes to
*t1*. *c1* recieves *m1*.
> However, if the broker is restarted and *step 2* is re-run, the *m1* is never recieved.
> Shouldn't a retained message with QoS-2 be persisted and send to clients even after restart?



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Mime
View raw message