Best behavior for when torrent files are offline/inaccessible - per situation
Posted: Wed Sep 17, 2014 5:35 am
[quote="AsaRossoff"]
...I am interested in a discussion of best behavior for paused torrents as it relates to this scenario of intentional removal of file access; and even the scenario of a drive going offline due to an accidental issue, such as network error, OS issues (perhaps file handles can't be allocated due to something), temporary bus failure (e.g. USB/1394 as most likely), temporary drive failure (e.g. overheating); and even accidental user action such as moving or renaming of files (which they might remedy by moving them back or using Set Location or renames in qBT afterward).
All thoughts welcome. What do people think should happen? What about my scenario or the others I mentioned above? What counter-examples do you have to argue for the current or similar behavior, etc.?
Thanks, always
[/quote]
You can click that quote for my full set of ideas so far on what behaviors might be desirable, and read the remainder of this post and the replies for my initial post describing the specific problem I encountered that raised the issue for me.
It would be great if we can brainstorm together.
Initial Subject: Files Sizes Mismatch error; torrents to 0% on _paused_ torrents in unavail. loc.
I squeezed most of what needs to be said into the subject heading.
qBT 3.1.9.2, Windows 7.
What transpired:
I had about 150 torrents on an external drive that I needed to disconnect from the computer temporarily (for a couple days).
About 100 out of the 150 or so torrents were seeding.
The remaining 50 or so were long paused, probably never active during the qBT session.
I paused the ~100 seeding torrents.
I waited for all file handles to that drive to be closed.
I used "safely remove hardware" to unmount the external drive (which succeeded once all file handles were closed).
I don't know how much time transpired between the removal of the drive and qBT generating errors.. I did not notice the errors until I went to reconnect the drive a couple days later...
After remounting the drive, I was going to resume seeding torrents...
Without looking closely, I resumed some of them, but then I noticed that they went into stalled or downloading status!
I paused those torrents again.
I found that all the torrents on that drive, whether I had previously been seeding them or not, and without regard to whether I had just tried to resume them or not, were marked as 0% complete.
I checked the log and found that there were log entries from a couple days ago) indicating "File sizes mismatch for torrent ..., pausing it." (although they were all already in a paused state for all the torrents on that drive. All the errors were recorded in a span of about 30 seconds, in short order after one another.
Finally, just now, I did a clean shutdown of qBT and a restart. No change. The torrents still all want to download if I unpause them. All still show 0%.

Now I will begin force-rechecking them all...
Questions:
Is this known behavior?
Why did qBT look for the paused torrents' files?
More importantly, why did it consider it a critical file integrity error when the torrents were paused for the files not to be there?
Sounds similar to Torrent recheck forced after error I/O (even for paused torrent) #1471 - although that bug describes a different workflow.
If desired, I will report this on the bugtracker.
Thanks!
edit: changed purpose of post to discuss qBT functionality ideas, added intro to my initial post.
...I am interested in a discussion of best behavior for paused torrents as it relates to this scenario of intentional removal of file access; and even the scenario of a drive going offline due to an accidental issue, such as network error, OS issues (perhaps file handles can't be allocated due to something), temporary bus failure (e.g. USB/1394 as most likely), temporary drive failure (e.g. overheating); and even accidental user action such as moving or renaming of files (which they might remedy by moving them back or using Set Location or renames in qBT afterward).
All thoughts welcome. What do people think should happen? What about my scenario or the others I mentioned above? What counter-examples do you have to argue for the current or similar behavior, etc.?
Thanks, always

[/quote]
You can click that quote for my full set of ideas so far on what behaviors might be desirable, and read the remainder of this post and the replies for my initial post describing the specific problem I encountered that raised the issue for me.
It would be great if we can brainstorm together.

Initial Subject: Files Sizes Mismatch error; torrents to 0% on _paused_ torrents in unavail. loc.
I squeezed most of what needs to be said into the subject heading.
qBT 3.1.9.2, Windows 7.
What transpired:
I had about 150 torrents on an external drive that I needed to disconnect from the computer temporarily (for a couple days).
About 100 out of the 150 or so torrents were seeding.
The remaining 50 or so were long paused, probably never active during the qBT session.
I paused the ~100 seeding torrents.
I waited for all file handles to that drive to be closed.
I used "safely remove hardware" to unmount the external drive (which succeeded once all file handles were closed).
I don't know how much time transpired between the removal of the drive and qBT generating errors.. I did not notice the errors until I went to reconnect the drive a couple days later...
After remounting the drive, I was going to resume seeding torrents...
Without looking closely, I resumed some of them, but then I noticed that they went into stalled or downloading status!
I paused those torrents again.
I found that all the torrents on that drive, whether I had previously been seeding them or not, and without regard to whether I had just tried to resume them or not, were marked as 0% complete.
I checked the log and found that there were log entries from a couple days ago) indicating "File sizes mismatch for torrent ..., pausing it." (although they were all already in a paused state for all the torrents on that drive. All the errors were recorded in a span of about 30 seconds, in short order after one another.
Finally, just now, I did a clean shutdown of qBT and a restart. No change. The torrents still all want to download if I unpause them. All still show 0%.

Now I will begin force-rechecking them all...
Questions:
Is this known behavior?
Why did qBT look for the paused torrents' files?
More importantly, why did it consider it a critical file integrity error when the torrents were paused for the files not to be there?
Sounds similar to Torrent recheck forced after error I/O (even for paused torrent) #1471 - although that bug describes a different workflow.
If desired, I will report this on the bugtracker.
Thanks!
edit: changed purpose of post to discuss qBT functionality ideas, added intro to my initial post.