[asterisk-bugs] [Asterisk 0016081]: utils.c:938 ast_carefulwrite: Timed out trying to write causes corruption to astdb

Asterisk Bug Tracker noreply at bugs.digium.com
Thu Oct 15 18:32:18 CDT 2009


A NOTE has been added to this issue. 
====================================================================== 
https://issues.asterisk.org/view.php?id=16081 
====================================================================== 
Reported By:                aragon
Assigned To:                
====================================================================== 
Project:                    Asterisk
Issue ID:                   16081
Category:                   Applications/app_queue
Reproducibility:            have not tried
Severity:                   block
Priority:                   normal
Status:                     new
Asterisk Version:           1.4.26.1 
JIRA:                        
Regression:                 No 
Reviewboard Link:            
SVN Branch (only for SVN checkouts, not tarball releases): N/A 
SVN Revision (number only!):  
Request Review:              
====================================================================== 
Date Submitted:             2009-10-15 10:02 CDT
Last Modified:              2009-10-15 18:32 CDT
====================================================================== 
Summary:                    utils.c:938 ast_carefulwrite: Timed out trying to
write causes corruption to astdb
Description: 
Agent addmember to local extensions causes the agent to be logged as
non-existent channels when ast_carefulwrite times out during login.

[Oct 15 10:40:07] NOTICE[29962]: utils.c:938 ast_carefulwrite: Timed out
trying to write
[Oct 15 10:40:07] NOTICE[29962]: utils.c:938 ast_carefulwrite: Timed out
trying to write

Here  is an example of the corruption where the same local extension is
logged twice.  The "outgoing" agent cannot logoff unless I manually remove
from astdb.  The local agent can logoff but since the outgoing cannot calls
entering queue fail to reach agents and the local channel cannot log back
in.

Local/3345 at queuefifteen-outgoing/n (dynamic) (Invalid) has taken no calls
yet
      Local/3345 at queuefifteen-agent/n (dynamic) (Not in use) has taken 2
calls (last was                                                            
    1915 secs ago)

====================================================================== 

---------------------------------------------------------------------- 
 (0112353) aragon (reporter) - 2009-10-15 18:32
 https://issues.asterisk.org/view.php?id=16081#c112353 
---------------------------------------------------------------------- 
I am currently testing Asterisk 1.4.27rc1
ast_carefulwrite function on main/utils.c from pre-165796. 165796 and
current code and latest code have a different version of the function so
cannot "easily" revert the patch.

And the notices are still present in 1.4.27rc1
[Oct 15 19:21:54] NOTICE[32659]: utils.c:938 ast_carefulwrite: Timed out
trying to write
[Oct 15 19:21:54] NOTICE[32659]: utils.c:938 ast_carefulwrite: Timed out
trying to write

I deleted the astdb prior to the upgrade and have all agents logging back
into the queues.  I'll have to monitor the queues with show queues to see
how long it takes until the corruption returns. 

Issue History 
Date Modified    Username       Field                    Change               
====================================================================== 
2009-10-15 18:32 aragon         Note Added: 0112353                          
======================================================================




More information about the asterisk-bugs mailing list