Skip to content

sql/catalog/lease: revert fallback change and fallback also when doing by-id lookups#61493

Merged
craig[bot] merged 2 commits intocockroachdb:masterfrom
ajwerner:ajwerner/fix-leasing-things
Mar 9, 2021
Merged

sql/catalog/lease: revert fallback change and fallback also when doing by-id lookups#61493
craig[bot] merged 2 commits intocockroachdb:masterfrom
ajwerner:ajwerner/fix-leasing-things

Conversation

@ajwerner
Copy link
Copy Markdown
Contributor

@ajwerner ajwerner commented Mar 4, 2021

This PR reverts #59606 and then adds the parallel fallback logic to the ByID resolution path. It was uncovered by the schema change workload. In particular, we were missing out on the ability to do AS OF SYSTEM TIME reads on dropped schemas or types after they had been fully dropped.

Fixes #57487.

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

Release note: None

@ajwerner ajwerner requested review from a team and postamar March 4, 2021 19:08
@cockroach-teamcity
Copy link
Copy Markdown
Member

This change is Reviewable

ajwerner added 2 commits March 8, 2021 22:21
…ptors"

This reverts commit e3f09d5.

Release justification:
Release note (<category, see below>): <what> <show> <why>
…riptor

This fallback is potentially expensive but it turns out to be crucial.
I'm somewhat sad about it but this is a pretty bad bug that very much
breaks the schemachange workload.

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

Release note: None
@ajwerner ajwerner force-pushed the ajwerner/fix-leasing-things branch from 69e6af3 to f09203f Compare March 9, 2021 03:22
Copy link
Copy Markdown
Contributor Author

@ajwerner ajwerner left a comment

Choose a reason for hiding this comment

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

bors r+

Reviewable status: :shipit: complete! 0 of 0 LGTMs obtained

@craig
Copy link
Copy Markdown
Contributor

craig bot commented Mar 9, 2021

Build succeeded:

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.

sql: descriptor is being dropped (SQLSTATE XXUUU)

3 participants