Skip to content

Instantly share code, notes, and snippets.

@abligh
Created March 13, 2016 18:29
Show Gist options
  • Save abligh/cb9c1a675dbbb213b655 to your computer and use it in GitHub Desktop.
Save abligh/cb9c1a675dbbb213b655 to your computer and use it in GitHub Desktop.
go test -race output
$ go test -race
==================
WARNING: DATA RACE
Read by goroutine 127:
github.com/hashicorp/raft.TestRaft_RemoveLeader_SplitCluster()
/Users/amb/go/src/github.com/hashicorp/raft/raft_test.go:992 +0x3f7
testing.tRunner()
/usr/local/go/src/testing/testing.go:447 +0x133
Previous write by goroutine 128:
github.com/hashicorp/raft.(*Raft).processLog()
/Users/amb/go/src/github.com/hashicorp/raft/raft.go:1211 +0x1666
github.com/hashicorp/raft.(*Raft).processLogs()
/Users/amb/go/src/github.com/hashicorp/raft/raft.go:1151 +0x235
github.com/hashicorp/raft.(*Raft).leaderLoop()
/Users/amb/go/src/github.com/hashicorp/raft/raft.go:892 +0x5b7
github.com/hashicorp/raft.(*Raft).runLeader()
/Users/amb/go/src/github.com/hashicorp/raft/raft.go:838 +0xc9d
github.com/hashicorp/raft.(*Raft).run()
/Users/amb/go/src/github.com/hashicorp/raft/raft.go:602 +0xf1
github.com/hashicorp/raft.*Raft.(github.com/hashicorp/raft.run)·fm()
/Users/amb/go/src/github.com/hashicorp/raft/raft.go:252 +0x34
github.com/hashicorp/raft.func·011()
/Users/amb/go/src/github.com/hashicorp/raft/state.go:152 +0x7f
Goroutine 127 (running) created at:
testing.RunTests()
/usr/local/go/src/testing/testing.go:555 +0xd4e
testing.(*M).Run()
/usr/local/go/src/testing/testing.go:485 +0xe0
main.main()
github.com/hashicorp/raft/_test/_testmain.go:198 +0x28c
Goroutine 128 (running) created at:
github.com/hashicorp/raft.(*raftState).goFunc()
/Users/amb/go/src/github.com/hashicorp/raft/state.go:153 +0x133
github.com/hashicorp/raft.NewRaft()
/Users/amb/go/src/github.com/hashicorp/raft/raft.go:252 +0x113f
github.com/hashicorp/raft.MakeCluster()
/Users/amb/go/src/github.com/hashicorp/raft/raft_test.go:372 +0x1657
github.com/hashicorp/raft.TestRaft_RemoveLeader_SplitCluster()
/Users/amb/go/src/github.com/hashicorp/raft/raft_test.go:970 +0xbf
testing.tRunner()
/usr/local/go/src/testing/testing.go:447 +0x133
==================
PASS
ok github.com/hashicorp/raft 4.164s
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment