- **status**: accepted --> fixed
- **Version**:  --> 4.5
- **Comment**:

changeset:   6802:a9b393bb1c66
tag:         tip
parent:      6799:93e72338e78f
user:        A V Mahesh <mahesh.va...@oracle.com>
date:        Mon Sep 14 12:14:30 2015 +0530
summary:     cpsv: prevented multiple write request with same checkpointHandle 
at cpnd [#1467]
 
changeset:   6801:bd1ac2c47a02
branch:      opensaf-4.6.x
parent:      6798:de765110343d
user:        A V Mahesh <mahesh.va...@oracle.com>
date:        Mon Sep 14 12:13:57 2015 +0530
summary:     cpsv: prevented multiple write request with same checkpointHandle 
at cpnd [#1467]
 
changeset:   6800:47e4745bd82a
branch:      opensaf-4.5.x
parent:      6797:84dee6e50f1e
user:        A V Mahesh <mahesh.va...@oracle.com>
date:        Mon Sep 14 12:12:59 2015 +0530
summary:     cpsv: prevented multiple write request with same checkpointHandle 
at cpnd [#1467]



---

** [tickets:#1467] cpav:two apps on same node simultaneously failed to write 
checkpoint and app hangs **

**Status:** fixed
**Milestone:** 4.5.2
**Created:** Mon Aug 31, 2015 04:05 AM UTC by A V Mahesh (AVM)
**Last Updated:** Mon Aug 31, 2015 04:07 AM UTC
**Owner:** A V Mahesh (AVM)
**Attachments:**

- 
[test_3opens_app_A.c](https://sourceforge.net/p/opensaf/tickets/1467/attachment/test_3opens_app_A.c)
 (9.2 kB; application/octet-stream)


Steps to reproduce  :
------------------------------------------------------------
Step -1 :

   - Add sleep(30) in cpnd_evt_proc_nd2nd_ckpt_active_data_access_req() 
function of file
   `osaf/services/saf/cpsv/cpnd/cpnd_evt.c` at line no :3037 And build,  
install  and bringup Opensaf
    on all 4 nodes SC-1, SC-2, PL-3, SC-4 ).
   
   static uint32_t cpnd_evt_proc_nd2nd_ckpt_active_data_access_req(CPND_CB *cb, 
CPND_EVT *evt, CPSV_SEND_INFO *sinfo)
   {
       sleep(30);
       uint32_t rc = NCSCC_RC_SUCCESS;

     
Step -2
     Build Cpsv  `test_3opens_app_A.c &  test_3opens_app_B.c` application  on 
all 4 nodes SC-1, SC-2, PL-3, SC-4  ( attached to SR)      

   SC-1:# gcc test_3opens_app_A.c -o node_A  -lSaCkpt;
   SC-1:# gcc test_3opens_app_B.c -o node_B  -lSaCkpt;
   

Step -3  : Bring up Opensaf on all 4 nodes SC-1, SC-2, PL-3, SC-4

Step -4  : Run checkpoint application ./node_A In all 4 nodes SC-1, SC-2, PL-3, 
PL-4
          and don`t Press <Enter> key.

   SC-1:# ./node_A
   0 saCkptCheckpointOpen  returned checkpointHandle 626e60
   1 saCkptCheckpointOpen  returned checkpointHandle 626fe0
   2 saCkptCheckpointOpen  returned checkpointHandle 627270
   3 saCkptCheckpointOpen  returned checkpointHandle 6273f0
   4 saCkptCheckpointOpen  returned checkpointHandle 627570
   CPSV:CPA:ONsaCkptCheckpointWrite Waiting to Read from Checkpoint ....
   saCkptCheckpointWrite Press <Enter> key to continue...
   ====================================================

Step -5 :Run checkpoint application ./node_B only on 2 nodes SC-1 & SC-2
        and don`t Press <Enter> key.
   ====================================================
   SC-1:# ./node_B
   0 saCkptCheckpointOpen  returned checkpointHandle 626e60
   1 saCkptCheckpointOpen  returned checkpointHandle 626fe0
   2 saCkptCheckpointOpen  returned checkpointHandle 627270
   3 saCkptCheckpointOpen  returned checkpointHandle 6273f0
   4 saCkptCheckpointOpen  returned checkpointHandle 627570
   CPSV:CPA:ONsaCkptCheckpointWrite Waiting to Read from Checkpoint ....
   saCkptCheckpointWrite Press <Enter> key to continue...
   ====================================================

Step -6 : Press <Enter> key for ./node_A  ./node_B  application quickly  to 
write simultaneously on SC-1 only,
     then for  `node_B`  checkpoint  application you will will see /node_B 
application failed to write checkpoint
   ====================================================
   SC-1: # ./node_A
   0 saCkptCheckpointOpen  returned checkpointHandle 626e60
   1 saCkptCheckpointOpen  returned checkpointHandle 626fe0
   2 saCkptCheckpointOpen  returned checkpointHandle 627270
   3 saCkptCheckpointOpen  returned checkpointHandle 6273f0
   4 saCkptCheckpointOpen  returned checkpointHandle 627570
   CPSV:CPA:ONsaCkptCheckpointWrite Waiting to Read from Checkpoint ....
   saCkptCheckpointWrite Press <Enter> key to continue...

   1 saCkptCheckpointWrite  checkpointHandle 626e60
   2 saCkptCheckpointWrite  checkpointHandle 626e60
   3 saCkptCheckpointWrite  checkpointHandle 626e60
   4 saCkptCheckpointWrite  checkpointHandle 626e60
   222 saCkptCheckpointWrite  checkpointHandle 626e60
   saCkptCheckpointRead Waiting to Read from Checkpoint ....
   saCkptCheckpointRead Press <Enter> key to continue...
 
   SC-1:# ./node_B
   0 saCkptCheckpointOpen  returned checkpointHandle 626e60
   1 saCkptCheckpointOpen  returned checkpointHandle 626fe0
   2 saCkptCheckpointOpen  returned checkpointHandle 627270
   3 saCkptCheckpointOpen  returned checkpointHandle 6273f0
   4 saCkptCheckpointOpen  returned checkpointHandle 627570
   CPSV:CPA:ONsaCkptCheckpointWrite Waiting to Read from Checkpoint ....
 
   ====================================================


---

Sent from sourceforge.net because opensaf-tickets@lists.sourceforge.net 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
Opensaf-tickets@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/opensaf-tickets

Reply via email to