Created
March 13, 2016 18:28
-
-
Save abligh/3167c49f1aab24bce844 to your computer and use it in GitHub Desktop.
Hashcorp raft go test -race output
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
go test -race | |
================== | |
WARNING: DATA RACE | |
Read by goroutine 138: | |
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 139: | |
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 138 (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 139 (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 | |
================== | |
--- FAIL: TestRaft_SnapshotRestore_PeerChange (0.23s) | |
raft_test.go:187: [WARN] Fully Connecting | |
raft_test.go:91: [INFO] raft: Node at 08dd3683-a089-64b5-51f5-80907bd1da53 [Follower] entering Follower state | |
raft_test.go:91: [INFO] raft: Node at 06321fa6-4f57-8d3a-cb29-b6365a9d72ad [Follower] entering Follower state | |
raft_test.go:91: [INFO] raft: Node at aabaf64a-e025-a388-8cb1-87d7b1ed3907 [Follower] entering Follower state | |
raft_test.go:91: [WARN] raft: Heartbeat timeout reached, starting election | |
raft_test.go:91: [INFO] raft: Node at 08dd3683-a089-64b5-51f5-80907bd1da53 [Candidate] entering Candidate state | |
raft_test.go:91: [DEBUG] raft: Votes needed: 2 | |
raft_test.go:91: [DEBUG] raft: Vote granted from 08dd3683-a089-64b5-51f5-80907bd1da53. Tally: 1 | |
raft_test.go:91: [DEBUG] raft: Vote granted from 06321fa6-4f57-8d3a-cb29-b6365a9d72ad. Tally: 2 | |
raft_test.go:91: [INFO] raft: Election won. Tally: 2 | |
raft_test.go:91: [INFO] raft: Node at 08dd3683-a089-64b5-51f5-80907bd1da53 [Leader] entering Leader state | |
raft_test.go:91: [INFO] raft: pipelining replication to peer 06321fa6-4f57-8d3a-cb29-b6365a9d72ad | |
raft_test.go:91: [INFO] raft: pipelining replication to peer aabaf64a-e025-a388-8cb1-87d7b1ed3907 | |
raft_test.go:91: [DEBUG] raft: Node 08dd3683-a089-64b5-51f5-80907bd1da53 updated peer set (2): [08dd3683-a089-64b5-51f5-80907bd1da53 06321fa6-4f57-8d3a-cb29-b6365a9d72ad aabaf64a-e025-a388-8cb1-87d7b1ed3907] | |
raft_test.go:91: [DEBUG] raft: Node 06321fa6-4f57-8d3a-cb29-b6365a9d72ad updated peer set (2): [08dd3683-a089-64b5-51f5-80907bd1da53 06321fa6-4f57-8d3a-cb29-b6365a9d72ad aabaf64a-e025-a388-8cb1-87d7b1ed3907] | |
raft_test.go:91: [DEBUG] raft: Node aabaf64a-e025-a388-8cb1-87d7b1ed3907 updated peer set (2): [08dd3683-a089-64b5-51f5-80907bd1da53 06321fa6-4f57-8d3a-cb29-b6365a9d72ad aabaf64a-e025-a388-8cb1-87d7b1ed3907] | |
raft_test.go:91: [INFO] raft: Starting snapshot up to 101 | |
raft_test.go:91: [INFO] snapshot: Creating new snapshot at /var/folders/_r/zj8cp1n90vjgfjgm2clvqvjh0000gn/T/raft796455306/snapshots/1-101-1457893648884.tmp | |
raft_test.go:91: [INFO] raft: Compacting logs from 1 to 91 | |
raft_test.go:91: [INFO] raft: Snapshot to 101 complete | |
raft_test.go:91: [INFO] raft: aborting pipeline replication to peer 06321fa6-4f57-8d3a-cb29-b6365a9d72ad | |
raft_test.go:91: [INFO] raft: aborting pipeline replication to peer aabaf64a-e025-a388-8cb1-87d7b1ed3907 | |
raft_test.go:187: [WARN] Fully Connecting | |
raft_test.go:91: [INFO] raft: Restored from snapshot 1-101-1457893648884 | |
raft_test.go:187: [WARN] Fully Connecting | |
raft_test.go:91: [INFO] raft: Node at 15ea95af-f50d-a463-6c1a-6aa6fc2cc799 [Follower] entering Follower state | |
raft_test.go:91: [INFO] raft: Node at 29b8ee89-5b18-deed-420b-18bbfa8ac6ab [Follower] entering Follower state | |
raft_test.go:91: [INFO] raft: Node at 08dd3683-a089-64b5-51f5-80907bd1da53 [Follower] entering Follower state | |
raft_test.go:91: [WARN] raft: Heartbeat timeout reached, starting election | |
raft_test.go:91: [INFO] raft: Node at 08dd3683-a089-64b5-51f5-80907bd1da53 [Candidate] entering Candidate state | |
raft_test.go:91: [DEBUG] raft: Votes needed: 2 | |
raft_test.go:91: [DEBUG] raft: Vote granted from 08dd3683-a089-64b5-51f5-80907bd1da53. Tally: 1 | |
raft_test.go:91: [WARN] raft: Remote peer 15ea95af-f50d-a463-6c1a-6aa6fc2cc799 does not have local node 08dd3683-a089-64b5-51f5-80907bd1da53 as a peer | |
raft_test.go:91: [WARN] raft: Remote peer 29b8ee89-5b18-deed-420b-18bbfa8ac6ab does not have local node 08dd3683-a089-64b5-51f5-80907bd1da53 as a peer | |
raft_test.go:91: [DEBUG] raft: Vote granted from 15ea95af-f50d-a463-6c1a-6aa6fc2cc799. Tally: 2 | |
raft_test.go:91: [INFO] raft: Election won. Tally: 2 | |
raft_test.go:91: [INFO] raft: Node at 08dd3683-a089-64b5-51f5-80907bd1da53 [Leader] entering Leader state | |
raft_test.go:91: [WARN] raft: Failed to get previous log: 101 log not found (last: 0) | |
raft_test.go:91: [WARN] raft: Failed to get previous log: 101 log not found (last: 0) | |
raft_test.go:91: [WARN] raft: AppendEntries to 15ea95af-f50d-a463-6c1a-6aa6fc2cc799 rejected, sending older logs (next: 1) | |
raft_test.go:91: [ERR] raft: Failed to get log at index 1: log not found | |
raft_test.go:91: [WARN] raft: AppendEntries to 29b8ee89-5b18-deed-420b-18bbfa8ac6ab rejected, sending older logs (next: 1) | |
raft_test.go:91: [ERR] raft: Failed to get log at index 1: log not found | |
raft_test.go:91: [INFO] snapshot: Creating new snapshot at /var/folders/_r/zj8cp1n90vjgfjgm2clvqvjh0000gn/T/raft028655936/snapshots/1-101-1457893648967.tmp | |
raft_test.go:91: [INFO] raft: Copied 693 bytes to local snapshot | |
raft_test.go:91: [INFO] snapshot: Creating new snapshot at /var/folders/_r/zj8cp1n90vjgfjgm2clvqvjh0000gn/T/raft140654706/snapshots/1-101-1457893648969.tmp | |
raft_test.go:91: [INFO] raft: Copied 693 bytes to local snapshot | |
raft_test.go:1159: bad last: 101 | |
raft_test.go:91: [INFO] raft: Installed remote snapshot | |
raft_test.go:91: [INFO] raft: Installed remote snapshot | |
raft_test.go:91: [ERR] raft: Failed to AppendEntries to 15ea95af-f50d-a463-6c1a-6aa6fc2cc799: command timed out | |
raft_test.go:91: [ERR] raft: Failed to AppendEntries to 29b8ee89-5b18-deed-420b-18bbfa8ac6ab: command timed out | |
raft_test.go:91: [ERR] raft: Failed to heartbeat to 15ea95af-f50d-a463-6c1a-6aa6fc2cc799: command timed out | |
raft_test.go:91: [ERR] raft: Failed to heartbeat to 29b8ee89-5b18-deed-420b-18bbfa8ac6ab: command timed out | |
FAIL | |
exit status 1 | |
FAIL github.com/hashicorp/raft 4.135s |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment