Skip to content

Commit

Permalink
Reconnect to db if there is transaction error
Browse files Browse the repository at this point in the history
Under heavy load, ovsdb monitor gets dropped silently and we
stop receiving update messages from ovsdbserver. This leads
to stale cache and inconsistency with what's in the DB
leading to transaction errors. While this is originally
a ovsdbserver bug, a workwround fix here would be to
trigger reconnect to recreate the monitor and start
receiving update messages, when a transaction error occurs.

Signed-off-by: Surya Seetharaman <[email protected]>
Co-Authored-By: [email protected]
  • Loading branch information
tssurya committed Sep 4, 2021
1 parent 300ed96 commit 231bffe
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 5 deletions.
23 changes: 19 additions & 4 deletions go-controller/vendor/github.com/ebay/go-ovn/client.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 4 additions & 1 deletion go-controller/vendor/github.com/ebay/go-ovn/ovnimp.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 231bffe

Please sign in to comment.