open-consul/agent/consul
James Phillips fcaa889116 Bumps default Raft protocol to version 3. (#3477)
* Changes default Raft protocol to 3.

* Changes numPeers() to report only voters.

This should have been there before, but it's more obvious that this
is incorrect now that we default the Raft protocol to 3, which puts
new servers in a read-only state while Autopilot waits for them to
become healthy.

* Fixes TestLeader_RollRaftServer.

* Fixes TestOperator_RaftRemovePeerByAddress.

* Fixes TestServer_*.

Relaxed the check for a given number of voter peers and instead do
a thorough check that all servers see each other in their Raft
configurations.

* Fixes TestACL_*.

These now just check for Raft replication to be set up, and don't
care about the number of voter peers.

* Fixes TestOperator_Raft_ListPeers.

* Fixes TestAutopilot_CleanupDeadServerPeriodic.

* Fixes TestCatalog_ListNodes_ConsistentRead_Fail.

* Fixes TestLeader_ChangeServerID and adjusts the conn pool to throw away
sockets when it sees io.EOF.

* Changes version to 1.0.0 in the options doc.

* Makes metrics test more deterministic with autopilot metrics possible.
2017-09-25 15:27:04 -07:00
..
prepared_query Add agent.segment interpolation to prepared queries 2017-08-30 11:58:29 -07:00
state Add agent.segment interpolation to prepared queries 2017-08-30 11:58:29 -07:00
acl.go Introduce Code Policy validation via sentinel, with a noop implementation 2017-09-25 13:44:55 -05:00
acl_endpoint.go Introduce Code Policy validation via sentinel, with a noop implementation 2017-09-25 13:44:55 -05:00
acl_endpoint_test.go acl: consolidate error handling (#3401) 2017-08-23 16:52:48 +02:00
acl_replication.go agent: move agent/consul/structs to agent/structs 2017-08-09 14:32:12 +02:00
acl_replication_test.go agent: move agent/consul/structs to agent/structs 2017-08-09 14:32:12 +02:00
acl_test.go Bumps default Raft protocol to version 3. (#3477) 2017-09-25 15:27:04 -07:00
autopilot.go agent: move agent/consul/agent to agent/metadata 2017-08-09 14:36:52 +02:00
autopilot_test.go Bumps default Raft protocol to version 3. (#3477) 2017-09-25 15:27:04 -07:00
catalog_endpoint.go Introduce Code Policy validation via sentinel, with a noop implementation 2017-09-25 13:44:55 -05:00
catalog_endpoint_test.go Bumps default Raft protocol to version 3. (#3477) 2017-09-25 15:27:04 -07:00
client.go Makes the all segments query explict, and the default for `consul members`. 2017-09-05 12:22:20 -07:00
client_serf.go New config parser, HCL support, multiple bind addrs (#3480) 2017-09-25 11:40:42 -07:00
client_test.go Adds simple rate limiting for client agent RPC calls to Consul servers. (#3440) 2017-09-01 15:02:50 -07:00
config.go Bumps default Raft protocol to version 3. (#3477) 2017-09-25 15:27:04 -07:00
coordinate_endpoint.go Introduce Code Policy validation via sentinel, with a noop implementation 2017-09-25 13:44:55 -05:00
coordinate_endpoint_test.go Adds open source side of network segments (feature is Enterprise-only). 2017-08-30 11:58:29 -07:00
filter.go Revert "Return 403 rather than a 404 when acls cause all results to be filter…" 2017-08-09 15:06:57 -07:00
filter_test.go Introduce Code Policy validation via sentinel, with a noop implementation 2017-09-25 13:44:55 -05:00
flood.go Add segment addr field to tags for LAN flood joiner 2017-08-30 11:58:29 -07:00
fsm.go agent: move agent/consul/structs to agent/structs 2017-08-09 14:32:12 +02:00
fsm_test.go agent: move agent/consul/structs to agent/structs 2017-08-09 14:32:12 +02:00
health_endpoint.go agent: move agent/consul/structs to agent/structs 2017-08-09 14:32:12 +02:00
health_endpoint_test.go Adds open source side of network segments (feature is Enterprise-only). 2017-08-30 11:58:29 -07:00
helper_test.go Bumps default Raft protocol to version 3. (#3477) 2017-09-25 15:27:04 -07:00
internal_endpoint.go Cleans up formatting. 2017-09-07 12:26:58 -07:00
internal_endpoint_test.go acl: consolidate error handling (#3401) 2017-08-23 16:52:48 +02:00
issue_test.go agent: move agent/consul/structs to agent/structs 2017-08-09 14:32:12 +02:00
kvs_endpoint.go Introduce Code Policy validation via sentinel, with a noop implementation 2017-09-25 13:44:55 -05:00
kvs_endpoint_test.go acl: consolidate error handling (#3401) 2017-08-23 16:52:48 +02:00
leader.go Moves reconcile loop into segment stub. 2017-09-06 18:01:53 -07:00
leader_test.go Bumps default Raft protocol to version 3. (#3477) 2017-09-25 15:27:04 -07:00
merge.go Takes the skip out of the client check. 2017-09-06 17:05:40 -07:00
merge_test.go Skips unique node ID check for old versions of Consul. 2017-09-05 22:57:29 -07:00
operator_autopilot_endpoint.go acl: consolidate error handling (#3401) 2017-08-23 16:52:48 +02:00
operator_autopilot_endpoint_test.go acl: consolidate error handling (#3401) 2017-08-23 16:52:48 +02:00
operator_endpoint.go pkg refactor 2017-06-10 18:52:45 +02:00
operator_raft_endpoint.go acl: consolidate error handling (#3401) 2017-08-23 16:52:48 +02:00
operator_raft_endpoint_test.go Bumps default Raft protocol to version 3. (#3477) 2017-09-25 15:27:04 -07:00
prepared_query_endpoint.go Add agent.segment interpolation to prepared queries 2017-08-30 11:58:29 -07:00
prepared_query_endpoint_test.go acl: consolidate error handling (#3401) 2017-08-23 16:52:48 +02:00
raft_rpc.go agent: move conn pool for muxed connections into separate pkg 2017-06-21 05:42:39 +02:00
rpc.go Add rpc_listener option to segment config 2017-08-30 11:58:29 -07:00
rpc_test.go agent: move agent/consul/structs to agent/structs 2017-08-09 14:32:12 +02:00
rtt.go Adds open source side of network segments (feature is Enterprise-only). 2017-08-30 11:58:29 -07:00
rtt_test.go agent: move agent/consul/structs to agent/structs 2017-08-09 14:32:12 +02:00
segment_stub.go Moves reconcile loop into segment stub. 2017-09-06 18:01:53 -07:00
serf_test.go pkg refactor 2017-06-10 18:52:45 +02:00
server.go Bumps default Raft protocol to version 3. (#3477) 2017-09-25 15:27:04 -07:00
server_lookup.go More cleanup from code review 2017-08-30 12:31:36 -05:00
server_lookup_test.go More cleanup from code review 2017-08-30 12:31:36 -05:00
server_serf.go New config parser, HCL support, multiple bind addrs (#3480) 2017-09-25 11:40:42 -07:00
server_test.go Bumps default Raft protocol to version 3. (#3477) 2017-09-25 15:27:04 -07:00
session_endpoint.go acl: consolidate error handling (#3401) 2017-08-23 16:52:48 +02:00
session_endpoint_test.go acl: consolidate error handling (#3401) 2017-08-23 16:52:48 +02:00
session_timers.go address review comments 2017-07-07 09:22:34 +02:00
session_timers_test.go rpc: refactor sessionTimers and fix racy tests 2017-07-07 09:22:34 +02:00
session_ttl.go agent: move agent/consul/structs to agent/structs 2017-08-09 14:32:12 +02:00
session_ttl_test.go agent: move agent/consul/structs to agent/structs 2017-08-09 14:32:12 +02:00
snapshot_endpoint.go acl: consolidate error handling (#3401) 2017-08-23 16:52:48 +02:00
snapshot_endpoint_test.go acl: consolidate error handling (#3401) 2017-08-23 16:52:48 +02:00
stats_fetcher.go agent: move agent/consul/agent to agent/metadata 2017-08-09 14:36:52 +02:00
stats_fetcher_test.go agent: move agent/consul/agent to agent/metadata 2017-08-09 14:36:52 +02:00
status_endpoint.go agent: move agent/consul/structs to agent/structs 2017-08-09 14:32:12 +02:00
status_endpoint_test.go rpc: run agent/consul tests in parallel 2017-07-07 09:22:34 +02:00
txn_endpoint.go Revert "Return 403 rather than a 404 when acls cause all results to be filter…" 2017-08-09 15:06:57 -07:00
txn_endpoint_test.go acl: consolidate error handling (#3401) 2017-08-23 16:52:48 +02:00
util.go agent: move agent/consul/agent to agent/metadata 2017-08-09 14:36:52 +02:00
util_test.go pkg refactor 2017-06-10 18:52:45 +02:00