Skip to content

Conversation

@kjnilsson
Copy link
Contributor

@kjnilsson kjnilsson commented Aug 1, 2019

And use the implementing module as the value of the amqqueue record
type field. This will allow for easy dispatch to the queue type
implementation.

Also change the quorum_nodes field to a more generic queue type state field that holds an extensible queue type specific map.

This is a first step towards a full queue type behaviour as worked on in #2052

Copy link
Collaborator

@dumbbell dumbbell left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

My main concern is that the amqqueue module and its API is already public (starting with 3.7.17). Therefore we can't get rid of a few aspects of it.

RabbitMQ 3.7.x does not use the amqqueue module: it was backported for plugin developers only (they can maintain and publish a single copy of their plugin and it will be compatible with 3.7.x and 3.8.x). So it should be easy to keep support for those few bits being removed. I need to think about this.

Copy link
Collaborator

@dumbbell dumbbell left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

In amqqueue.erl, before line 346, you need to convert the passed Type if it is classic. Otherwise, that's what is stored in the record.

Copy link
Collaborator

@dumbbell dumbbell left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Could you please squash all commits into one?

And use the implementing module as the value of the amqqueue record
`type` field. This will allow for easy dispatch to the queue type
implementation.

Make amqqueue compatible with the classic queue tag
@kjnilsson kjnilsson force-pushed the queue_type_scaffolding branch from 3341875 to 3444925 Compare August 7, 2019 15:10
@kjnilsson kjnilsson merged commit 1984d66 into master Aug 7, 2019
@michaelklishin michaelklishin deleted the queue_type_scaffolding branch August 20, 2019 15:49
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