Skip to content

Conversation

@fcrisciani
Copy link

@fcrisciani fcrisciani commented May 31, 2017

The channel ch.C is never closed, so the condition ok in the if will never be false.
Added the listen of the ch.Done() to guarantee
that the goroutine is exiting once the event channel
is closed

Signed-off-by: Flavio Crisciani flavio.crisciani@docker.com

@fcrisciani
Copy link
Author

fcrisciani commented May 31, 2017

Stacktrace related to 17.03 (line not matching on master code):

goroutine 1140550 [chan receive, 8614 minutes]:
github.com/docker/docker/vendor/github.com/docker/libnetwork.(*controller).handleTableEvents(0xc4208d6f00, 0xc424222660, 0xc423b0ca60)
	/root/rpmbuild/BUILD/docker-ee/.gopath/src/github.com/docker/docker/vendor/github.com/docker/libnetwork/agent.go:595 +0x5c
created by github.com/docker/docker/vendor/github.com/docker/libnetwork.(*network).addDriverWatches
	/root/rpmbuild/BUILD/docker-ee/.gopath/src/github.com/docker/docker/vendor/github.com/docker/libnetwork/agent.go:555 +0x317

The channel ch.C is never closed.
Added the listen of the ch.Done() to guarantee
that the goroutine is exiting once the event channel
is closed

Signed-off-by: Flavio Crisciani <flavio.crisciani@docker.com>
@aaronlehmann
Copy link

LGTM (not a maintainer)

Hoping we can get this into 17.06

@aaronlehmann aaronlehmann mentioned this pull request Jun 6, 2017
23 tasks
@fcrisciani
Copy link
Author

@mavenugo can we let this one go in?

@mavenugo
Copy link
Contributor

mavenugo commented Jun 6, 2017

LGTM

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