Skip to content

Conversation

@ansd
Copy link
Member

@ansd ansd commented Apr 7, 2025

What?

This commit determines the queue topology without checking the queue type.

Why?

This way, checking leader and replicas works the same across all queue types without the need to introduce other rabbit_queue_type behaviour as suggested in other PRs.

How?

pid is the leader, nodes in queue_type_states are the members/replicas.

This commit results in an unknown stream leader during queue declaration. However the correct leader will be returned eventually when calling GET on the stream.

 ## What?
This commit determines the queue topology without checking the queue type.

 ## Why?
This way, checking leader and replicas works the same across all queue
types without the need to introduce other rabbit_queue_type behaviour as
suggested in other PRs.

 ## How?
pid is the leader, nodes in queue_type_states are the members/replicas.

This commit results in an unknown stream leader during queue
declaration. However the correct leader will be returned eventually when
calling GET on the stream.
@ansd ansd force-pushed the queue-topology branch from 7ac493a to 60c1805 Compare April 7, 2025 13:01
@ansd ansd marked this pull request as ready for review April 7, 2025 13:30
@ansd ansd requested review from acogoluegnes and kjnilsson April 7, 2025 13:32
@ansd ansd merged commit 35b5ab3 into main Apr 7, 2025
273 checks passed
@ansd ansd deleted the queue-topology branch April 7, 2025 14:37
@michaelklishin michaelklishin added this to the 4.1.0 milestone Apr 7, 2025
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.

4 participants