- Standby amfd may miss node delete apply callback by somehow.
Then it will crash when handling event in failover state due to:
Assertion 'avnd->list_of_ncs_su.empty() != true' failed
in function avd_node_down_mw_susi_failover().
---
src/amf/amfd/main.cc | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/src/amf/amfd/main.cc b/src/amf/amfd/main.cc
index b8f5c22..f734318 100644
--- a/src/amf/amfd/main.cc
+++ b/src/amf/amfd/main.cc
@@ -51,6 +51,7 @@
#include "amf/amfd/amfd.h"
#include "amf/amfd/imm.h"
#include "amf/amfd/cluster.h"
+#include "amf/amfd/node.h"
#include "amf/amfd/si_dep.h"
#include "amf/amfd/hlt.h"
#include "amf/amfd/clm.h"
@@ -688,6 +689,9 @@ static void main_loop(void) {
}
if (cb->avd_fover_state) {
+ /* Standby SC can miss node delete apply callback by somehow.
+ Check nodes again is safe and helpful to execute here */
+ avd_check_nodes_after_reinit_imm();
handle_event_in_failover_state(evt);
} else if (false == cb->avd_fover_state) {
process_event(cb, evt);
--
2.7.4
_______________________________________________
Opensaf-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/opensaf-devel