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

kvserver: deflake WALBytesWritten metric #126109

Merged
merged 1 commit into from
Jun 24, 2024

Conversation

aadityasondhi
Copy link
Collaborator

There is a race condition in Pebble metrics where sometimes the WAL is rotated prior to updated the BytesIn metric to account for the previous WAL. The metrics collection call happens async so it can sometimes cause this metric to decrease for a scrape window.

Fixes: #125736.

Release note: None

There is a race condition in Pebble metrics where sometimes the WAL is
rotated prior to updated the BytesIn metric to account for the previous
WAL. The metrics collection call happens async so it can sometimes cause
this metric to decrease for a scrape window.

Fixes: cockroachdb#125736.

Release note: None
@aadityasondhi aadityasondhi requested review from RaduBerinde and a team June 24, 2024 16:15
@aadityasondhi aadityasondhi requested a review from a team as a code owner June 24, 2024 16:15
Copy link

blathers-crl bot commented Jun 24, 2024

It looks like your PR touches production code but doesn't add or edit any test code. Did you consider adding tests to your PR?

🦉 Hoot! I am a Blathers, a bot for CockroachDB. My owner is dev-inf.

@cockroach-teamcity
Copy link
Member

This change is Reviewable

Copy link
Member

@RaduBerinde RaduBerinde left a comment

Choose a reason for hiding this comment

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

:lgtm:

Reviewable status: :shipit: complete! 1 of 0 LGTMs obtained

Copy link
Collaborator Author

@aadityasondhi aadityasondhi left a comment

Choose a reason for hiding this comment

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

TFTR!

bors r=raduberinde

Reviewable status: :shipit: complete! 1 of 0 LGTMs obtained

@craig craig bot merged commit 6693f4a into cockroachdb:master Jun 24, 2024
22 checks passed
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.

kv/kvserver: TestFlowControlRaftMembership failed
3 participants