- **status**: review --> fixed
- **assigned_to**: Canh Truong -->  nobody 
- **Comment**:

commit 1315ade5d2223ecb22cc3076da00d4cee09ec7f7 (HEAD -> develop, 
origin/develop)
Author: Canh Van Truong <[email protected]>
Date:   Thu Aug 23 14:31:47 2018 +0700

    log: fix timeout when deleting configuration stream [#2903]

    During closing stream, log sevice does try again in 8s when renaming file.
    the log server is hung in that time and cannot poll and process any 
requests.
    If the completed_callback come from imm in that time, the callback cannot be
    processed in time (in 6s) and cause timeout issue happen.

    The try again in 8s should be remove to avoid hanging any requests. And 
specialy
    here is to avoid timeout of callback requests from imm



---

** [tickets:#2903] log: timeout when deleting configuration stream by immcfg 
-d**

**Status:** fixed
**Milestone:** 5.18.09
**Created:** Mon Jul 30, 2018 07:36 AM UTC by Canh Truong
**Last Updated:** Thu Aug 30, 2018 12:45 PM UTC
**Owner:** nobody


Steps:
1/ create cfg stream 1
   - immcfg -c SaLogStreamConfig  safLgStrCfg=Test1 -a saLogStreamPathName=. -a 
saLogStreamFileName=Test1
2/  create cfg stream 2
 -  immcfg -c SaLogStreamConfig  safLgStrCfg=Test2 -a saLogStreamPathName=. -a 
saLogStreamFileName=Test2
3/ Delete stream 1
 - immcfg -d  safLgStrCfg=Test1
4/ Delete stream 2
 - immcfg -d  safLgStrCfg=Test2


- In step 3 ,  ccb_apply_callback_delete is called (from log service)when 
deleting stream 1. The callback take 8 second to do try again renaming file. 
imm return command "immcfg -d" before the callback has done.
-  In step 4, ccb_comleted_callback is call (from log service) when deleting 
stream 2. the request to call the completed callback is sent to log mbx. But 
now log service is processing the renaming (in step3). Imm just wait 6seconds 
for the repons of completed_callback. So the completed callback has not been 
processed in 6s, and imm has not got the response of this callback. ==> Timeout 
issue happen 

syslog:
2018-07-23 21:59:27.410 SC-1 osaflogd[223]: NO rename: FAILED - No such file or 
directory
2018-07-23 21:59:32.413 SC-1 osaflogd[223]: message repeated 10 times: [ NO 
rename: FAILED - No such file or directory]
2018-07-23 21:59:32.565 SC-1 osafimmnd[207]: WA Timeout while waiting for 
implementer, aborting ccb:105
2018-07-23 21:59:32.567 SC-1 osafimmnd[207]: NO Aborting ccb 105 while waiting 
for replies from implementers on DELETE-OP
2018-07-23 21:59:32.567 SC-1 osafimmnd[207]: NO Ccb 105 ABORTED 
(immcfg_SC-2_886)
2018-07-23 21:59:32.914 SC-1 osaflogd[223]: NO rename: FAILED - No such file or 
directory
2018-07-23 21:59:34.915 SC-1 osaflogd[223]: message repeated 4 times: [ NO 
rename: FAILED - No such file or directory]
2018-07-23 21:59:34.916 SC-1 osaflogd[223]: WA Could not rename log file: 
Resource temporarily unavailable
2018-07-23 21:59:34.957 SC-1 osafimmnd[207]: NO Ccb 106 COMMITTED 
(immcfg_SC-2_890)




---

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

Reply via email to