[rabbitmq-discuss] persistent messages can't survive restart with new persister b6324e288cfd (bug21673)

Garrett Smith g at rre.tt
Fri Dec 11 15:30:29 GMT 2009


Hi Matthew,

On Fri, Dec 11, 2009 at 8:20 AM, Matthew Sackman <matthew at lshift.net> wrote:
> Hello Anton,
>
> This is entirely correct. When you publish a message with delivery
> mode 2 you are *not* _guaranteed_ that it hits disk. Publishing is an
> async operation and you get no confirmation that it goes to disk. The
> new persister does very aggressive caching in order to avoid doing lots
> of tiny and expensive writes. As such, there will frequently be times
> where if you restart the broker, you will lose several (maybe hundreds)
> of messages.

If you shut down gracefully the caches aren't flushed to disk?

Garrett




More information about the rabbitmq-discuss mailing list