Skip to content

Instantly share code, notes, and snippets.

@abligh
Created March 13, 2016 18:26
Show Gist options
  • Save abligh/b22c1b7623a1ef02d8f7 to your computer and use it in GitHub Desktop.
Save abligh/b22c1b7623a1ef02d8f7 to your computer and use it in GitHub Desktop.
Hashicorp raft go test -race output
go test -race
--- FAIL: TestRaft_RemoveFollower (0.08s)
raft_test.go:187: [WARN] Fully Connecting
raft_test.go:91: [INFO] raft: Node at e455190b-8170-88d3-89d4-82bfb0779976 [Follower] entering Follower state
raft_test.go:91: [INFO] raft: Node at 57dc7b84-9f07-54e4-7d5d-184a938bdea1 [Follower] entering Follower state
raft_test.go:91: [INFO] raft: Node at 5c7f8efc-3c6c-e845-e65c-6c34c4a75221 [Follower] entering Follower state
raft_test.go:91: [WARN] raft: Heartbeat timeout reached, starting election
raft_test.go:91: [INFO] raft: Node at e455190b-8170-88d3-89d4-82bfb0779976 [Candidate] entering Candidate state
raft_test.go:91: [DEBUG] raft: Votes needed: 2
raft_test.go:91: [DEBUG] raft: Vote granted from e455190b-8170-88d3-89d4-82bfb0779976. Tally: 1
raft_test.go:91: [DEBUG] raft: Vote granted from 57dc7b84-9f07-54e4-7d5d-184a938bdea1. Tally: 2
raft_test.go:91: [INFO] raft: Election won. Tally: 2
raft_test.go:91: [INFO] raft: Node at e455190b-8170-88d3-89d4-82bfb0779976 [Leader] entering Leader state
raft_test.go:91: [WARN] raft: Heartbeat timeout reached, starting election
raft_test.go:91: [INFO] raft: Node at 57dc7b84-9f07-54e4-7d5d-184a938bdea1 [Candidate] entering Candidate state
raft_test.go:91: [DEBUG] raft: Votes needed: 2
raft_test.go:91: [DEBUG] raft: Vote granted from 57dc7b84-9f07-54e4-7d5d-184a938bdea1. Tally: 1
raft_test.go:91: [ERR] raft: peer 57dc7b84-9f07-54e4-7d5d-184a938bdea1 has newer term, stopping replication
raft_test.go:91: [INFO] raft: pipelining replication to peer 5c7f8efc-3c6c-e845-e65c-6c34c4a75221
raft_test.go:91: [INFO] raft: Node at e455190b-8170-88d3-89d4-82bfb0779976 [Follower] entering Follower state
raft_test.go:91: [WARN] raft: Rejecting vote request from 57dc7b84-9f07-54e4-7d5d-184a938bdea1 since our last term is greater (1, 0)
raft_test.go:91: [WARN] raft: Rejecting vote request from 57dc7b84-9f07-54e4-7d5d-184a938bdea1 since we have a leader: e455190b-8170-88d3-89d4-82bfb0779976
raft_test.go:91: [INFO] raft: aborting pipeline replication to peer 5c7f8efc-3c6c-e845-e65c-6c34c4a75221
raft_test.go:843: err: node is not the leader
--- FAIL: TestRaft_VerifyLeader (0.08s)
raft_test.go:187: [WARN] Fully Connecting
raft_test.go:91: [INFO] raft: Node at 03ba1dce-1a2e-e865-db3b-61f54e132ff7 [Follower] entering Follower state
raft_test.go:91: [INFO] raft: Node at 8840d0cd-b57d-3c09-72f4-e93b63990e60 [Follower] entering Follower state
raft_test.go:91: [INFO] raft: Node at 7195669c-72f8-a71a-79ad-ffbdf2184230 [Follower] entering Follower state
raft_test.go:91: [WARN] raft: Heartbeat timeout reached, starting election
raft_test.go:91: [INFO] raft: Node at 8840d0cd-b57d-3c09-72f4-e93b63990e60 [Candidate] entering Candidate state
raft_test.go:91: [DEBUG] raft: Votes needed: 2
raft_test.go:91: [DEBUG] raft: Vote granted from 8840d0cd-b57d-3c09-72f4-e93b63990e60. Tally: 1
raft_test.go:91: [DEBUG] raft: Vote granted from 03ba1dce-1a2e-e865-db3b-61f54e132ff7. Tally: 2
raft_test.go:91: [INFO] raft: Election won. Tally: 2
raft_test.go:91: [INFO] raft: Node at 8840d0cd-b57d-3c09-72f4-e93b63990e60 [Leader] entering Leader state
raft_test.go:91: [WARN] raft: Heartbeat timeout reached, starting election
raft_test.go:91: [INFO] raft: Node at 03ba1dce-1a2e-e865-db3b-61f54e132ff7 [Candidate] entering Candidate state
raft_test.go:91: [DEBUG] raft: Votes needed: 2
raft_test.go:91: [DEBUG] raft: Vote granted from 03ba1dce-1a2e-e865-db3b-61f54e132ff7. Tally: 1
raft_test.go:91: [ERR] raft: peer 03ba1dce-1a2e-e865-db3b-61f54e132ff7 has newer term, stopping replication
raft_test.go:91: [WARN] raft: Rejecting vote request from 03ba1dce-1a2e-e865-db3b-61f54e132ff7 since we have a leader: 8840d0cd-b57d-3c09-72f4-e93b63990e60
raft_test.go:91: [INFO] raft: Node at 8840d0cd-b57d-3c09-72f4-e93b63990e60 [Follower] entering Follower state
raft_test.go:91: [INFO] raft: pipelining replication to peer 7195669c-72f8-a71a-79ad-ffbdf2184230
raft_test.go:91: [WARN] raft: Rejecting vote request from 03ba1dce-1a2e-e865-db3b-61f54e132ff7 since we have a leader: 8840d0cd-b57d-3c09-72f4-e93b63990e60
raft_test.go:1438: err: node is not the leader
raft_test.go:91: [INFO] raft: aborting pipeline replication to peer 7195669c-72f8-a71a-79ad-ffbdf2184230
FAIL
exit status 1
FAIL github.com/hashicorp/raft 4.085s
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment