lingochamp / lingochamp/FileDownloader
队列下载,偶先长时间没有任何回调的情况, 没有进度,也没有complete,也没有error
Nobody has claimed this yet.
- Dominant language
- Java
- Stars
- 11.1k
- Forks
- 2.2k
- PR merge metrics
- No merged PRs in 30d
Description
version 1.7.6
采用的FileDownloadQueueSet来执行的多任务的串行下载。大概10%左右的概率出现长时间没有任何回调,开始以为任务出错了,或者完成了没有回调。
但是抓到一个日志, 其实并没有结束。而是四分钟之后才开始有回调。
[D][2018-08-14 +8.0 15:15:17.092][32302, 3809][FileDownloader.MessageSnapshotGate][updateKeepFlow
------中间隔了四分钟
[D][2018-08-14 +8.0 15:19:01.137][32302, 3815][FileDownloader.FetchDataTask][require flushAndSync id[757008789] index[0] offset[2115874], consume[6]
完整日志尝试很久上传。 但是一直穿不成功。
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by tracing the FileDownloadQueueSet flow through FileDownloader.MessageSnapshotGate and FileDownloader.FetchDataTask, using the supplied timestamps and the four-minute callback gap as the reproduction symptom. Determine where queued downloads stop reporting progress, completion, or errors, and verify that callbacks resume promptly without delaying the download.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- java
- Domain
- mobile-dev
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100