Fix spelling typo in output

abandonning -> abandoning
for output of oslo_messaging/_drivers/impl_rabbit.py

Plus some small fix for source comments/config help.

Change-Id: Ia4bd1465cbe8beef8e109d20e5ddbec12d6d8e8f
Signed-off-by: Zhao Lei <zhaolei@cn.fujitsu.com>
changes/01/227301/1
Zhao Lei 7 years ago
parent 6f95227e33
commit 9138ba24b8

@ -3,7 +3,7 @@
# However, defining different sets for the same driver allows you
# to do OR operations.
#
# See how this logic is modeled below:
# See how this logic is modelled below:
#
# if (priority in info, warn or error) or
# (event == compute.scheduler.run_instance)

@ -479,7 +479,7 @@ class Connection(object):
# seconds, but we use a lock around the kombu connection
# so, to not lock to much this lock to most of the time do nothing
# expected waiting the events drain, we start heartbeat_check and
# retreive the server heartbeat packet only two times more than
# retrieve the server heartbeat packet only two times more than
# the minimum required for the heartbeat works
# (heatbeat_timeout/heartbeat_rate/2.0, default kombu
# heartbeat_rate is 2)
@ -501,7 +501,7 @@ class Connection(object):
LOG.info(_LI('Connected to AMQP server on %(hostname)s:%(port)s'),
self.connection.info())
# NOTE(sileht): value choosen according the best practice from kombu
# NOTE(sileht): value chosen according the best practice from kombu
# http://kombu.readthedocs.org/en/latest/reference/kombu.common.html#kombu.common.eventloop
# For heatbeat, we can set a bigger timeout, and check we receive the
# heartbeat packets regulary
@ -864,7 +864,7 @@ class Connection(object):
exc)
def _consume():
# NOTE(sileht): in case the acknowledgement or requeue of a
# NOTE(sileht): in case the acknowledgment or requeue of a
# message fail, the kombu transport can be disconnected
# In this case, we must redeclare our consumers, so raise
# a recoverable error to trigger the reconnection code.
@ -1085,7 +1085,7 @@ class Connection(object):
elif exc.code == 404:
msg = _("The exchange %(exchange)s to send to "
"%(routing_key)s still doesn't exist after "
"%(duration)s sec abandonning...") % {
"%(duration)s sec abandoning...") % {
'duration': duration,
'exchange': exchange.name,
'routing_key': routing_key}

@ -127,7 +127,7 @@ class ZmqDriver(base.BaseDriver):
allowed_remote_exmods=None):
"""Construct ZeroMQ driver.
Intialize driver options.
Initialize driver options.
Construct matchmaker - pluggable interface to targets management
Name Service

@ -87,7 +87,7 @@ class DispatcherExecutorContext(object):
def done(self):
"""Callback after the incoming message have been dispathed
Should be runned in the main executor thread/greenlet/corotine
Should be ran in the main executor thread/greenlet/corotine
"""
# FIXME(sileht): this is not currently true, this works only because
# the driver connection used for polling write on the wire only to

@ -222,7 +222,7 @@ class TestRabbitPublisher(test_utils.BaseTestCase):
try_send(e_passive)
with mock.patch('kombu.messaging.Producer', side_effect=exc):
# Shoud reset the cache and ensures the exchange does
# Should reset the cache and ensures the exchange does
# not exists
self.assertRaises(exc, try_send, e_passive)
# Recreate it
@ -473,7 +473,7 @@ class TestSendReceive(test_utils.BaseTestCase):
if self.reply_failure_404:
# NOTE(sileht) all reply fail, first take
# kombu_reconnect_timeout seconds to fail
# next immediatly fail
# next immediately fail
dt = time.time() - start
timeout = self.conf.oslo_messaging_rabbit.kombu_reconnect_timeout
self.assertTrue(timeout <= dt < (timeout + 0.100), dt)

@ -123,7 +123,7 @@ class TestRPCServer(test_utils.BaseTestCase, ServerSetupMixin):
# Mocking executor
server._executor = mock.Mock()
# Here assigning executor's listener object to listener variable
# before calling wait method, beacuse in wait method we are
# before calling wait method, because in wait method we are
# setting executor to None.
listener = server._executor.listener
# call server wait method

Loading…
Cancel
Save