Connected Server 1.5 Scanning Race Condition

1 reply [Last post]
AW
AW's picture
User offline. Last seen 2 years 10 weeks ago. Offline
Joined: 12/02/2008
Posts: 56

I have handbrake running converting some videos.

The output is going to a directory which is served out by Connected 1.5.

Everything is going fine until the conversion is almost done (i.e., writing out data), then Connected 1.5 starts climbing up on the process list to the top.

My conversion job comes to a halt.

It's pretty apparent that my handbrake conversion is blocked by the scanner, and that the scanner is waiting on an end-of-file that won't arrive.

So, obviously, "if it hurts, don't do that." But I thought I'd bring it up. I saw a less hurtful version of this behavior on 1.4, but it never seemed to bog down to a stop, it just slowed down Connected Server a little while it kept rescanning the file.

It seems the best practice though is to always write out to some kind of queue area and not add it into areas server by Connected until I'm done, but if there was some way Connected could look for the race that would be good too.

My workaround for now was to kill the scanner and the server. The conversion job picked back up.

Thanks

I've logged this issue

Hey AW,

I've logged this issue, and we may hit you up if we have more questions. I guess the workaround for now is to encode to a directory that IS NOT being scanned by Connected, and then manually move the files over when the process is done.

In the meantime, we'll check out this issue.

Thanks for catching this!

Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.