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-20.1: backupccl: stop blocking backup jobs on client disconnect #52003

Merged
merged 2 commits into from
Jul 29, 2020

Conversation

pbardea
Copy link
Contributor

@pbardea pbardea commented Jul 28, 2020

Backport 1/1 commits from #51999.

/cc @cockroachdb/release


Previously, a backup/restore job whose client disconnect might have blocked on
sending its results to the resultCh (and thus block forever). This
commit allows these jobs to complete.

Release note (bug fix): Previously, a BACKUP/RESTORE jobs would block once it
finished performing the job. This is now fixed.

@pbardea pbardea requested a review from dt July 28, 2020 15:22
@cockroach-teamcity
Copy link
Member

This change is Reviewable

Previously, a backup job whose client disconnect might have blocked on
sending its results to the resultCh (and thus block forever). This
commit allows these jobs to complete.

Release note (bug fix): Previously, a BACKUP job would block once it
finished backing up the data.
@pbardea pbardea force-pushed the backport20.1-51999 branch from f652db4 to 5caa216 Compare July 28, 2020 21:40
@pbardea pbardea force-pushed the backport20.1-51999 branch 3 times, most recently from 5e89175 to 979ce2a Compare July 29, 2020 02:06
This commit prevents RESTORE from blocking when sending its results back
over resultCh if the client that started the job disconnects.

Release note (bug fix): Previously, RESTORE would sometimes block at the
end of the job when sending its results back if the connection that
started the job disconnected. This is now fixed.
@pbardea pbardea force-pushed the backport20.1-51999 branch from 979ce2a to 845e688 Compare July 29, 2020 03:35
@pbardea pbardea merged commit e72a892 into cockroachdb:release-20.1 Jul 29, 2020
@RaduBerinde RaduBerinde mentioned this pull request Jul 29, 2020
25 tasks
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