[ 
https://issues.apache.org/jira/browse/ARTEMIS-1898?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16614025#comment-16614025
 ] 

ASF subversion and git services commented on ARTEMIS-1898:
----------------------------------------------------------

Commit 82795b7bff64da8770a0c53b9eb1373b2d63fbf6 in activemq-artemis's branch 
refs/heads/master from andytaylor
[ https://git-wip-us.apache.org/repos/asf?p=activemq-artemis.git;h=82795b7 ]

ARTEMIS-1898 - make sure tosend credits on rejected messages

And also to run the credit runnables once memory is free in fail mode

https://issues.apache.org/jira/browse/ARTEMIS-1898


> [AMQP] sender is not granted credit once space on queue is available
> --------------------------------------------------------------------
>
>                 Key: ARTEMIS-1898
>                 URL: https://issues.apache.org/jira/browse/ARTEMIS-1898
>             Project: ActiveMQ Artemis
>          Issue Type: Bug
>            Reporter: Gordon Sim
>            Priority: Major
>         Attachments: drain.py, test_send.py
>
>
> 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. 



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

Reply via email to