Skip to content

release-21.1: sql: lease acquisition of OFFLINE descs may starve bulk operations#63558

Merged
fqazi merged 1 commit intocockroachdb:release-21.1from
fqazi:backport21.1-62959
Apr 13, 2021
Merged

release-21.1: sql: lease acquisition of OFFLINE descs may starve bulk operations#63558
fqazi merged 1 commit intocockroachdb:release-21.1from
fqazi:backport21.1-62959

Conversation

@fqazi
Copy link
Copy Markdown
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 a team, ajwerner and dt and removed request for a team April 13, 2021 17:17
@cockroach-teamcity
Copy link
Copy Markdown
Member

This change is Reviewable

Copy link
Copy Markdown
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