Uploaded image for project: 'ActiveMQ Artemis'
  1. ActiveMQ Artemis
  2. ARTEMIS-1898

[AMQP] sender is not granted credit once space on queue is available

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • 2.6.4
    • None
    • None

    Description

      If an AMQP publisher sends to a queue that is full, with address-full-policy=FAIL, it gets messages rejected and no credit issued as expected. However if the queue is then drained, that existing sender link is not granted any more credit.

      To reproduce, configure a broker such that it has a queue called examples with some fairly low max size (I set global-max-size to 100kb) and address-full-policy of FAIL. Then run attached test_send.py with args e.g. -m 100000. The sender will eventually stall due to lack of credit. Then run the attached drain.py which will drain the queue. This should allow the sender to resume sending, but it does not.

      Attachments

        1. drain.py
          3 kB
          Gordon Sim
        2. test_send.py
          3 kB
          Gordon Sim

        Activity

          People

            andytaylor Andy Taylor
            gsim Gordon Sim
            Votes:
            2 Vote for this issue
            Watchers:
            6 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: