- **status**: review --> fixed
- **Comment**:

default(5.1) [staging:94e26f]
changeset:   7559:94e26f8b144e
parent:      7557:e641ffb6e8a6
user:        Hung Nguyen <hung.d.ngu...@dektech.com.au>
date:        Fri Apr 29 10:32:55 2016 +0700
summary:     imm: Don't fork sync process when sync is already aborted [#1790]

opensaf-5.0.x [staging:bb3b62]
changeset:   7560:bb3b622d32cb
branch:      opensaf-5.0.x
parent:      7558:fd28b88ddbd4
user:        Hung Nguyen <hung.d.ngu...@dektech.com.au>
date:        Fri Apr 29 10:32:55 2016 +0700
summary:     imm: Don't fork sync process when sync is already aborted [#1790]

opensaf-4.7.x [staging:8a3a21]
changeset:   7561:8a3a21dc75e7
branch:      opensaf-4.7.x
parent:      7555:2b506c41f13e
user:        Hung Nguyen <hung.d.ngu...@dektech.com.au>
date:        Fri Apr 29 10:32:55 2016 +0700
summary:     imm: Don't fork sync process when sync is already aborted [#1790]

opensaf-4.6.x [staging:2ab983]
changeset:   7562:2ab983a28c50
branch:      opensaf-4.6.x
parent:      7556:616b9b0902d8
user:        Hung Nguyen <hung.d.ngu...@dektech.com.au>
date:        Fri Apr 29 10:32:55 2016 +0700
summary:     imm: Don't fork sync process when sync is already aborted [#1790]





---

** [tickets:#1790] imm: Sync process is forked when sync is already aborted**

**Status:** fixed
**Milestone:** 4.6.2
**Created:** Thu Apr 28, 2016 11:44 AM UTC by Hung Nguyen
**Last Updated:** Fri Apr 29, 2016 03:52 AM UTC
**Owner:** Hung Nguyen
**Attachments:**

- [src.zip](https://sourceforge.net/p/opensaf/tickets/1790/attachment/src.zip) 
(1.2 kB; application/x-zip-compressed)


Source code of test application is attached to this ticket.

On SC-1, create object 'test=1' and update constantly its persistent rt 
attribute.
root@SC-1:~# immcfg -f test_class.xml
root@SC-1:~# immcfg -c Test test=1
root@SC-1:~# ./test_prt_update

Now let SC-2 join the cluster. The sync will be aborted due to the test app 
updating the persistent rt attribute.

Apr 28 18:13:21 SC-1 osafimmnd[3438]: WA Got error on non local rt object 
update err: 6
Apr 28 18:13:21 SC-1 osafimmnd[3438]: WA Failed RtObject update has to abort 
sync
Apr 28 18:13:21 SC-1 osafimmnd[3438]: NO NODE STATE-> IMM_NODE_FULLY_AVAILABLE 
(2761)
Apr 28 18:13:21 SC-1 osafimmnd[3438]: NO Epoch set to 5 in ImmModel
Apr 28 18:13:21 SC-1 osafimmnd[3438]: NO Coord broadcasting ABORT_SYNC, epoch:5
Apr 28 18:13:21 SC-1 osafimmd[3428]: NO ACT: New Epoch for IMMND process at 
node 2010f old epoch: 4  new epoch:5
Apr 28 18:13:21 SC-1 osafimmnd[3438]: WA Global ABORT SYNC received for epoch 5
Apr 28 18:13:21 SC-1 osafimmd[3428]: WA Successfully aborted sync. Epoch:5
Apr 28 18:13:21 SC-1 osafimmnd[3438]: NO Implementer disconnected 7 <288, 
2010f> (xhunngu)
Apr 28 18:13:21 SC-1 osafimmd[3428]: WA IMMND on controller (not currently 
coord) requests sync
Apr 28 18:13:21 SC-1 osafimmd[3428]: WA No coordinator IMMND known (case B) - 
ignoring sync request
Apr 28 18:13:21 SC-1 osafimmd[3428]: NO Node 2020f request sync sync-pid:4154 
epoch:0 
Apr 28 18:13:21 SC-1 osafimmloadd: logtrace: trace enabled to file 
/var/log/opensaf/osafimmsv, mask=0xffffffff

But the sync process is still forked.

Apr 28 18:13:21 SC-1 osafimmloadd: NO Sync starting
Apr 28 18:13:21 SC-1 osafimmnd[3438]: NO SERVER STATE: IMM_SERVER_SYNC_SERVER 
--> IMM_SERVER_READY
Apr 28 18:13:21 SC-1 osafimmloadd: IN Synced 209 objects in total
Apr 28 18:13:21 SC-1 osafimmnd[3438]: ER Node is in a state 2 that cannot 
accept finalize of sync, will terminate 1 0
Apr 28 18:13:21 SC-1 osafimmnd[3438]: ER Failed to encode IMMND finalize sync 
message
Apr 28 18:13:21 SC-1 osafimmloadd: ER immsv_finalize_sync failed!
Apr 28 18:13:21 SC-1 osafimmloadd: ER Sync ending ABNORMALLY




---

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.
------------------------------------------------------------------------------
Find and fix application performance issues faster with Applications Manager
Applications Manager provides deep performance insights into multiple tiers of
your business applications. It resolves application problems quickly and
reduces your MTTR. Get your free trial!
https://ad.doubleclick.net/ddm/clk/302982198;130105516;z
_______________________________________________
Opensaf-tickets mailing list
Opensaf-tickets@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/opensaf-tickets

Reply via email to