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

release-20.2: sql: disallow txn stats collection if stat collection threshold is set #56380

Merged
merged 1 commit into from
Nov 6, 2020

Conversation

arulajmani
Copy link
Collaborator

Backport 1/1 commits from #55224.

/cc @cockroachdb/release


Previously, when a transaction was comprised of statements that
overshot the configured sql.metrics.statement_details.threshold, we
would record the statementID for the txn even though there was no
record of the statementID in the statement stats. This could prove
confusing. This patch blanket disallows txn stats collection if the
cluster setting is configured.

Closes #54697

Release note (admin ui change): Transaction statistics are no longer
recorded if the sql.metrics.statement_details.threshold cluster
setting has been enabled.

Previously, when a transaction was comprised of statements that
overshot the configured `sql.metrics.statement_details.threshold`, we
would record the statementID for the txn even though there was no
record of the statementID in the statement stats. This could prove
confusing. This patch blanket disallows txn stats collection if the
cluster setting is configured.

Closes cockroachdb#54697

Release note (admin ui change): Transaction statistics are no longer
recorded if the `sql.metrics.statement_details.threshold` cluster
setting has been enabled.
@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
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants