-
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
release-22.2: sql: add crdb_internal.statement_statisticsV22_1 for upgrades #96454
Conversation
Thanks for opening a backport. Please check the backport criteria before merging:
If some of the basic criteria cannot be satisfied, ensure that the exceptional criteria are satisfied within.
Add a brief release justification to the body of your PR to justify this backport. Some other things to consider:
|
a324ca1
to
828194c
Compare
c6486ab
to
bd8201d
Compare
bd8201d
to
97b0552
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.
Reviewed 11 of 11 files at r1, all commit messages.
Reviewable status: complete! 1 of 0 LGTMs obtained (waiting on @xinhaoz)
Previously, the sql activity page would show an error while upgrading form 22.1 to 22.2 due to the stmt stats endpoing querying from the view crdb_internal.statement_statistics, due to it reading a system table column that was newly added in 22.2. This commit adds the view `crdb_internal.statement_statistics_old` which is a copy of `crdb_internal.statement_statistics`, but without the newly added index_recommendations column. This view is used to properly version gate the addition of the index_recommendations column. Fixes cockroachdb#95587 Epic: none Release note (bug fix): The sql activity page will no longer crash (show the error page), when upgrading to 22.2.
97b0552
to
c31fdb0
Compare
cockroachdb#96454 mistakenly added some extra lines to the crdb_internal logic test causing stress tests to fail. Epic: none Fixes: cockroachdb#96861 Release note: None
Fixes cockroachdb#100501 Adds `{statement|transaction}_statistics_persisted_v22_2` like they were added on cockroachdb#96454. Check the version of the cluster before deciding which view to use. This is required for mixed version cluster with 22.2 and 23.1 versions. Release note: None state between 22.2 and 23.1
Fixes cockroachdb#100501 Adds `{statement|transaction}_statistics_persisted_v22_2` like they were added on cockroachdb#96454. Check the version of the cluster before deciding which view to use. This is required for mixed version cluster with 22.2 and 23.1 versions. Release note: None
Fixes cockroachdb#100501 Adds `{statement|transaction}_statistics_persisted_v22_2` like they were added on cockroachdb#96454. Check the version of the cluster before deciding which view to use. This is required for mixed version cluster with 22.2 and 23.1 versions. Release note: None
Fixes cockroachdb#100501 Adds {statement|transaction}_statistics_persisted_v22_2 like they were added on cockroachdb#96454. Check the version of the cluster before deciding which view to use. This is required for mixed version cluster with 22.2 and 23.1 versions. Release note: None
Fixes cockroachdb#100501 Adds {statement|transaction}_statistics_persisted_v22_2 like they were added on cockroachdb#96454. Check the version of the cluster before deciding which view to use. This is required for mixed version cluster with 22.2 and 23.1 versions. Release note: None
100618: builtins: remove WaitPolicy error from fingerprinting builtin r=dt a=adityamaru During development the wait policy for ExportRequests sent during fingerprinting was set to error. This meant that if the ExportRequest encountered an intent it would immediately return and error out. This is fine if we added a retry loop similar to how backup processor requeues the request to be sent at a later time by when the intent is resolved, but as is this is incorrect. We change the WaitPolicy to block so that the ExportRequest blocks until the intent is resolved. If in the future we want to make progress while another ExportRequest is stuck resolving intents we can rework this logic to look similar to our backup strategy. Release note: None Epic: none 100703: sql: add new persistedV22_2 views r=maryliag a=maryliag Note to reviewers: this is a forward-porting from #100673 Fixes #100501 Adds {statement|transaction}_statistics_persisted_v22_2 like they were added on #96454. Check the version of the cluster before deciding which view to use. This is required for mixed version cluster with 22.2 and 23.1 versions. Release note: None 100734: backupccl: gate writing slim manifests in backup via cluster setting r=rhu713 a=rhu713 Feature gate the writing of slim manifests at the end of backup jobs with the cluster setting `backup.write_metadata_with_external_ssts.enabled`. Release note: None 100916: roachtest: fix c2c/shutdown/dest bug r=dt,adityamaru a=msbutler Previously, the c2c/shutdown/dest tests were incorrectly shutting down nodes on the source cluster. This patch fixes this. Fixes #100907 Release note: None 101057: sqlproxyccl: skip TestDirectoryConnect r=adityamaru a=knz Informs #76839. Release note: None Epic: None Co-authored-by: adityamaru <[email protected]> Co-authored-by: maryliag <[email protected]> Co-authored-by: Rui Hu <[email protected]> Co-authored-by: Michael Butler <[email protected]> Co-authored-by: Raphael 'kena' Poss <[email protected]>
Previously, the sql activity page would show an error while upgrading
form 22.1 to 22.2 due to the stmt stats endpoing querying from the view
crdb_internal.statement_statistics, due to it reading a system table
column that was newly added in 22.2.
This commit adds the view
crdb_internal.statement_statisticsV22_1
which is a copy of
crdb_internal.statement_statistics
, but withoutthe newly added index_recommendations column. This view is used to
properly version gate the addition of the index_recommendations column.
Fixes #95587
Epic: none
Release note (bug fix): The sql activity page will no longer crash
(show the error page), when upgrading to 22.2.
Release justification: bug fix