[mythtv-commits] Ticket #1886: mythbackend gets stuck when the database disappears

MythTV mythtv at cvs.mythtv.org
Sun May 28 15:50:49 UTC 2006


#1886: mythbackend gets stuck when the database disappears
-------------------------------------+--------------------------------------
 Reporter:  chrisb at crustynet.org.uk  |       Owner:  ijr 
     Type:  defect                   |      Status:  new 
 Priority:  critical                 |   Milestone:      
Component:  mythtv                   |     Version:  0.19
 Severity:  high                     |  
-------------------------------------+--------------------------------------
 Sorry if this bug has already been reported, but I was unable to find it
 using the search..

 Using mythtv version: 0.19.20060121-2

 If the MySQL server goes down while mythbackend is running, it appears to
 get stuck in an infinite loop. It fills the log with the following message
 repeated every few  milliseconds:

 2006-05-28 16:41:44.730 DB Error (insert_program -- lock):
 Query was:
 LOCK TABLES recorded WRITE
 No error type from QSqlError?  Strange...
 QSqlQuery::prepare: database not open
 QSqlQuery::exec: database not open
 2006-05-28 16:41:44.741 DB Error (insert_program -- lock):
 Query was:
 LOCK TABLES recorded WRITE
 No error type from QSqlError?  Strange...
 QSqlQuery::prepare: database not open
 QSqlQuery::exec: database not open
 2006-05-28 16:41:44.754 DB Error (insert_program -- lock):
 Query was:
 LOCK TABLES recorded WRITE
 No error type from QSqlError?  Strange...
 QSqlQuery::prepare: database not open
 QSqlQuery::exec: database not open

 Even after the database comes back up, the situation is not resolved. From
 the looks of it, at no point does it attempt to reconnect to the database,
 but instead just retries the same query over and over again on the old
 dead database connection.

-- 
Ticket URL: <http://svn.mythtv.org/trac/ticket/1886>
MythTV <http://www.mythtv.org/>
MythTV


More information about the mythtv-commits mailing list