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

fix issue: sometimes volume.fsck report 'volume not found' #5537

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

ehooi
Copy link

@ehooi ehooi commented Apr 26, 2024

What problem are we solving?

sometimes volume.fsck report 'volume not found' when a volume server has multiple disk types

How are we solving the problem?

reuse volumeId to VInfo map when is exists.

How is the PR tested?

I have tested on my cluster.

Checks

  • I have added unit tests if possible.
  • I will add related wiki document changes and link to this PR after merging.

@@ -654,9 +658,10 @@ func (c *commandVolumeFsck) collectVolumeIds() (volumeIdToServer map[string]map[
isEcVolume: true,
isReadOnly: true,
}
volumeCount += 1
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Shard count is different from volume count.

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sorry, I don't have much information of seaweedfs.
I thought the count here is volume count. normal volume + ec volume (not shard)
Moreover, the reported value is not changed after code changes. (I have ec volumes too in my cluster)

Please let me know how can I fix this.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants