Opened 9 years ago

Last modified 8 years ago

#4856 assigned Bug

Torrent is re-downloaded completely when verification was not finished

Reported by: tals Owned by: jordan
Priority: Normal Milestone: None Set
Component: libtransmission Version: 2.50
Severity: Minor Keywords:
Cc:

Description

Transmission should check first if files exist when started

Precondition: There is a torrent which was updated

Steps to reproduce:
1) Remove old torrent file

transmission-remote –t 1 –r


2) Add new torrent file

transmission-remote –a new.torrent


transmission-daemon starts verifying existing files (e.g. file_1.txt file_2.txt; new file_3.txt is not downloaded yet)
3) Exit transmission-daemon while the verification of existing files is not complete (e.g. 3% verified)

killall -15 transmission-daemon


4) Start transmission-daemon again. [status of the torrent = stopped]

transmission-daemon –g /tmp/_torrents/
transmission-daemon -l

5) Start the torrent

transmission-remote -t 1 –s

Actual Result: torrent is re-downloaded completely; no verification occurs
Expected Result: existing files file_1.txt file_2.txt are verified; having completed the verification transmission-daemon starts downloading file_3.txt

Change History (5)

comment:1 Changed 9 years ago by jordan

  • Owner set to jordan
  • Status changed from new to assigned

comment:2 Changed 9 years ago by jordan

  • Component changed from Daemon to libtransmission

comment:3 Changed 8 years ago by MechMK1

I cannot see why severity is minor. Actually, if this ever happens with a larger torrent (>1 TiB), billions of billions of bytes are practically lost.

comment:4 Changed 8 years ago by freebourg

why are you using SIGTERM in the first place? Can you reproduce this bug with SIGINT and SIGKILL, which are supposed to be tried before

This is a minor issue because the overall stability and the security are not that much affected. This hasn't to be fixed ASAP. Major, minor, critical can also be used to denote the priority of issues to fix.

BTW, I don't to be pedantic but 1 TB is "only" 240

~= 1012 = 1,000,000,000,000 bytes

comment:5 Changed 8 years ago by tals

The issue is reproducible both with SIGINT & SIGKILL

SIGINT & restart; Torrent status=stopped; SIGKILL & restart; Torrent status=downloading;

In any case verification is not invoked.

Thanks

Note: See TracTickets for help on using tickets.