copy the test code on payloads
payload-1:
1)on terminal 1 (pl-4)
run following commands
For complilation:
$gcc main.c test.c -lSaCkpt -o tkt
For run:
$./tkt 1
c)kill the ckptnd when this sentence is printed on terminal ("kill ckptnd now
")
*******************************************************************
Demonstrating Checkpoint Service Usage with a Track Callback
*******************************************************************
Initialising With Checkpoint Service....
Opening active replica Checkpoint = safCkpt=DemoCkpt,safApp=safCkptService with
create flags....
saCkptCheckpointOpen pass : 4131212846
Opening active replica Checkpoint = safCkpt=DemoCkpt,safApp=safCkptService
with create flags....
saCkptCheckpointOpen pass : 4131212846
kill ckptnd now
2)on terminal 2 (pl-4)
run this command to kill ckptnd
$pkill -9 ckptnd
payload-2:
1)on terminal 1(pl-5)
run these commands
For complilation:
$gcc main.c test.c -lSaCkpt -o tkt
For run:
$./tkt 0
a)kill the ckptnd when this sentence is printed on terminal ("kill ckptnd now
")
*******************************************************************
Demonstrating Checkpoint Service Usage with a Track Callback
*******************************************************************
Initialising With Checkpoint Service....
Opening active replica Checkpoint = safCkpt=DemoCkpt,safApp=safCkptService
with create flags....
saCkptCheckpointOpen pass : 16567296
kill ckptnd now
2)on terminal 2 (pl-5)
a)run this command to kill ckptnd
$pkill -9 ckptnd
track callback on pl-4 and pl-5:
root@mohan-VirtualBox:/home/mohan/ticket2082# cat /etc/opensaf/node_name
PL-4
root@mohan-VirtualBox:/home/mohan/ticket2082# ./tkt 1
*******************************************************************
Demonstrating Checkpoint Service Usage with a Track Callback
*******************************************************************
Initialising With Checkpoint Service....
Opening active replica Checkpoint = safCkpt=DemoCkpt,safApp=safCkptService with
create flags....
saCkptCheckpointOpen pass : 4131212846
Opening active replica Checkpoint = safCkpt=DemoCkpt,safApp=safCkptService
with
create flags....
saCkptCheckpointOpen pass : 4131212846
kill ckptnd now
saCkptTrack being enabled ....
Checkpoint being on Select .....
Sleeping before section create :
Created Section ....
section pass : 1
Ckpt TrackCallback received for SectionId`s =
Section-Id = 11 ....
SectionId-idLen = 2 ....
Reading from Checkpoint safCkpt=DemoCkpt,safApp=safCkptService Ckpt handle
=111
0BC0 ....
CheckpointRead Checkpoint TrackCallback processed
CheckpointData was written in sectionId: 11 = "Default data in the section"
payload(pl-5)
root@mohan-VirtualBox:/home/mohan/ticket2082# cat /etc/opensaf/node_name
PL-5
*******************************************************************
Demonstrating Checkpoint Service Usage with a Track Callback
*******************************************************************
Initialising With Checkpoint Service....
Opening active replica Checkpoint = safCkpt=DemoCkpt,safApp=safCkptService
with create flags....
saCkptCheckpointOpen pass : 16567296
kill ckptnd now
saCkptTrack being enabled ....
Checkpoint being on Select .....
selection object 1
Ckpt TrackCallback received for SectionId`s =
Section-Id = 11 ....
SectionId-idLen = 2 ....
Reading from Checkpoint safCkpt=DemoCkpt,safApp=safCkptService Ckpt handle
=FCCC00 ....
CheckpointRead Checkpoint TrackCallback processed
CheckpointData was written in sectionId: 11 = "Default data in the section"
dispatch 1
Attachments:
-
[test.c](https://sourceforge.net/p/opensaf/tickets/_discuss/thread/1ad2dcb2/3a73/attachment/test.c)
(11.3 kB; application/octet-stream)
---
** [tickets:#2082] CKPT : Track cbk not invoked for section creation after cpnd
restart**
**Status:** review
**Milestone:** 5.18.09
**Created:** Thu Sep 29, 2016 11:06 AM UTC by Srikanth R
**Last Updated:** Fri Sep 07, 2018 11:01 AM UTC
**Owner:** Mohan Kanakam
Changeset: 7997 5.1.FC
Track Callback is not invoked after cpnd restart. Below are the apis called
from the applications , spawned on two nodes .i.e payloads.
On first node :
-> Initialize with cpsv
-> Create a ckpt with ACTIVE REPLICA flag.
On second node.
-> Initialize with cpsv.
On First node,
-> Open the checkpoint in writing mode
-> Open the checkpoint in reading mode.
-> Kill cpnd process
-> Register for Track callback.
On Second node,
-> Open the ckpt in read mode.
-> Kill cpnd proces
-> Register for Track callback.
After ensuring that both agents registered for track callback, create a section
from the application on first node. For section creation, callback should be
invoked for applications on two nodes.
Currently callback is not invoked for the application on second node. With out
cpnd restart, callback is invoked for the two applications
---
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.------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
Opensaf-tickets mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/opensaf-tickets