This repository was archived by the owner on Apr 29, 2020. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 46
This repository was archived by the owner on Apr 29, 2020. It is now read-only.
Data race due to consul dependencies #832
Copy link
Copy link
Open
Description
==================
WARNING: DATA RACE
Read at 0x00c4201726c8 by goroutine 98:
github.com/square/p2/vendor/github.com/hashicorp/consul/consul.(*Server).leaderLoop()
/home/travis/gopath/src/github.com/square/p2/vendor/github.com/hashicorp/consul/consul/leader.go:60 +0x12f
Previous write at 0x00c4201726c8 by goroutine 30:
github.com/square/p2/vendor/github.com/hashicorp/consul/consul.NewServer()
/home/travis/gopath/src/github.com/square/p2/vendor/github.com/hashicorp/consul/consul/server.go:268 +0x146e
github.com/square/p2/vendor/github.com/hashicorp/consul/command/agent.(*Agent).setupServer()
/home/travis/gopath/src/github.com/square/p2/vendor/github.com/hashicorp/consul/command/agent/agent.go:406 +0x162
github.com/square/p2/vendor/github.com/hashicorp/consul/command/agent.Create()
/home/travis/gopath/src/github.com/square/p2/vendor/github.com/hashicorp/consul/command/agent/agent.go:203 +0x1010
github.com/square/p2/pkg/store/consul/consulutil.NewFixture()
/home/travis/gopath/src/github.com/square/p2/pkg/store/consul/consulutil/consultest.go:80 +0x4eb
github.com/square/p2/pkg/store/consul.NewConsulTestFixture()
/home/travis/gopath/src/github.com/square/p2/pkg/store/consul/fixtures_test.go:20 +0x6a
github.com/square/p2/pkg/store/consul.TestGetHealthNoEntry()
/home/travis/gopath/src/github.com/square/p2/pkg/store/consul/kv_test.go:15 +0x66
testing.tRunner()
/home/travis/.gimme/versions/go1.7.4.linux.amd64/src/testing/testing.go:610 +0xc9
Goroutine 98 (running) created at:
github.com/square/p2/vendor/github.com/hashicorp/consul/consul.(*Server).monitorLeadership()
/home/travis/gopath/src/github.com/square/p2/vendor/github.com/hashicorp/consul/consul/leader.go:39 +0x206
Goroutine 30 (running) created at:
testing.(*T).Run()
/home/travis/.gimme/versions/go1.7.4.linux.amd64/src/testing/testing.go:646 +0x52f
testing.RunTests.func1()
/home/travis/.gimme/versions/go1.7.4.linux.amd64/src/testing/testing.go:793 +0xb9
testing.tRunner()
/home/travis/.gimme/versions/go1.7.4.linux.amd64/src/testing/testing.go:610 +0xc9
testing.RunTests()
/home/travis/.gimme/versions/go1.7.4.linux.amd64/src/testing/testing.go:799 +0x4ba
testing.(*M).Run()
/home/travis/.gimme/versions/go1.7.4.linux.amd64/src/testing/testing.go:743 +0x12f
main.main()
github.com/square/p2/pkg/store/consul/_test/_testmain.go:92 +0x1b8
Metadata
Metadata
Assignees
Labels
No labels