Skip to content

sql: turn plan sampling back on by default#89020

Merged
craig[bot] merged 1 commit intocockroachdb:masterfrom
maryliag:turn-plan-on
Sep 29, 2022
Merged

sql: turn plan sampling back on by default#89020
craig[bot] merged 1 commit intocockroachdb:masterfrom
maryliag:turn-plan-on

Conversation

@maryliag
Copy link
Copy Markdown
Contributor

This value was disabled by default on #88343
but brought visibility to a bug of statements not being properly trace when they should be on the first time. Since we might not be able to finish the proper fix before the cut on backports, I'm turning back on and a following commit can turn this back off and add the fix for the problem.

Release note (sql change): Turn the default value of sql.metrics.statement_details.plan_collection.enabled to true

This value was disabled by default on cockroachdb#88343
but brought visibility to a bug of statements not being properly
trace when they should be on the first time. Since
we might not be able to finish the proper fix before the
cut on backports, I'm turning back on and a following commit
can turn this back off and add the fix for the problem.

Release note (sql change): Turn the default value of
`sql.metrics.statement_details.plan_collection.enabled` to `true`
@maryliag maryliag requested a review from a team September 29, 2022 18:56
@cockroach-teamcity
Copy link
Copy Markdown
Member

This change is Reviewable

Copy link
Copy Markdown
Contributor

@xinhaoz xinhaoz left a comment

Choose a reason for hiding this comment

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

Reviewed 1 of 3 files at r1, all commit messages.
Reviewable status: :shipit: complete! 0 of 0 LGTMs obtained (waiting on @xinhaoz)

@maryliag
Copy link
Copy Markdown
Contributor Author

bors r+

@craig
Copy link
Copy Markdown
Contributor

craig bot commented Sep 29, 2022

Build failed:

@maryliag
Copy link
Copy Markdown
Contributor Author

bors r+

@craig
Copy link
Copy Markdown
Contributor

craig bot commented Sep 29, 2022

Build succeeded:

@craig craig bot merged commit 1b98079 into cockroachdb:master Sep 29, 2022
@maryliag maryliag deleted the turn-plan-on branch September 29, 2022 23:40
craig bot pushed a commit that referenced this pull request Oct 13, 2022
89782: roachtest: limit FingerprintValidator's memory usage internally r=miretskiy,srosenberg a=renatolabs

In #89332, we started optionally validating changefeed semantics in the `FingerprintValidator` by making sure that unseen updates are never observed if a `resolved` message is received. In order to keep bounds on the validator's memory usage, the `cdc/mixed-versions` test was setting a maximum number of operations at the workload level. However, a consequence of that change is that it creates the possibility for the workload to finish before the roachtest has received all the `resolved` events it expects (for instance, if draining takes longer than usual for some reason; a variety of other non-determinism is also at play).

To deal with this possibility, we instead enforce a maximum number of previously seen events at the validator's level. For the `cdc/mixed-versions` test, we set a maximum of 100,000 previously seen events being stored (20MB memory footprint). This should be equivalent to roughly 50,000 bank transfers, and give enough time for the test to finish successfully.

Release note: None

Epic: None.

89847: sql: turn plan sampling back off by default r=j82w a=j82w

The value was originally disabled by default in: #88343. The value was enabled by default: #89020 because of a bug that was fixed in #89418. This PR is disabling it by default again now that the bug has been fixed.

Part Of #89847

Release note (sql change): Turn the default value of sql.metrics.statement_details.plan_collection.enabled to false.

Co-authored-by: Renato Costa <renato@cockroachlabs.com>
Co-authored-by: j82w <jwilley@cockroachlabs.com>
blathers-crl bot pushed a commit that referenced this pull request Oct 13, 2022
This value was enabled by default again: #89020. The reason it was
enabled again was fixed in #89418.

Part of #89847

Release note (sql change): Turn the default value of
sql.metrics.statement_details.plan_collection.enabled to false.
j82w pushed a commit that referenced this pull request Oct 18, 2022
This value was enabled by default again: #89020. The reason it was
enabled again was fixed in #89418.

Part of #89847

Release justification: Bug fixes and low-risk updates to new functionality.

Release note (sql change): Turn the default value of
sql.metrics.statement_details.plan_collection.enabled to false.
j82w pushed a commit that referenced this pull request Nov 2, 2022
This value was enabled by default again: #89020. The reason it was
enabled again was fixed in #89418.

Part of #89847

Release justification: Bug fixes and low-risk updates to new functionality.

Release note (sql change): Turn the default value of
sql.metrics.statement_details.plan_collection.enabled to false.
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