Hey guys -<div><br></div><div>I&#39;m seeing some unexpected behaviors with lost messages and I wanted to make sure that this is intended by RabbitMQ.</div><div><br></div><div>I have a queue called &quot;messages.log&quot; set up with the following configuration:</div>

<div>* x-message-ttl: 15000 (15s)</div><div>*�x-dead-letter-exchange: messages.retry</div><div>* durable: true</div><div><br></div><div>The expectation is that when I publish a persistent�message to &quot;messages.log&quot; it will sit in the queue for 15s, after which point it&#39;ll be dead-lettered into the &quot;messages.retry&quot; exchange.</div>

<div><br></div><div>I&#39;m seeing the following behaviors:</div><div>* When a persistent message is published to &quot;messages.log&quot;, after 15s it gets delivered to the &quot;messages.retry&quot; exchange and lands into the queue bound to that exchange.</div>

<div>*�When�a�persistent�message is published to &quot;messages.log&quot; and the rabbitmq process then gets force-stopped for less than 15s (i.e. total time for stopping and starting rabbitmq is less than 15s), the message is still in &quot;messages.log&quot; and eventually gets delivered to the &quot;messages.retry&quot; exchange when the TTL is hit</div>

<div>* <b>However</b>, when a�persistent�message is published to &quot;messages.log&quot; and the rabbitmq process then gets force-stopped for <u>more than 15s</u>, the message disappears. �It&#39;s not in &quot;messages.log&quot; and it&#39;s not in the queue bounded to &quot;messages.retry&quot;.</div>

<div><br></div><div>My interpretation is that if the RabbitMQ process is not running when a message&#39;s TTL is reached, then the message does not get properly dead-lettered -- it, instead, just gets dropped on the floor.</div>

<div><br></div><div>Is my understanding correct? Is that the intended behavior? �If so, is there any way to ensure that this message gets properly persisted / recovered?</div><div><br></div><div>Thanks for any thoughts!</div>

<div><br></div><div>-Aaron</div>