Skip to content

Data race in httptest during integration test shutdown #731

Closed

Description

@smarterclayton
==================
WARNING: DATA RACE
Read by goroutine 287:
  sync.raceRead()
      /usr/local/Cellar/go/1.3.1/libexec/src/pkg/sync/race.go:37 +0x35
  sync.(*WaitGroup).Add()
      /usr/local/Cellar/go/1.3.1/libexec/src/pkg/sync/waitgroup.go:60 +0xbe
  net/http/httptest.(*waitGroupHandler).ServeHTTP()
      /usr/local/Cellar/go/1.3.1/libexec/src/pkg/net/http/httptest/server.go:198 +0x5e
  net/http.serverHandler.ServeHTTP()
      /usr/local/Cellar/go/1.3.1/libexec/src/pkg/net/http/server.go:1673 +0x1fc
  net/http.(*conn).serve()
      /usr/local/Cellar/go/1.3.1/libexec/src/pkg/net/http/server.go:1174 +0xf9e

Previous write by goroutine 225:
  sync.raceWrite()
      /usr/local/Cellar/go/1.3.1/libexec/src/pkg/sync/race.go:41 +0x35
  sync.(*WaitGroup).Wait()
      /usr/local/Cellar/go/1.3.1/libexec/src/pkg/sync/waitgroup.go:122 +0x176
  net/http/httptest.(*Server).Close()
      /usr/local/Cellar/go/1.3.1/libexec/src/pkg/net/http/httptest/server.go:168 +0x7e
  github.com/openshift/origin/test/integration.(*testBuildOpenshift).Close()
      /Users/clayton/projects/go/src/github.com/openshift/origin/_output/local/go/src/github.com/openshift/origin/test/integration/buildclient_test.go:227 +0xe0
  github.com/openshift/origin/test/integration.TestWatchBuilds()
      /Users/clayton/projects/go/src/github.com/openshift/origin/_output/local/go/src/github.com/openshift/origin/test/integration/buildclient_test.go:111 +0x675
  testing.tRunner()
      /usr/local/Cellar/go/1.3.1/libexec/src/pkg/testing/testing.go:422 +0x10f

Goroutine 287 (running) created at:
  net/http.(*Server).Serve()
      /usr/local/Cellar/go/1.3.1/libexec/src/pkg/net/http/server.go:1721 +0x35d

Goroutine 225 (finished) created at:
  testing.RunTests()
      /usr/local/Cellar/go/1.3.1/libexec/src/pkg/testing/testing.go:504 +0xb46
  testing.Main()
      /usr/local/Cellar/go/1.3.1/libexec/src/pkg/testing/testing.go:435 +0xa2
  main.main()
      github.com/openshift/origin/test/integration/_test/_testmain.go:97 +0xdc
==================

Might be related to golang/go#7264

Activity

  1. smarterclayton commented on Jan 23, 2015

    @smarterclayton
    ContributorAuthor

    Disabling integration test race for now.

  2. added
    kind/bug
    on Feb 12, 2015
  3. ironcladlou commented on Mar 20, 2015

    @ironcladlou
    Contributor

    Can we re-enable race detection as of #1092?

  4. smarterclayton commented on Mar 25, 2015

    @smarterclayton
    ContributorAuthor

    Yes

    On Mar 20, 2015, at 10:00 AM, Dan Mace [email protected] wrote:

    Can we re-enable race detection as of #1092?

    —
    Reply to this email directly or view it on GitHub.

  5. danmcp commented on May 11, 2015

    @danmcp

    Next steps?

  6. smarterclayton commented on May 12, 2015

    @smarterclayton
    ContributorAuthor

    Fixed a while back, we close down after each integ test

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    area/testskind/bugpriority/P2

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions