Skip to content

Consumer channel replacement fixes - #434

Merged
michaelklishin merged 2 commits into
mainfrom
mk-fix-pre-2.0.0-fixes
Aug 22, 2026
Merged

michaelklishin merged 2 commits into
mainfrom
mk-fix-pre-2.0.0-fixes

Conversation

@michaelklishin

Copy link
Copy Markdown
Member

Publishing no longer breaks after a replacement: the publisher held on to the old channel and exchange, now it is redeclared with them
Closing a channel the server has already closed is now idempotent
Give running handlers a graceul timeout before the work pool is killed
Acknowledgements go to the channel the deliveryy has arrived on
Handle stale delivery tags better
The cancellation callback captures the channel the consumer subscribed on
In addition, this ports a few eventual matchers (such as await_condition/2) from RabbitMQ's CT helpers and adopts them to reduce test flakiness.

Plus fixes timeouts that are at risk of being too short.

 * Publishing no longer breaks after a replacement: the publisher held on
   to the old channel and exchange, now it is redeclared with them
 * Closing a channel the server has already closed is now idempotent
 * Give running handlers a graceul timeout before the work pool is killed
 * Acknowledgements go to the channel the deliveryy has arrived on
 * Handle stale delivery tags better
 * The cancellation callback captures the channel the consumer subscribed on

In addition, this ports a few eventual matchers (such as `await_condition/2`)
from RabbitMQ's CT helpers and adopts them to reduce test flakiness.

Plus fixes timeouts that are at risk of being too short.
It's arguably uglier than this alternative and
is known not to be type checking-friendly.
@michaelklishin michaelklishin added this to the 2.0.0 milestone Aug 22, 2026
@michaelklishin
michaelklishin merged commit cb8fdda into main Aug 22, 2026
18 checks passed
@michaelklishin
michaelklishin deleted the mk-fix-pre-2.0.0-fixes branch August 22, 2026 03:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant