[mythtv-commits] Ticket #7762: Autoshutdown slave feature enhanced
MythTV
mythtv at cvs.mythtv.org
Wed Feb 10 21:28:04 UTC 2010
#7762: Autoshutdown slave feature enhanced
-------------------------------+--------------------------------------------
Reporter: gmembre@… | Owner: cpinkham
Type: enhancement | Status: assigned
Priority: minor | Milestone:
Component: MythTV - General | Version: unknown
Severity: medium | Mlocked: 0
-------------------------------+--------------------------------------------
Comment(by anonymous):
Thanks for the attention cpinkham,
I am testing this patch because I have a couple of problems with [20084]
as found in my 22759 svn, that I thought this may help with. I haven't
reported them elsewhere yet but was planning on it.
* I'm getting a race condition or similar shutting down the SBE just after
a transcode job has begun from a cron wakeup (since the SBE cannot refuse
to shutdown in the original incarnation)
* And also it would be nice if the JobQueue could wake up SBEs that are
sleeping.
The patch has merit, the use of an OK or BUSY response based on a check of
mythshutdown is great, just seems there are a few issues with the
implementation - you mention ''way'' more than I could find.
I'm running the Feb 9 version of the patch now, but it still has problems.
True I am running a version earlier than the patch was written for, and I
am seeing socket problems as follows:
{{{
2010-02-10 20:56:35.359 Scheduler, Checking for slaves that can be wake up
2010-02-10 20:56:35.361 Scheduler, Checking for slaves that can be shut
down
2010-02-10 20:56:35.362 Getting list of slaves that will be active in
the next 15 minutes.
2010-02-10 20:56:35.363 Checking scheduler's reclist
2010-02-10 20:56:35.365 Checking inuseprograms table:
2010-02-10 20:56:35.369 No entries.
2010-02-10 20:56:35.370 Asking Server to go to sleep.
2010-02-10 20:56:35.546 MainServer::ANN Monitor
2010-02-10 20:56:35.548 adding: Server as a client (events: 0)
2010-02-10 20:56:35.551 MainServer::ANN Monitor
2010-02-10 20:56:35.553 adding: Server as a client (events: 1)
2010-02-10 20:57:05.373 MythSocket(a1f7858:31): readStringList: Error,
timed out after 30000 ms.
2010-02-10 20:57:05.384 Slave backend: Server no longer connected
2010-02-10 20:57:05.387 MythSocket(a1f7858:-1): writeStringList: Error,
called with unconnected socket.
2010-02-10 20:57:05.395 MythSocket(a1f7858:-1): readStringList: Error,
called with unconnected socket.
2010-02-10 20:57:05.397 PlaybackSock::SendReceiveStringList(): No
response.
2010-02-10 20:57:05.398 PlaybackSock, Error: GetEncoderState:
QUERY_REMOTEENCODER 4 gave us no response.
2010-02-10 20:57:05.397 PlaybackSock::SendReceiveStringList(): No
response.
2010-02-10 20:57:05.408 Slave Server responded that it will not go
to sleep.
2010-02-10 20:57:05.419 Reschedule requested for id 0.
2010-02-10 20:57:05.425 BuildWorkList...
2010-02-10 20:57:05.427 AddNewRecords...
}}}
So, the SBE actually goes to sleep (log not copied here) but the MBE
thinks it has refused due to the socket issue. That may be because
something important has changed between versions 22759 and 22882, as
Guillame reports it is working for him. I assumed nothing vital would have
changed between those versions but looks like I was incorrect.
Since I am stuck with a system that doesn't work properly I will back out
the change for now and look at upgrading to 22882 to test further.
Cheers, Simon.
--
Ticket URL: <http://svn.mythtv.org/trac/ticket/7762#comment:7>
MythTV <http://www.mythtv.org/>
MythTV
More information about the mythtv-commits
mailing list