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: bulkio: import no longer gets stuck due to errors encountered during import #50089

Merged
merged 2 commits into from
Jun 12, 2020

Conversation

miretskiy
Copy link
Contributor

Backport:

Please see individual PRs for details.

/cc @cockroachdb/release

@cockroach-teamcity
Copy link
Member

This change is Reviewable

@miretskiy miretskiy changed the title release-20.1: TODO release-20.1: bulkio: import no longer gets stuck due to errors encountered during import Jun 11, 2020
Fixes cockroachdb#49977

Parallel importer could get stuck  due to a race between emitted
import batches and checking for context cancellation (either due to an
unforeseen error, or due to explicit context cancallation).

Fix the race condition, and add tests verifying correct behavior.

Release notes (bug fix): correctly handle import cancellation and errors.
@miretskiy
Copy link
Contributor Author

fyi @nvanbenschoten : trying to resolve merge issues due to the fact that types.XXX is no longer a pointer (on master).

Fixes cockroachdb#49989

Correctly link data import producer and consumer when importing data.
Using separate groups for producer and consumer could lead to a situation
where consumer exits (due to an error, or explicit context cancellation), while
producer does not realize that, leading to a deadlock.

Release notes (bug fix): Correctly link producer/consumer during data
import in order to handle errors correctly.
@miretskiy
Copy link
Contributor Author

bors r+

@craig
Copy link
Contributor

craig bot commented Jun 12, 2020

Build succeeded

@craig craig bot merged commit c9db57a into cockroachdb:release-20.1 Jun 12, 2020
@miretskiy miretskiy deleted the backport20.1-49979-49995 branch June 12, 2020 14:33
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.

None yet

3 participants