-
Notifications
You must be signed in to change notification settings - Fork 17
Conversation
Firstly avoid the explicit receive on connection to wait for link credit. Instead we cache any early forward operations until link credit has been received.This way any early close events are handled by the existing callbacks. Also wait and link the connection process until after the session process has been started. The session process isn't started until the sasl handshake has completed. If we link before this and sasl authenticatio fails the shovel will not report the correct error. Also write the report update earlier in the terminate function of the worker.
I tried to test that with creating a shovel between amqp0.9.1 and amqp1.0 in rabbitmq, while not having access rights to the amqp1.0 vhost. I've got this error:
Then I configured permissions for a vhost, but not the queue and I got this error:
Is this expected behaviour? |
I was using changes from rabbitmq/rabbitmq-amqp1.0#86 to set amqp1.0 vhost. |
You need to use the changes in
rabbitmq/rabbitmq-amqp1.0#85
On Fri, 3 May 2019 at 21:55, Daniil Fedotov ***@***.***> wrote:
I was using changes from rabbitmq/rabbitmq-amqp1.0#86
<rabbitmq/rabbitmq-amqp1.0#86> to set amqp1.0
vhost.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<#57 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AAJAHFB2NV6K5WYEBCD6MKTPTSRD7ANCNFSM4HKVMDQQ>
.
--
*Karl Nilsson*
|
@kjnilsson yes, I modified rabbitmq/rabbitmq-amqp1.0#85 with changes from rabbitmq/rabbitmq-amqp1.0#86 |
I've noticed two other usability problems while QA'ing this, it's hard to evaluate Shovel AMQP 1.0 improvements in this area without addressing them. Let's merge this and work on improving the test suite and AMQP 1.0 plugin error handling in this area next. |
Backported to |
Improve amqp 1.0 error handling (cherry picked from commit 58201f0)
Firstly avoid the explicit receive on connection to wait for link
credit. Instead we cache any early forward operations until link credit
has been received.This way any early close events are handled by the
existing callbacks.
Also wait and link the connection process until after the session
process has been started. The session process isn't started until the
sasl handshake has completed. If we link before this and sasl
authenticatio fails the shovel will not report the correct error.
Also write the report update earlier in the terminate function of the
worker.
requires: rabbitmq/rabbitmq-amqp1.0#85