Connected Server 1.5 Scanning Race Condition
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


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!