Skip to content

Conversation

@mkuratczyk
Copy link
Contributor

Follow-up to #14389

Without these changes, the attach frame doesn't set any settlement mode. This leads to settlement negotiation errors hiding the actual error.

For example,
omq amqp -y 0 -t /queues/no-such-queue
omq amqp -x 0 -T /queues/no-such-queue

Returned amqp: sender settlement mode "unsettled" requested, received "mixed" from server", when the actual error in the next (detach) frame was amqp:not-found. However, the attach frame triggers a client-side error before the detach frame is processed.

Follow-up to #14389

Without these changes, the attach frame doesn't set
any settlement mode. This leads to settlement negotiation
errors hiding the actual error.

For example,
omq amqp -y 0 -t /queues/no-such-queue
omq amqp -x 0 -T /queues/no-such-queue

Returned `amqp: sender settlement mode "unsettled" requested, received "mixed" from server"`,
when the actual error in the next (detach) frame was `amqp:not-found`.
However, the attach frame triggers a client-side error before the
detach frame is processed.
@mkuratczyk mkuratczyk requested a review from ansd November 24, 2025 13:14
@mkuratczyk mkuratczyk changed the title Set settle modes in link error frames Set settlement modes in link error frames Nov 24, 2025
@mkuratczyk mkuratczyk changed the title Set settlement modes in link error frames Set settlement modes when handling link errors Nov 24, 2025
@michaelklishin michaelklishin added this to the 4.3.0 milestone Nov 24, 2025
@michaelklishin michaelklishin merged commit 5d600fd into main Nov 24, 2025
291 checks passed
@michaelklishin michaelklishin deleted the settle-mode-in-error-frames branch November 24, 2025 16:12
michaelklishin added a commit that referenced this pull request Nov 25, 2025
Set settlement modes when handling link errors (backport #15004)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants