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

sqlstats: stats flush should honor stopper quiesce #135336

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

Conversation

dhartunian
Copy link
Collaborator

I'm not sure if this is the correct solution yet


Previously, sql stats flushes would wait on two separate async tasks that were kicked off to flush Statement and Transaction stats respectively.

This could potentially block forever on the waitGroup if our stopper was quiescing and the tasks would never execute.

Resolves: #133106

Release note: None

Previously, sql stats flushes would wait on two separate async
tasks that were kicked off to flush Statement and Transaction stats
respectively.

This could potentially block forever on the `waitGroup` if our stopper
was quiescing and the tasks would never execute.

Resolves: cockroachdb#133106

Release note: None
@dhartunian dhartunian added the do-not-merge bors won't merge a PR with this label. label Nov 15, 2024
@dhartunian dhartunian requested a review from a team as a code owner November 15, 2024 21:45
@dhartunian dhartunian requested review from kyle-a-wong and removed request for a team November 15, 2024 21:45
Copy link

blathers-crl bot commented Nov 15, 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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
do-not-merge bors won't merge a PR with this label.
Projects
None yet
2 participants