[ovs-dev] [PATCH ovn 1/2] Revert "northd: Don't poll ovsdb before the connection is fully established"
Zhen Wang
zhewang at nvidia.com
Fri Sep 17 03:05:37 UTC 2021
From: zhen wang <zhewang at nvidia.com>
This reverts commit 1e59feea933610b28fd4442243162ce35595cfee.
Above commit introduced a bug when muptiple ovn-northd instances work in HA
mode. If SB leader and active ovn-northd instance got killed by system power
outage, standby ovn-northd instance would never detect the failure.
Signed-off-by: zhen wang <zhewang at nvidia.com>
---
northd/northd.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/northd/northd.c b/northd/northd.c
index 688a6e4ef..b7e64470f 100644
--- a/northd/northd.c
+++ b/northd/northd.c
@@ -74,8 +74,8 @@ static bool use_ct_inv_match = true;
/* Default probe interval for NB and SB DB connections. */
#define DEFAULT_PROBE_INTERVAL_MSEC 5000
-static int northd_probe_interval_nb = 0;
-static int northd_probe_interval_sb = 0;
+static int northd_probe_interval_nb = DEFAULT_PROBE_INTERVAL_MSEC;
+static int northd_probe_interval_sb = DEFAULT_PROBE_INTERVAL_MSEC;
#define MAX_OVN_TAGS 4096
/* Pipeline stages. */
--
2.20.1
More information about the dev
mailing list