Hi, I noticed that if I create an autodeleting queue and it gets
auto-deleted, my attempts to send to it don't cause an exception, and my
messages seem to disappear into the ether. Is that expected behaviour?

I'm using the python client. Here's a minimal test case that reproduces the
behaviour:

import sys
from qpid.messaging import *

connection=Connection("localhost:5672")
connection.open()
try:
  session=connection.session()
  tx=session.sender("test-queue; {create:always,
node:{x-declare:{auto-delete:True}}}")
  tx.send("test message!")
  x = raw_input("Press Enter to continue")
  tx.send("test message 2")
except MessagingError, m:
  print m
connection.close()

When the program pauses for keyboard input, I subscribe and unsubscribe
using drain -c 0  test-queue in another window. This causes the queue to
auto-delete.

I would expect an exception to be thrown when I try to send the second test
message, but it isn't.

Is this a bug? Am I doing something wrong?

- Josh

Reply via email to