dragonflyoss / Dragonfly2

Dragonfly is an open source P2P-based file distribution and image acceleration system. It is hosted by the Cloud Native Computing Foundation (CNCF) as an Incubating Level Project.
https://d7y.io
Apache License 2.0
2.22k stars 281 forks source link

watch sync pieces timout #3311

Open DaiYifan opened 3 months ago

DaiYifan commented 3 months ago

Bug report:

高并发下载镜像场景,偶现某个task会卡住很久才下载成功

Expected behavior:

报错日志如下 {"level":"warn","ts":"2024-06-06 14:36:28.913","caller":"peer/peertask_piecetask_synchronizer.go:469","msg":"watch sync pieces timeout, may be a bug, please file a issue in https://github.com/dragonflyoss/Dragonfly2/issues","peer":"10.160.244.12-33432-c6ae2cdd-ae75-42b0-8319-432a6f3c79e4","task":"fda343039ec8a679802f86b51b1eab6f9a238e0a1e6f8e8299b236ef980377ef","component":"PeerTask","trace":"565f92506280cb4eadca695ab47bd534","stacktrace":"d7y.io/dragonfly/v2/client/daemon/peer.(*synchronizerWatchdog).watch\n\t/home/runner/work/Dragonfly2/Dragonfly2/client/daemon/peer/peertask_piecetask_synchronizer.go:469"}

Environment:

gaius-qi commented 3 months ago

Bug report:

高并发下载镜像场景,偶现某个task会卡住很久才下载成功

Expected behavior:

报错日志如下

{"level":"warn","ts":"2024-06-06 14:36:28.913","caller":"peer/peertask_piecetask_synchronizer.go:469","msg":"watch sync pieces timeout, may be a bug, please file a issue in https://github.com/dragonflyoss/Dragonfly2/issues","peer":"10.160.244.12-33432-c6ae2cdd-ae75-42b0-8319-432a6f3c79e4","task":"fda343039ec8a679802f86b51b1eab6f9a238e0a1e6f8e8299b236ef980377ef","component":"PeerTask","trace":"565f92506280cb4eadca695ab47bd534","stacktrace":"d7y.io/dragonfly/v2/client/daemon/peer.(*synchronizerWatchdog).watch\n\t/home/runner/work/Dragonfly2/Dragonfly2/client/daemon/peer/peertask_piecetask_synchronizer.go:469"}

Environment:

  • Dragonfly version: 2.1.30

  • OS:

  • linux

  • Others:

@jim3ma

jim3ma commented 3 months ago

麻烦上传一下具体的日志(core.log) 当前默认超时时间设置的是 30s,issue 里说的卡很久指的是多久?