[mythtv-commits] Ticket #12281: Scheduler confused by stopping a failing recording

MythTV noreply at mythtv.org
Sun Nov 8 21:18:21 UTC 2015


#12281: Scheduler confused by stopping a failing recording
-------------------------------------------+-----------------------------
 Reporter:  Roger Siddons <dizygotheca@…>  |          Owner:  jpoet
     Type:  Bug Report - General           |         Status:  accepted
 Priority:  minor                          |      Milestone:  unknown
Component:  MythTV - Recording             |        Version:  Master Head
 Severity:  medium                         |     Resolution:
 Keywords:                                 |  Ticket locked:  0
-------------------------------------------+-----------------------------

Comment (by Roger Siddons <dizygotheca@…>):

 Issue 1.

 Stopping recordings from the Schedule Guide causes a race condition
 between recorder and scheduler. In the following log note the difference
 between stopping from Upcoming Recordings and stopping from the guide .
 Whilst not a problem here, I have seen cases where the recorder changes
 the recording status whilst the scheduler is in mid-run. Also the
 scheduler can restart a recording before the recorder has closed the
 existing one. The consequences are difficult to identify.

 Programmes on the guide have no hostname initialised (no need) but
 MS::DoHandleStopRecording uses the hostname to distinguish slave requests.
 Thus all Guide STOP_RECORDINGS are treated as slave requests meaning the
 recording status update & reschedule is invoked before the recorder is
 stopped, instead of afterwards.

 The following patch initialises hostnames for guide programmes to correct
 the message handling.

--
Ticket URL: <https://code.mythtv.org/trac/ticket/12281#comment:8>
MythTV <http://www.mythtv.org>
MythTV Media Center


More information about the mythtv-commits mailing list