-
Notifications
You must be signed in to change notification settings - Fork 3.8k
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
sql: instantiate metrics for internal sql stats #65575
sql: instantiate metrics for internal sql stats #65575
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Reviewed 3 of 3 files at r1.
Reviewable status: complete! 1 of 0 LGTMs obtained (waiting on @rafiss)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
is there a test that can be written to prevent a regression?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
i wonder why the randomized test caused this, but none of the existing tests did?
eaf1a71
to
7cdf7bb
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The randomized test failed because this bug is only trigger when the amount of fingerprint exceeded either the cluster setting limit or the memory limit.
I added a test to catch this.
Reviewable status: complete! 0 of 0 LGTMs obtained (and 1 stale) (waiting on @Azhng)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
awesome! thanks for the explanation and for the fix!
Previously, we did not instantiate metrics for internal SQL stats. However, this can cause issues when connExecutor is being created by InternalExecutor. In order to address this, we also instantiate metrics for internal stats. Release note: None Closes cockroachdb#65523
7cdf7bb
to
0955915
Compare
Hmm, bazel is not happy. Rebased see if that address the problem. |
TFTR! bors r+ |
Build succeeded: |
Previously, we did not instantiate metrics for internal SQL stats.
However, this can cause issues when connExecutor is being created
by InternalExecutor. In order to address this, we also instantiate
metrics for internal stats.
Release note: None
Closes #65523