[rabbitmq-discuss] Is it possible to have these settings and publish to a queue that exists yet there is no consumer

Dathan Pattishall dathan at schoolfeed.com
Wed Mar 21 00:15:07 GMT 2012


My exchange is set with auto_delete to false non-persistent
My queue matches the exchange-it's auto_delete is false again non-persistent

My messages have a 120 second expire time and delivery mode is set to 1
which means the message is non-persistent. (Note I tried the combo of
setting this to 2 with non-persistent queues and exchanges)

If the consumer goes away, yet the queue exists shouldn't the message queue
until the consumer comes online?

For my case the message seems to just drop. Below are some admin commands
illustrating what I perceive is my problem.

./rabbitmqadmin.py list exchanges
+-------+--------------------+---------+-------------+---------+----------+
| vhost |        name        |  type   | auto_delete | durable | internal |
+-------+--------------------+---------+-------------+---------+----------+
| /     |                    | direct  | False       | True    | False    |
*| /     | 53613981           | direct  | False       | False   | False    |
*
| /     | amq.direct         | direct  | False       | True    | False    |
| /     | amq.fanout         | fanout  | False       | True    | False    |
| /     | amq.headers        | headers | False       | True    | False    |
| /     | amq.match          | headers | False       | True    | False    |
| /     | amq.rabbitmq.log   | topic   | False       | True    | False    |
| /     | amq.rabbitmq.trace | topic   | False       | True    | False    |
| /     | amq.topic          | topic   | False       | True    | False    |
+-------+--------------------+---------+-------------+---------+----------+


Notice the bold that is the exchange in question

./rabbitmqadmin.py list bindings
+-------+----------+---------------+------------------+---------------+-----------------+
| vhost |  source  |  destination  | destination_type |  routing_key  |
properties_key  |
+-------+----------+---------------+------------------+---------------+-----------------+
| /     | 53613981 | feed_53598242 | queue            | feed          |
feed            |
| /     | 53613981 | feed_53712882 | queue            | feed          |
feed            |
| /     |          | feed_53598242 | queue            | feed_53598242 |
feed%5F53598242 |
| /     |          | feed_53712882 | queue            | feed_53712882 |
feed%5F53712882 |
+-------+----------+---------------+------------------+---------------+-----------------+

./rabbitmqadmin.py list queues
+-------+---------------+-------------+-----------+---------+------------------------+--------------------+--------+----------+----------------+-------------------------+------------+-------------+
| vhost |     name      | auto_delete | consumers | durable |
exclusive_consumer_tag |     idle_since     | memory | messages |
messages_ready | messages_unacknowledged |    node    | slave_nodes |
+-------+---------------+-------------+-----------+---------+------------------------+--------------------+--------+----------+----------------+-------------------------+------------+-------------+
| /     | feed_53598242 | False       | 0         | False   |
         | 2012-3-20 16:49:28 | 6568   | 0        | 0              | 0
                  | rabbit at dev |             |
| /     | feed_53712882 | False       | 0         | False   |
         | 2012-3-20 16:49:28 | 6568   | 0        | 0              | 0
                  | rabbit at dev |             |
+-------+---------------+-------------+-----------+---------+------------------------+--------------------+--------+----------+----------------+-------------------------+------------+-------------+


Publishing the message succeeds yet the message does not queue it gets
discarded.

If the consumer is connected then the message flows as normal and I can see
rabbit work its magic.

How can I force rabbit to queue when the consumer is offline and the
queue/exchange exists on the server?

Note:

I made the exchange durable, the queue durable, and delivery_mode => 2
still I can't get rabbit to queue.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.rabbitmq.com/pipermail/rabbitmq-discuss/attachments/20120320/a03cfb47/attachment.htm>


More information about the rabbitmq-discuss mailing list