[asterisk-bugs] [Asterisk 0015059]: If the database loses connection for a few seconds, no cdr gets written ever

Asterisk Bug Tracker noreply at bugs.digium.com
Fri May 8 11:15:32 CDT 2009


A NOTE has been added to this issue. 
====================================================================== 
http://bugs.digium.com/view.php?id=15059 
====================================================================== 
Reported By:                falves11
Assigned To:                tilghman
====================================================================== 
Project:                    Asterisk
Issue ID:                   15059
Category:                   CDR/cdr_adaptive_odbc
Reproducibility:            always
Severity:                   major
Priority:                   normal
Status:                     closed
Asterisk Version:           SVN 
Regression:                 No 
SVN Branch (only for SVN checkouts, not tarball releases): 1.6.2 
SVN Revision (number only!): 192874 
Request Review:              
Resolution:                 unable to reproduce
Fixed in Version:           
====================================================================== 
Date Submitted:             2009-05-08 01:19 CDT
Last Modified:              2009-05-08 11:15 CDT
====================================================================== 
Summary:                    If the database loses connection for a few seconds,
no cdr gets written ever
Description: 
This is a major and potentially very costly problem with cdr_adaptive.
Suppose I close the firewall in the database (SQL 2005) for 10 seconds.
Then no CDR gets saved to the database ever. ODBC keeps working, I mean, it
bounces back, because successive calls to func_odbc do work. But
cdr_adapative does not any reseiliance, it just never writes a cdr anymore.
It happpened to me twice alrfeady in production.
====================================================================== 

---------------------------------------------------------------------- 
 (0104470) tilghman (administrator) - 2009-05-08 11:15
 http://bugs.digium.com/view.php?id=15059#c104470 
---------------------------------------------------------------------- 
Just for the sake of posterity, here are my log lines:

[May  8 11:11:04] WARNING[13130]: res_odbc.c:616
ast_odbc_prepare_and_execute: SQL Execute returned an error -1: HY000:
[MySQL][ODBC 3.51 Driver][mysqld-5.0.51a-3ubuntu5.4]MySQL server has gone
away (78)
[May  8 11:11:04] WARNING[13130]: res_odbc.c:628
ast_odbc_prepare_and_execute: SQL Execute error -1! Attempting a
reconnect...
[May  8 11:11:04] WARNING[13130]: res_odbc.c:723 ast_odbc_sanity_check:
Connection is down attempting to reconnect...
Error in my_thread_global_end(): 1 threads didn't exit
[May  8 11:11:09] DEBUG[13130]: res_odbc.c:1388 odbc_obj_disconnect:
Disconnected 0 from asterisk [mysql-asterisk]
[May  8 11:11:09] DEBUG[13130]: res_odbc.c:1396 odbc_obj_disconnect:
Database handle deallocated
[May  8 11:11:09] NOTICE[13130]: res_odbc.c:1423 odbc_obj_connect:
Connecting asterisk
[May  8 11:11:09] NOTICE[13130]: res_odbc.c:1451 odbc_obj_connect:
res_odbc: Connected to asterisk [mysql-asterisk] 

Issue History 
Date Modified    Username       Field                    Change               
====================================================================== 
2009-05-08 11:15 tilghman       Note Added: 0104470                          
======================================================================




More information about the asterisk-bugs mailing list