[mythtv-commits] Ticket #8606: Backend deadlocked after database error when updating program listings from EIT

MythTV mythtv at cvs.mythtv.org
Fri Jun 25 19:20:38 UTC 2010


#8606: Backend deadlocked after database error when updating program listings from
EIT
---------------------------------------+------------------------------------
 Reporter:  malcolm.parsons@…          |       Owner:  ijr       
     Type:  defect                     |      Status:  new       
 Priority:  minor                      |   Milestone:  unknown   
Component:  MythTV - General           |     Version:  0.23-fixes
 Severity:  high                       |     Mlocked:  0         
---------------------------------------+------------------------------------
 I'm using MythTV 0.23.0+fixes25119-0ubuntu0+mythbuntu2

 I've been seeing random backend deadlocks, where the frontend lists no
 recorded programmes, the backend doesn't record anything, and the
 "Upcoming Recordings" and "Backend Status" pages in MythWeb don't load.

 Looking at the logs, there is a database error in the hour before the
 deadlock is noticed:

 2010-06-25 12:55:04.036 DB Error (change_program):
 Query was:
 UPDATE program SET starttime = ?,     endtime   = ? WHERE chanid    =
 ? AND       starttime = ?
 Bindings were:
 :CHANID=3003, :NEWEND=2010-06-29T02:45:00, :NEWSTART=2010-06-29T01:08:00,
 :OLDSTART=2010-06-29T00:35:00
 Driver error was [2/1062]:
 QMYSQL3: Unable to execute statement
 Database error was:
 Duplicate entry '3003-2010-06-29 01:08:00-0' for key 'PRIMARY'

 Is the EIT collection thread leaving a mutex locked when this error
 happens?

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


More information about the mythtv-commits mailing list