Skip to content

Race condition in cdr package test #1976

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

Closed
benileo opened this issue Jun 26, 2016 · 5 comments
Closed

Race condition in cdr package test #1976

benileo opened this issue Jun 26, 2016 · 5 comments
Assignees

Comments

@benileo
Copy link
Contributor

benileo commented Jun 26, 2016

WARNING: DATA RACE
Write by goroutine 24:
  sync.raceWrite()
      /tmp/workdir/go/src/sync/race.go:41 +0x2e
  sync.(*WaitGroup).Wait()
      /tmp/workdir/go/src/sync/waitgroup.go:124 +0xf9
  net/http/httptest.(*Server).Close()
      /tmp/workdir/go/src/net/http/httptest/server.go:168 +0x80
  github.com/letsencrypt/boulder/cdr.TestLookupCAA()
      /go/src/github.com/letsencrypt/boulder/cdr/resolver_test.go:101 +0xe00
@jsha jsha added this to the Sprint 2016-06-28 milestone Jun 28, 2016
@rolandshoemaker
Copy link
Contributor

Was this run on current master or a version pre- 6264706, which I believe fixed this race.

@benileo
Copy link
Contributor Author

benileo commented Jun 28, 2016

I'm fairly certain it was post-6264706 as my first commit on that branch was 999383f.

Here is a link to the build https://travis-ci.org/letsencrypt/boulder/jobs/140300139

@rolandshoemaker
Copy link
Contributor

Actually looking at it a bit closer this is just another case of golang/go#12262 which will be fixed by #1514.

@rolandshoemaker
Copy link
Contributor

(dropping from sprint since #1514 is not likely to be done by next week)

@rolandshoemaker rolandshoemaker removed this from the Sprint 2016-06-28 milestone Jun 28, 2016
@jsha
Copy link
Contributor

jsha commented Jun 28, 2016

We've worked around the Server.Close issue in other tests by simply not closing the test server. Can we do that here? Flaky tests are bad.

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

No branches or pull requests

3 participants