In normal case, the up flag will be reset by the mds thread whenever the amfnd
receives a NEW_ACTIVE event:
~~~
case NCSMDS_NEW_ACTIVE:
if (evt_info->i_svc_id == NCSMDS_SVC_ID_AVD) {
LOG_NO("AVD NEW_ACTIVE, adest:%" PRIu64, evt_info->i_dest);
// sometimes NEW_ACTIVE
---
** [tickets:#3317] amfnd: two NEW_ACTIVE amfd in split-brain scenario**
**Status:** accepted
**Milestone:** 5.22.11
**Created:** Fri Jun 10, 2022 04:00 AM UTC by Hieu Hong Hoang
**Last Updated:** Fri Jun 10, 2022 04:00 AM UTC
**Owner:** Hieu Hong Hoang
This issue happen when we test the
commit 12553142ea53b5ea1b608cdac64973a50dd231ee (HEAD -> develop,
origin/develop, ticket-3316)
Author: thien.m.huynh
Date: Tue Jun 7 13:08:32 2022 +0700
base: Correctly use the MAX_GRP_MEM_BUF_SIZE [#3316]
Reset errno to prevent ERANGE unexpected.
Align realloc memory with