{"action":"created","issue":{"url":"https://api.github.com/repos/lingochamp/FileDownloader/issues/220","repository_url":"https://api.github.com/repos/lingochamp/FileDownloader","labels_url":"https://api.github.com/repos/lingochamp/FileDownloader/issues/220/labels{/name}","comments_url":"https://api.github.com/repos/lingochamp/FileDownloader/issues/220/comments","events_url":"https://api.github.com/repos/lingochamp/FileDownloader/issues/220/events","html_url":"https://github.com/lingochamp/FileDownloader/issues/220","id":166547575,"number":220,"title":"相同url和path的任务重复启动,totalBytes为0","user":{"login":"Ernest-su","id":5917446,"avatar_url":"https://avatars.githubusercontent.com/u/5917446?v=3","gravatar_id":"","url":"https://api.github.com/users/Ernest-su","html_url":"https://github.com/Ernest-su","followers_url":"https://api.github.com/users/Ernest-su/followers","following_url":"https://api.github.com/users/Ernest-su/following{/other_user}","gists_url":"https://api.github.com/users/Ernest-su/gists{/gist_id}","starred_url":"https://api.github.com/users/Ernest-su/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Ernest-su/subscriptions","organizations_url":"https://api.github.com/users/Ernest-su/orgs","repos_url":"https://api.github.com/users/Ernest-su/repos","events_url":"https://api.github.com/users/Ernest-su/events{/privacy}","received_events_url":"https://api.github.com/users/Ernest-su/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/lingochamp/FileDownloader/labels/question","name":"question","color":"cc317c"}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2016-07-20T10:18:51Z","updated_at":"2016-07-21T04:36:12Z","closed_at":null,"body":"遇到一个奇怪的问题,在0.3.2中没有问题,在0.3.3中就出现.大概流程是:TASK A,TASK B是独立的,但是他们用相同的URL,PATH来启动一个任务,使用`forceReDownload`,首先启动TASK A,下载完成,再启动一次TASK A,在下载过程中启动TASK B, 然后TASK B的totalBytes就变成 0 了.  想写个demo复现的,结果又一直复现不了.特意打印了关键的log,能帮忙分析一下是什么原因吗?如下图,`taskId`,`modelId`是一直不变的.\r\n\r\n根据commit的记录,我怀疑是跟几个地方可能有关:`ForceReDownload`,`getStatusIgnoreCompute(id)`\r\n![1](https://cloud.githubusercontent.com/assets/5917446/16983123/f1eba410-4ea5-11e6-811c-d9813936092e.png)\r\n\r\n\r\n\r\n\r\n\r\n其中`sofarBytes` 在下载完成前一直增长,没有因为TASK B 的启动而变化\r\n\r\n整理了一份更多信息的log.希望能提供一些帮助.\r\n\r\n![2](https://cloud.githubusercontent.com/assets/5917446/16983210/52943462-4ea6-11e6-8f3d-6f505600c090.png)\r\n\r\n\r\n\r\n "},"comment":{"url":"https://api.github.com/repos/lingochamp/FileDownloader/issues/comments/234154727","html_url":"https://github.com/lingochamp/FileDownloader/issues/220#issuecomment-234154727","issue_url":"https://api.github.com/repos/lingochamp/FileDownloader/issues/220","id":234154727,"user":{"login":"Ernest-su","id":5917446,"avatar_url":"https://avatars.githubusercontent.com/u/5917446?v=3","gravatar_id":"","url":"https://api.github.com/users/Ernest-su","html_url":"https://github.com/Ernest-su","followers_url":"https://api.github.com/users/Ernest-su/followers","following_url":"https://api.github.com/users/Ernest-su/following{/other_user}","gists_url":"https://api.github.com/users/Ernest-su/gists{/gist_id}","starred_url":"https://api.github.com/users/Ernest-su/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Ernest-su/subscriptions","organizations_url":"https://api.github.com/users/Ernest-su/orgs","repos_url":"https://api.github.com/users/Ernest-su/repos","events_url":"https://api.github.com/users/Ernest-su/events{/privacy}","received_events_url":"https://api.github.com/users/Ernest-su/received_events","type":"User","site_admin":false},"created_at":"2016-07-21T04:36:12Z","updated_at":"2016-07-21T04:36:12Z","body":"上传了一个复现的demo,之前的说明有误,TASK A是强制重新下载,TASK B没有强制重新下载.\r\n[downloadtest.zip](https://github.com/lingochamp/FileDownloader/files/375164/downloadtest.zip)\r\n\r\n"}}
{"actor":{"display_login":"Ernest-su"}}