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

Fixes an error propagation bug that resulted in a hang #30

Merged
merged 2 commits into from
May 16, 2018

Conversation

tiborvass
Copy link
Collaborator

Signed-off-by: Tibor Vass tibor@docker.com

More specifically, if an "!" exclude pattern is provided, the error
from github.com/docker/docker/pkg/fileutils.NewPatternMatcher would
be not be returned to the client, and would additionally block the
other goroutines from the same errgroup, resulting in the hang.

Signed-off-by: Tibor Vass <tibor@docker.com>
Signed-off-by: Tonis Tiigi <tonistiigi@gmail.com>
@tonistiigi
Copy link
Owner

@tiborvass pushed an extra commit

@tiborvass
Copy link
Collaborator Author

Tested in buildkit, LGTM

@tonistiigi
Copy link
Owner

LGTM

@tonistiigi
Copy link
Owner

@tiborvass There is a slight problem with this test that showed in CI. If the receiver isn't blocked when the walker errors, the receiver would close directly from ctx.Done(), without doing the roundtrip. I think this behavior is ok, but the error doesn't have the from sender prefix then.

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

2 participants