consul/command
James Phillips 45646ac3f4 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
..
agent.go New config parser, HCL support, multiple bind addrs (#3480) 2017-09-25 11:40:42 -07:00
agent_test.go New config parser, HCL support, multiple bind addrs (#3480) 2017-09-25 11:40:42 -07:00
base.go Moves config util helpers into their own package. (#3165) 2017-06-20 10:49:37 -07:00
catalog_command.go Add catalog CLI functions (#3204) 2017-07-14 12:45:08 -07:00
catalog_command_test.go Add catalog CLI functions (#3204) 2017-07-14 12:45:08 -07:00
catalog_list_datacenters.go Add catalog CLI functions (#3204) 2017-07-14 12:45:08 -07:00
catalog_list_datacenters_test.go New config parser, HCL support, multiple bind addrs (#3480) 2017-09-25 11:40:42 -07:00
catalog_list_nodes.go Add catalog CLI functions (#3204) 2017-07-14 12:45:08 -07:00
catalog_list_nodes_test.go New config parser, HCL support, multiple bind addrs (#3480) 2017-09-25 11:40:42 -07:00
catalog_list_services.go Sort tags so output is deterministic. 2017-07-14 17:00:08 -07:00
catalog_list_services_test.go New config parser, HCL support, multiple bind addrs (#3480) 2017-09-25 11:40:42 -07:00
commands.go Add catalog CLI functions (#3204) 2017-07-14 12:45:08 -07:00
configtest.go New config parser, HCL support, multiple bind addrs (#3480) 2017-09-25 11:40:42 -07:00
configtest_test.go New config parser, HCL support, multiple bind addrs (#3480) 2017-09-25 11:40:42 -07:00
event.go pkg refactor 2017-06-10 18:52:45 +02:00
event_test.go New config parser, HCL support, multiple bind addrs (#3480) 2017-09-25 11:40:42 -07:00
exec.go pkg refactor 2017-06-10 18:52:45 +02:00
exec_test.go New config parser, HCL support, multiple bind addrs (#3480) 2017-09-25 11:40:42 -07:00
force_leave.go pkg refactor 2017-06-10 18:52:45 +02:00
force_leave_test.go New config parser, HCL support, multiple bind addrs (#3480) 2017-09-25 11:40:42 -07:00
info.go pkg refactor 2017-06-10 18:52:45 +02:00
info_test.go New config parser, HCL support, multiple bind addrs (#3480) 2017-09-25 11:40:42 -07:00
join.go pkg refactor 2017-06-10 18:52:45 +02:00
join_test.go New config parser, HCL support, multiple bind addrs (#3480) 2017-09-25 11:40:42 -07:00
keygen.go pkg refactor 2017-06-10 18:52:45 +02:00
keygen_test.go pkg refactor 2017-06-10 18:52:45 +02:00
keyring.go Shows the segment name in the keyring API and command output. 2017-09-07 12:17:39 -07:00
keyring_test.go New config parser, HCL support, multiple bind addrs (#3480) 2017-09-25 11:40:42 -07:00
kv_command.go Add catalog CLI functions (#3204) 2017-07-14 12:45:08 -07:00
kv_command_test.go test: run command tests in parallel 2017-05-31 00:29:25 +02:00
kv_delete.go pkg refactor 2017-06-10 18:52:45 +02:00
kv_delete_test.go New config parser, HCL support, multiple bind addrs (#3480) 2017-09-25 11:40:42 -07:00
kv_export.go pkg refactor 2017-06-10 18:52:45 +02:00
kv_export_test.go New config parser, HCL support, multiple bind addrs (#3480) 2017-09-25 11:40:42 -07:00
kv_get.go pkg refactor 2017-06-10 18:52:45 +02:00
kv_get_test.go New config parser, HCL support, multiple bind addrs (#3480) 2017-09-25 11:40:42 -07:00
kv_import.go fix command/kv_import.go help text (#3387) 2017-08-10 09:17:37 +02:00
kv_import_test.go New config parser, HCL support, multiple bind addrs (#3480) 2017-09-25 11:40:42 -07:00
kv_put.go pkg refactor 2017-06-10 18:52:45 +02:00
kv_put_test.go New config parser, HCL support, multiple bind addrs (#3480) 2017-09-25 11:40:42 -07:00
leave.go pkg refactor 2017-06-10 18:52:45 +02:00
leave_test.go New config parser, HCL support, multiple bind addrs (#3480) 2017-09-25 11:40:42 -07:00
lock.go command/lock: Add -child-exitcode, return 2 on child error (#3329) 2017-07-26 22:09:19 -07:00
lock_test.go New config parser, HCL support, multiple bind addrs (#3480) 2017-09-25 11:40:42 -07:00
maint.go pkg refactor 2017-06-10 18:52:45 +02:00
maint_test.go New config parser, HCL support, multiple bind addrs (#3480) 2017-09-25 11:40:42 -07:00
members.go Remaps servers to "<all>" only when listing multiple segments. 2017-09-05 13:50:38 -07:00
members_test.go New config parser, HCL support, multiple bind addrs (#3480) 2017-09-25 11:40:42 -07:00
monitor.go pkg refactor 2017-06-10 18:52:45 +02:00
operator.go pkg refactor 2017-06-10 18:52:45 +02:00
operator_autopilot.go pkg refactor 2017-06-10 18:52:45 +02:00
operator_autopilot_get.go Add UpgradeVersionTag to autopilot get/set commands 2017-07-18 14:01:04 -07:00
operator_autopilot_get_test.go New config parser, HCL support, multiple bind addrs (#3480) 2017-09-25 11:40:42 -07:00
operator_autopilot_set.go Add UpgradeVersionTag to autopilot get/set commands 2017-07-18 14:01:04 -07:00
operator_autopilot_set_test.go New config parser, HCL support, multiple bind addrs (#3480) 2017-09-25 11:40:42 -07:00
operator_autopilot_test.go test: run command tests in parallel 2017-05-31 00:29:25 +02:00
operator_raft.go pkg refactor 2017-06-10 18:52:45 +02:00
operator_raft_list.go pkg refactor 2017-06-10 18:52:45 +02:00
operator_raft_list_test.go Bumps default Raft protocol to version 3. (#3477) 2017-09-25 15:27:04 -07:00
operator_raft_remove.go pkg refactor 2017-06-10 18:52:45 +02:00
operator_raft_remove_test.go New config parser, HCL support, multiple bind addrs (#3480) 2017-09-25 11:40:42 -07:00
operator_raft_test.go pkg refactor 2017-06-10 18:52:45 +02:00
operator_test.go test: run command tests in parallel 2017-05-31 00:29:25 +02:00
reload.go pkg refactor 2017-06-10 18:52:45 +02:00
reload_test.go New config parser, HCL support, multiple bind addrs (#3480) 2017-09-25 11:40:42 -07: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 New config parser, HCL support, multiple bind addrs (#3480) 2017-09-25 11:40:42 -07:00
snapshot_command.go golint: Rename fields and structs 2017-04-25 09:26:13 -07:00
snapshot_command_test.go test: run command tests in parallel 2017-05-31 00:29:25 +02:00
snapshot_inspect.go pkg refactor 2017-06-10 18:52:45 +02:00
snapshot_inspect_test.go New config parser, HCL support, multiple bind addrs (#3480) 2017-09-25 11:40:42 -07:00
snapshot_restore.go pkg refactor 2017-06-10 18:52:45 +02:00
snapshot_restore_test.go New config parser, HCL support, multiple bind addrs (#3480) 2017-09-25 11:40:42 -07:00
snapshot_save.go pkg refactor 2017-06-10 18:52:45 +02:00
snapshot_save_test.go New config parser, HCL support, multiple bind addrs (#3480) 2017-09-25 11:40:42 -07:00
util_test.go build: make tests independent of build tags 2017-08-30 13:40:18 +02:00
util_unix.go command: fix Windows build 2015-01-25 05:00:52 +01:00
util_windows.go docs: describe child process handling on Windows for lock command 2015-01-25 11:42:29 +01:00
validate.go New config parser, HCL support, multiple bind addrs (#3480) 2017-09-25 11:40:42 -07:00
validate_test.go New config parser, HCL support, multiple bind addrs (#3480) 2017-09-25 11:40:42 -07:00
version.go New config parser, HCL support, multiple bind addrs (#3480) 2017-09-25 11:40:42 -07:00
version_test.go test: run command tests in parallel 2017-05-31 00:29:25 +02:00
watch.go pkg refactor 2017-06-10 18:52:45 +02:00
watch_test.go New config parser, HCL support, multiple bind addrs (#3480) 2017-09-25 11:40:42 -07:00