diff --git a/doc/source/admin/rabbit.rst b/doc/source/admin/rabbit.rst index b9433a529..4e0e6b03e 100644 --- a/doc/source/admin/rabbit.rst +++ b/doc/source/admin/rabbit.rst @@ -242,8 +242,8 @@ Consuming Options - :oslo.config:option:`oslo_messaging_rabbit.rabbit_ha_queues` - :oslo.config:option:`oslo_messaging_rabbit.rabbit_quorum_queue` - :oslo.config:option:`oslo_messaging_rabbit.rabbit_quorum_delivery_limit` -- :oslo.config:option:`oslo_messaging_rabbit.rabbit_quroum_max_memory_length` -- :oslo.config:option:`oslo_messaging_rabbit.rabbit_quroum_max_memory_bytes` +- :oslo.config:option:`oslo_messaging_rabbit.rabbit_quorum_max_memory_length` +- :oslo.config:option:`oslo_messaging_rabbit.rabbit_quorum_max_memory_bytes` - :oslo.config:option:`oslo_messaging_rabbit.rabbit_transient_queues_ttl` Connection Options diff --git a/oslo_messaging/_drivers/impl_rabbit.py b/oslo_messaging/_drivers/impl_rabbit.py index 58b84ae03..4d801760c 100644 --- a/oslo_messaging/_drivers/impl_rabbit.py +++ b/oslo_messaging/_drivers/impl_rabbit.py @@ -176,7 +176,8 @@ rabbit_opts = [ 'or dead-lettered (if a DLX exchange has been configured) ' 'Used only when rabbit_quorum_queue is enabled, ' 'Default 0 which means dont set a limit.'), - cfg.IntOpt('rabbit_quroum_max_memory_length', + cfg.IntOpt('rabbit_quorum_max_memory_length', + deprecated_name='rabbit_quroum_max_memory_length', default=0, help='By default all messages are maintained in memory ' 'if a quorum queue grows in length it can put memory ' @@ -184,7 +185,8 @@ rabbit_opts = [ 'of messages in the quorum queue. ' 'Used only when rabbit_quorum_queue is enabled, ' 'Default 0 which means dont set a limit.'), - cfg.IntOpt('rabbit_quroum_max_memory_bytes', + cfg.IntOpt('rabbit_quorum_max_memory_bytes', + deprecated_name='rabbit_quroum_max_memory_bytes', default=0, help='By default all messages are maintained in memory ' 'if a quorum queue grows in length it can put memory ' @@ -865,8 +867,8 @@ class Connection(object): def _get_quorum_configurations(self, driver_conf): """Get the quorum queue configurations""" delivery_limit = driver_conf.rabbit_quorum_delivery_limit - max_memory_length = driver_conf.rabbit_quroum_max_memory_length - max_memory_bytes = driver_conf.rabbit_quroum_max_memory_bytes + max_memory_length = driver_conf.rabbit_quorum_max_memory_length + max_memory_bytes = driver_conf.rabbit_quorum_max_memory_bytes return QuorumMemConfig(delivery_limit, max_memory_length, max_memory_bytes) diff --git a/releasenotes/notes/rabbit_quorum_typo-9c06a9fd8d767f53.yaml b/releasenotes/notes/rabbit_quorum_typo-9c06a9fd8d767f53.yaml new file mode 100644 index 000000000..c2747d4b6 --- /dev/null +++ b/releasenotes/notes/rabbit_quorum_typo-9c06a9fd8d767f53.yaml @@ -0,0 +1,6 @@ +--- +fixes: + - | + Fixed typo in variable names ``rabbit_quorum_max_memory_length`` + and ``rabbit_quorum_max_memory_bytes``. Please make changes in your + config files to correspond correct variables.