[rabbitmq-discuss] There are no messages in the msg_store_persistent
matthew at rabbitmq.com
Mon Feb 28 10:27:05 GMT 2011
On Sun, Feb 27, 2011 at 03:37:34PM -0800, Nickolay VInogradov wrote:
> Server 2.3.1.
> Client - Perl, Net::RabbitMQ.
> # rabbitmqctl list_queues
> Listing queues ...
> smtp_feed 0
> mail_feed 206034
> lenta_feed 0
> But there are no messages in the persistent directory:
> # ls -l /var/lib/rabbitmq/mnesia/rabbit\@memcached2/
> total 0
> -rw-r--r-- 1 root root 0 Feb 22 23:41 0.rdq
> # du -hs /var/lib/rabbitmq/mnesia/rabbit\@memcached2/
> 120K /var/lib/rabbitmq/mnesia/rabbit at memcached2/
> What happens with messages? Where they are stored???
They _may_ be written to disk if you publish with delivery_mode = 2.
Even if they are published as such, there may be a time delay between
them being published and actually ending up on disk. If you safely shut
down rabbit (i.e. don't kill it hard) then you should see the messages
appear on disk if they have been published correctly.
Alternatively, if you use transactions or publisher confirms then you
should get confirmation back from the broker once they have been safely
written to disk.
More information about the rabbitmq-discuss