ovsdbapp/ovsdbapp/backend/ovs_idl
Terry Wilson e5ded80fe5 Ensure idl.run() called on TRY_AGAIN
If the DB connection drops after Connection.run() calls idl.run()
but before Transaction.do_commit(), then it is possible for
idl.commit() to return TRY_AGAIN due to the failure of session.send().
This prevents commit_block() from running idl.run() which would
actually trigger the DB reconnect, causing each successive call to
commit_block() to fail in the same way until we stop trying again
due to timeout and Connection.run() calls idl.run() again.

For now, we can just ensure that idl.run() is called when we get a
TRY_AGAIN. It might be worth it to refactor this a bit to not even
use commit_block().

Change-Id: I77402bde3fc4d45c770b9f48882870cfc91d719d
Closes-Bug: #1741889
(cherry picked from commit 1810faecc9)
2018-01-29 15:11:34 +00:00
..
__init__.py Refactor to give other schemas a place to live 2017-04-07 10:20:36 -05:00
command.py Break out BaseCommand into backend.ovs_idl 2017-04-21 15:50:47 -05:00
connection.py Pass the Idl directly to Connection 2017-05-12 09:42:36 -05:00
fixtures.py Allow choosing vlog levels to patch and restoring the vlog 2017-05-03 12:31:52 -05:00
idlutils.py Fixes retrieving row_by_record for ports on Windows 2017-04-21 12:22:04 +03:00
transaction.py Ensure idl.run() called on TRY_AGAIN 2018-01-29 15:11:34 +00:00
vlog.py Allow choosing vlog levels to patch and restoring the vlog 2017-05-03 12:31:52 -05:00