Skip to content

Conversation

@mergify
Copy link

@mergify mergify bot commented Nov 4, 2025

Within rabbit_stream_coordinator:delete_stream/2, the stream could be successfully deleted from the stream coordinator but the update to the metadata store (rabbit_amqqueue:internal_delete/2) could fail separately. If this happens then subsequent attempts to delete the stream also fail because the coordinator did not reply to delete_stream requests for unknown stream IDs.

This change has the stream coordinator reply ok when it receives a delete_stream command and the stream is undefined. This would let the delete_stream/2 continue and remove the lingering state from the metadata store.

Fixes #14852


This is an automatic backport of pull request #14884 done by [Mergify](https://mergify.com).

Within `rabbit_stream_coordinator:delete_stream/2`, the stream could be
successfully deleted from the stream coordinator but the update to the
metadata store (`rabbit_amqqueue:internal_delete/2`) could fail
separately. If this happens then subsequent attempts to delete the
stream also fail because the coordinator did not reply to
`delete_stream` requests for unknown stream IDs.

This change has the stream coordinator reply `ok` when it receives a
`delete_stream` command and the stream is `undefined`. This would let
the `delete_stream/2` continue and remove the lingering state from the
metadata store.

(cherry picked from commit ebe3471)
@michaelklishin michaelklishin added this to the 4.2.1 milestone Nov 4, 2025
@michaelklishin michaelklishin merged commit 5f162ca into v4.2.x Nov 4, 2025
291 checks passed
@michaelklishin michaelklishin deleted the mergify/bp/v4.2.x/pr-14884 branch November 4, 2025 14:27
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.

3 participants