archive: refactor race fixing logic to prevent potential deadlock#39920
Open
tiborvass wants to merge 2 commits intomoby:masterfrom
Open
archive: refactor race fixing logic to prevent potential deadlock#39920tiborvass wants to merge 2 commits intomoby:masterfrom
tiborvass wants to merge 2 commits intomoby:masterfrom
Conversation
cpuguy83
requested changes
Sep 12, 2019
fcc61bb to
70492a5
Compare
Contributor
Author
|
Added a test for the deadlock, thanks @tonistiigi |
Contributor
Author
|
The test is rightfully failing for me when only taking the first commit (without the fix) |
Member
|
@tiborvass failures look related; |
Member
|
ping @tiborvass - what's the status on this one? |
Member
|
ping @tiborvass |
Contributor
|
@tiborvass when you get a chance, rebase this to get the latest tests run on this change |
Member
|
ping @tiborvass |
Member
|
ping @tiborvass PTAL |
1 similar comment
Member
|
ping @tiborvass PTAL |
The following currently fails ``` GO111MODUEL=off go test -run TestCmdStreamDeadlock ./pkg/archive ``` and is fixed by the next commit. Signed-off-by: Tibor Vass <[email protected]>
Signed-off-by: Tibor Vass <[email protected]>
70492a5 to
a47c090
Compare
Contributor
Author
|
@thaJeztah Rebased |
Member
|
Hm... something's either broken (I've seen this error on another PRs, so might not be related), or there was a glitch that we hit. Let me kick CI again. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Signed-off-by: Tibor Vass [email protected]
Follow up to #39860
cc @tonistiigi @cpuguy83 @kolyshkin
modeled after https://github.com/tonistiigi/copy/blob/go-copy/detect/detect.go#L85