Analysis:
1)During switch over, the CPD went into the QUIESCED state
At that time, cpnd got
"2840:ckpt/ckptnd/cpnd_mds.c:1059 T4 cpnd cpd service noactive" in the cpnd
traces of pl-4
and the application is closed, so it calls cpnd_proc_cpa_down().
2)In cpnd_mds.c
In cpnd_mds_msg_send()
This condition ((to_svc == NCSMDS_SVC_ID_CPD) && (cb->is_cpd_up == false)) is
true because there is no active Director, so cpnd got "cpnd cpd service is
down" in the traces of ckptnd.
if ((to_svc == NCSMDS_SVC_ID_CPD) && (cb->is_cpd_up == false)) {
/* CPD is not UP */
TRACE_4("cpnd cpd service is down");
m_NCS_UNLOCK(&cb->cpnd_cpd_up_lock, NCS_LOCK_WRITE);
TRACE_LEAVE();
return NCSCC_RC_FAILURE;
}
So, the pl-4 is not sending any msg to the director.
The ckpt director got only one close request(i.e., from sc-1) instead of two.
Hence, ckpt director thinks that some application is still using that
checkpoint.
So, the checkpoint is not deleted from the /dev/shm.
---
** [tickets:#2930] ckpt: non collocated checkpoint is not deleted from
/dev/shm after switch over.**
**Status:** unassigned
**Milestone:** 5.18.09
**Created:** Thu Sep 20, 2018 07:52 AM UTC by Mohan Kanakam
**Last Updated:** Thu Sep 20, 2018 07:52 AM UTC
**Owner:** nobody
Steps to reproduce:
1) Create a non collocated checkpoint on SC-1 and PL-4.
2) Create a one section on SC-1.
3)During switch over operation, close the application on PL-4.
4)After switch over, close the application of SC-1.
4) Observe that checkpoint is not deleted from the /dev/shm on SC-1 and SC-2 .
SC-1:
root@mohan-VirtualBox:/home/mohan/opensaf-code/src/ckpt/ckptnd# ls /dev/shm/
opensaf_CPND_CHECKPOINT_INFO_131343
opensaf_NCS_GLND_LCK_CKPT_INFO
opensaf_NCS_MQND_QUEUE_CKPT_INFO
pulse-shm-1049372244 pulse-shm-2170855640 pulse-shm-493188609
opensaf_NCS_GLND_EVT_CKPT_INFO
opensaf_NCS_GLND_RES_CKPT_INFO
opensaf_safCkpt=DemoCkpt,safApp=safCkptServic_131343_2
pulse-shm-2086668063 pulse-shm-3681026513
SC-2:
root@mohan-VirtualBox:~# ls /dev/shm
opensaf_CPND_CHECKPOINT_INFO_131599
opensaf_NCS_GLND_EVT_CKPT_INFO
opensaf_NCS_GLND_LCK_CKPT_INFO
opensaf_NCS_GLND_RES_CKPT_INFO
opensaf_NCS_MQND_QUEUE_CKPT_INFO
opensaf_safCkpt=DemoCkpt,safApp=safCkptServic_131599_2
pulse-shm-2892283080
pulse-shm-2910971180
pulse-shm-3340597930
pulse-shm-528662130
pulse-shm-551961907
---
Sent from sourceforge.net because [email protected] is
subscribed to https://sourceforge.net/p/opensaf/tickets/
To unsubscribe from further messages, a project admin can change settings at
https://sourceforge.net/p/opensaf/admin/tickets/options. Or, if this is a
mailing list, you can unsubscribe from the mailing list._______________________________________________
Opensaf-tickets mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/opensaf-tickets