Have eventlet monkeypatch the time module
Without this, mongod retry logic in the various services started as commands fails to behave as expected and does not reconnect as soon as the mongod service has returned to availability. In addition to the mongod sleep there are two other time.sleep calls that may be reached by this change. Review and discussion with others indicates that their behavior will continue to be correct with the monkeypatch in place. Change-Id: I4eca290acc3b06658951f070935ebb39936e13d3 Closes-Bug: #1447599
This commit is contained in:
parent
521b8816ae
commit
11ade403b1
@ -19,4 +19,4 @@ import eventlet
|
||||
# at least, oslo.messaging, otherwise everything's blocked on its
|
||||
# first read() or select(), thread need to be patched too, because
|
||||
# oslo.messaging use threading.local
|
||||
eventlet.monkey_patch(socket=True, select=True, thread=True)
|
||||
eventlet.monkey_patch(socket=True, select=True, thread=True, time=True)
|
||||
|
Loading…
Reference in New Issue
Block a user