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 twice increase metric counter #4961

Merged
merged 1 commit into from
Oct 30, 2023
Merged

Fix twice increase metric counter #4961

merged 1 commit into from
Oct 30, 2023

Conversation

SmsS4
Copy link
Contributor

@SmsS4 SmsS4 commented Oct 30, 2023

What problem are we solving?

#4960 (comment)
Looks like VolumeServerRequestCounter increase twice if cookie is not valid

How are we solving the problem?

delete stats.VolumeServerRequestCounter.WithLabelValues(stats.ErrorGetNotFound).Inc()

How is the PR tested?

Run weed server

Checks

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

@chrislusf chrislusf merged commit ba11331 into seaweedfs:master Oct 30, 2023
4 checks passed
@Cottand Cottand mentioned this pull request Oct 31, 2023
2 tasks
duanhongyi pushed a commit to duanhongyi/seaweedfs that referenced this pull request Nov 17, 2023
kmlebedev pushed a commit to kmlebedev/seaweedfs that referenced this pull request Dec 22, 2023
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