Does Qpid Java broker close connection upon channel exception as well as closing the channel?

2021-07-12 Thread Fraser Adams
For context I'm working on a project that is primarily using the RabbitMQ broker and using the Pika Python client library. As the Qpid Java broker supports AMQP 0.9.1 too I figured I'd try to connect to that too to see if I could compare relative performance. I ran into a couple of issues, the

Re: Does Qpid Java broker close connection upon channel exception as well as closing the channel?

2021-07-12 Thread Rob Godfrey
So, according to the 0-9-1 definition ( https://www.amqp.org/specification/0-9-1/amqp-org-download), 404 is supposed to be a channel error - so RabbitMQ is likely more correct than the Java Broker. IIRC there were a whole boatload of issues with clients (particularly the old JMS client) trying to

Fwd: Overriding Thread factory

2021-07-12 Thread Mantas Gridinas
Yo! I'm using asynchronous message consumption method for my topics and sometimes the consumption throws an exception, but that exception does not get reported by qpid or anything else. I suspect it's because created threads (by default) use thread group's exception handler, which only checks if t

Re: Does Qpid Java broker close connection upon channel exception as well as closing the channel?

2021-07-12 Thread Fraser Adams
Thanks Rob, so the bottom line then is that the Qpid Java broker *is* closing the connection in addition to the channel, right? If that's the case at least that's reassuring in that it's doing what it's _supposed_ to be doing (even if that may not be quite "correct"). I was mainly concerned th

Re: Overriding Thread factory

2021-07-12 Thread Robbie Gemmell
You dont say which client you are using but I expect its one of the JMS clients and regardless which that the answer is no. I dont believe it would matter if it were possible though, as the client is almost certainly handling the exception. Perhaps it should log something if it doesn't, but that al

Re: Does Qpid Java broker close connection upon channel exception as well as closing the channel?

2021-07-12 Thread Robbie Gemmell
On Mon, 12 Jul 2021 at 15:40, Fraser Adams wrote: > > Thanks Rob, so the bottom line then is that the Qpid Java broker *is* > closing the connection in addition to the channel, right? > It may be, though I'm not sure what's been said actually proves that, or if it is then precisely why. In parti

Re: Does Qpid Java broker close connection upon channel exception as well as closing the channel?

2021-07-12 Thread Fraser Adams
On " In particular your note of the eventual error indicating 'channel 2 not existing' would to me as much potentially imply that something was still trying to use channel 2 at a point it shouldnt " That was my initial thought too, so I spent a fair bit of time trying to see if I'd "done somet

Re: Overriding Thread factory

2021-07-12 Thread Mantas Gridinas
Ah, right. I forgot qpid has multiple implementations. I agree that it's like that in JMS spec since one of the session control modes is to "acknowledge message if listener returned without an error". Thanks for clarifying. On Mon, Jul 12, 2021 at 3:36 PM Robbie Gemmell wrote: > > You dont say w