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-21.1: sql: lease acquisition of OFFLINE descs may starve bulk operations #63558

Merged
merged 1 commit into from
Apr 13, 2021

Conversation

fqazi
Copy link
Collaborator

@fqazi fqazi commented Apr 13, 2021

Backport 1/1 commits from #62959.

/cc @cockroachdb/release


Fixes: #61798

Previously, offline descriptors would never have their leases
cached and they would be released once the reference count hit zero.
This was inadequate because when attempting to online these tables
again the lease acquisition could be pushed back by other operations,
leading to starvation / live locks. To address this, this patch will
allow the leases of offline descriptors to be cached.

Release note (bug fix): Lease acquisitions of descriptor in a
offline state may starve out bulk operations (backup / restore)

@fqazi fqazi requested review from ajwerner, a team and dt and removed request for a team April 13, 2021 17:17
@cockroach-teamcity
Copy link
Member

This change is Reviewable

Copy link
Contributor

@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.

:lgtm: when ci is happy

Reviewable status: :shipit: complete! 1 of 0 LGTMs obtained (waiting on @dt)

@fqazi fqazi force-pushed the backport21.1-62959 branch from ab5ddb3 to 6fd3eba Compare April 13, 2021 18:26
Fixes: cockroachdb#61798

Previously, offline descriptors would never have their leases
cached and they would be released once the reference count hit zero.
This was inadequate because when attempting to online these tables
again the lease acquisition could be pushed back by other operations,
leading to starvation / live locks. To address this, this patch will
allow the leases of offline descriptors to be cached.

Release note (bug fix): Lease acquisitions of descriptor in a
offline state may starve out bulk operations (backup / restore)
@fqazi fqazi force-pushed the backport21.1-62959 branch from 6fd3eba to 67ed707 Compare April 13, 2021 20:09
@fqazi fqazi merged commit 1963f9f into cockroachdb:release-21.1 Apr 13, 2021
@fqazi fqazi deleted the backport21.1-62959 branch April 13, 2021 21:14
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