Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

a mass of shard to initialize when launch up will affect othter function of droplet #504

Closed
3 tasks
LinZexiao opened this issue Dec 16, 2023 · 0 comments · Fixed by #506
Closed
3 tasks
Assignees
Labels
C-bug Category: This is a bug

Comments

@LinZexiao
Copy link
Collaborator

LinZexiao commented Dec 16, 2023

Droplet / 水滴

  • droplet
  • droplet-client
  • 文档 / docs

Description / 描述

当 droplet 启动时, 可能会有大量的 shard 需要处理, 这个时候会影响 droplet 其他的功能
甚至连 piece-storage list 的执行也会被阻塞住
但是 把 shard 状态的状态数据库移除就可以继续往后做了

可能原因是下述代码创建大量协程导致 droplet 无法正常执行

// /root/go/pkg/mod/github.com/ipfs-force-community/dagstore@v0.4.4-0.20230628060530-4b25fff4d833/dagstore_control.go:101
			go d.initializeShard(tsk.ctx, s, s.mount)
@LinZexiao LinZexiao added C-enhancement Category: feature enhancement C-bug Category: This is a bug and removed C-enhancement Category: feature enhancement labels Dec 16, 2023
@LinZexiao LinZexiao self-assigned this Dec 18, 2023
@Fatman13 Fatman13 added this to the Droplet / 水滴 v2.11.0 milestone Jan 29, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
C-bug Category: This is a bug
Projects
Status: Done
Development

Successfully merging a pull request may close this issue.

2 participants