Affects Version/s: A-MQ 7.0.0.ER12
Fix Version/s: A-MQ 7.0.0.ER14
This error originally reported as a client bug. See
I've reproduced my comment here. Essentially the expected broker behavior is:
The broker should detach immediately upon seeing the error and not defer reporting the error until the client closes the link.
---- cut from
This seems more of a broker bug than a client bug.
I ran this test against broker
and get essentially the same result. I added some extra log statements to the console output:
Following along I see:
1. The client pipes (AMQP, open, begin, attach, attach) to create the receiver and sender. It's even in the send loop waiting for credits on the send link to make progress.
2. The broker returns (AMQP, open, begin). Then there's a 20 second delay returning the (attach attach, flow). I don't understand this pause.
3. The client transfers two messages and receives accepted dispositions and another flow.
4. At time 04:29.651 the client gives up waiting for received messages and closes the sender and receiver. The broker sends an error in the receiver detach response at 04:39.776.
I suppose that the original complaint in this issue is that the client does not throw an exception on receiving the detach-with-error. However, the client closed the link first and is already tearing the link down. Errors at this point in the link life cycle are not that meaningful.
More troublesome is that the broker did not send the detach immediately after the attach(name:receiver-Selector) frame. The broker did not send the detach-with-error until after the client closed the link.