Commit Graph

4973 Commits

Author SHA1 Message Date
James Phillips b94b5d6050 Update CHANGELOG.md 2016-10-25 19:24:32 -07:00
James Phillips c01a3871c9 Adds support for snapshots and restores. (#2396)
* Updates Raft library to get new snapshot/restore API.

* Basic backup and restore working, but need some cleanup.

* Breaks out a snapshot module and adds a SHA256 integrity check.

* Adds snapshot ACL and fills in some missing comments.

* Require a consistent read for snapshots.

* Make sure snapshot works if ACLs aren't enabled.

* Adds a bit of package documentation.

* Returns an empty response from restore to avoid EOF errors.

* Adds API client support for snapshots.

* Makes internal file names match on-disk file snapshots.

* Adds DC and token coverage for snapshot API test.

* Adds missing documentation.

* Adds a unit test for the snapshot client endpoint.

* Moves the connection pool out of the client for easier testing.

* Fixes an incidental issue in the prepared query unit test.

I realized I had two servers in bootstrap mode so this wasn't a good setup.

* Adds a half close to the TCP stream and fixes panic on error.

* Adds client and endpoint tests for snapshots.

* Moves the pool back into the snapshot RPC client.

* Adds a TLS test and fixes half-closes for TLS connections.

* Tweaks some comments.

* Adds a low-level snapshot test.

This is independent of Consul so we can pull this out into a library
later if we want to.

* Cleans up snapshot and archive and completes archive tests.

* Sends a clear error for snapshot operations in dev mode.

Snapshots require the Raft snapshots to be readable, which isn't supported
in dev mode. Send a clear error instead of a deep-down Raft one.

* Adds docs for the snapshot endpoint.

* Adds a stale mode and index feedback for snapshot saves.

This gives folks a way to extract data even if the cluster has no
leader.

* Changes the internal format of a snapshot from zip to tgz.

* Pulls in Raft fix to cancel inflight before a restore.

* Pulls in new Raft restore interface.

* Adds metadata to snapshot saves and a verify function.

* Adds basic save and restore snapshot CLI commands.

* Gets rid of tarball extensions and adds restore message.

* Fixes an incidental bad link in the KV docs.

* Adds documentation for the snapshot CLI commands.

* Scuttle any request body when a snapshot is saved.

* Fixes archive unit test error message check.

* Allows for nil output writers in snapshot RPC handlers.

* Renames hash list Decode to DecodeAndVerify.

* Closes the client connection for snapshot ops.

* Lowers timeout for restore ops.

* Updates Raft vendor to get new Restore signature and integrates with Consul.

* Bounces the leader's internal state when we do a restore.
2016-10-25 19:20:24 -07:00
Kyle Havlovitz 7372c5fdf2 Update to the higher quality Travis build icon 2016-10-25 18:11:35 -07:00
Kyle Havlovitz ae99f76763 Wait for agent joins to finish in TestClient_RPC 2016-10-25 17:48:11 -07:00
Kyle Havlovitz f6c971f46c Fix race condition in TestClient_WatchList and TestClient_WatchGet 2016-10-25 17:48:11 -07:00
Kyle Havlovitz e1d850c081 Add wait logic to TestClient_RPC_Pool 2016-10-25 17:48:11 -07:00
Kyle Havlovitz e2d9114b34 Agent anti-entropy test fixes 2016-10-25 17:48:11 -07:00
James Phillips b72840ae4c Merge pull request #2437 from hashicorp/f-travis-pr-lite
Only builds the binary stuff under master branch CI.
2016-10-25 13:58:35 -07:00
James Phillips 5a06d5eefc
Only builds the binary stuff under master branch CI. 2016-10-25 13:49:57 -07:00
Kyle Havlovitz 3add830b3a Test fixes (#2434)
* Test fixes in health_endpoint_test.go, agent_endpoint_test.go and rtt_test.go
* Don't reuse the same agent config in TestAgent_ReconnectConfigSettings
2016-10-25 13:46:54 -07:00
James Phillips 03ae813bc7 Merge pull request #2389 from hashicorp/jbs-2019
Lower Service tag DNS warning to DEBUG for #2019
2016-10-24 17:05:02 -07:00
James Phillips 104b12040a Merge pull request #2383 from hashicorp/jbs-1462
Clarify retry_join addresses for #1462
2016-10-20 11:40:03 -07:00
Brian Shumate 17dfb0b196
Reworded and applied to -retry-join also 2016-10-20 14:14:55 -04:00
James Phillips 554c898338 Merge pull request #2382 from zaunerc/master
Add info about return values for function Get().
2016-10-20 09:40:58 -07:00
James Phillips fa8cd7f833 Merge pull request #2381 from bluefeet/master
Add the Perl Consul client library to the list of SDKs on the web site.
2016-10-20 09:39:39 -07:00
James Phillips 41f1764434 Adds a version note for the consul kv command.
Closes #2410.
2016-10-13 08:02:20 -07:00
James Phillips 6197cc802a Merge pull request #2408 from Kourkis/patch-1
Fix typo
2016-10-11 07:55:52 -07:00
Michel Lebeau 2397c75856 Fix typo
The double "to" was distracting
2016-10-11 15:51:49 +01:00
sdinakar85 bb08378059 Multiple Datacenter Documentation
Updated the slightly confusing documentation on how to join the clusters over WAN. Also the inputs from #1656 is taken in account in this documentation update.
2016-10-07 14:12:37 +05:30
James Phillips eb44c4cf5d Update CHANGELOG.md 2016-10-06 22:11:48 -07:00
James Phillips 501e71604d Update CHANGELOG.md 2016-10-06 22:10:11 -07:00
James Phillips 596f172484 Update CHANGELOG.md 2016-10-06 21:55:36 -07:00
James Phillips 95d418d7da
Removes reap config option. 2016-10-06 21:45:18 -07:00
James Phillips ead3b81f65 Update CHANGELOG.md 2016-10-06 21:41:49 -07:00
James Phillips b073ec72f3 Adds a note about child process reaping going away. 2016-10-06 21:38:29 -07:00
James Phillips 24153f6e54 Merge pull request #2394 from adamwg/reap-the-reaper
Remove the child process reaper (resolve #1988)
2016-10-06 21:35:03 -07:00
James Phillips 55a00d4d1b Update community.html.erb 2016-10-06 17:38:34 -07:00
James Phillips 3581ce03c5 Update README.md 2016-10-06 17:31:40 -07:00
James Phillips c7fb9aa0e7 Update README.md 2016-10-06 17:30:59 -07:00
James Phillips d12334f3a1 Merge pull request #2395 from gitter-badger/gitter-badge
Add a Gitter chat badge to README.md
2016-10-06 17:30:38 -07:00
The Gitter Badger 240e71c3bf Add Gitter badge 2016-10-07 00:29:26 +00:00
James Phillips b7755c44f3 Merge pull request #2392 from Tecsisa/Fix_DNS_Cache_doc
Doc fix - allow_stale enabled by default in v0.7
2016-10-06 08:31:52 -07:00
Adrián López Gómez e25efedcc2 Doc fix - allow_stale enabled by default in v0.7 2016-10-06 15:00:28 +02:00
James Phillips d8e2fb7dd5 Merge pull request #2386 from aboettger-tuhh/patch-1
json syntax corrected
2016-10-05 20:01:54 -07:00
James Phillips a0e2b8bda5 Update CHANGELOG.md 2016-10-05 18:11:35 -07:00
James Phillips 352fc61b7b Merge pull request #2391 from hashicorp/b-peers-docs
Fixes port numbers in peers.info.
2016-10-05 18:10:04 -07:00
James Phillips 9c65bfa768
Fixes port numbers in peers.info. 2016-10-05 18:09:15 -07:00
James Phillips ca9c5cc098 Update CHANGELOG.md 2016-10-05 17:55:04 -07:00
James Phillips 556ffc588b Adds comment about SessionOpts. 2016-10-05 17:53:27 -07:00
James Phillips 25455c97c3 Merge pull request #2372 from HotelsDotCom/flexible-lock-sessions
More flexible Session configuration when using api.Lock
2016-10-05 17:52:12 -07:00
Brian Shumate 74a8fbef06
Lower Service tag DNS warning to DEBUG for #2019 2016-10-05 08:45:01 -04:00
Adam Wolfe Gordon de4fcf9a4e vendor: Remove go-reap
go-reap is no longer used since we no longer reap child processes.
2016-10-04 09:41:29 -06:00
Adam Wolfe Gordon 5ac5a8ccfc agent: Stop reaping child processes (resolves #1988)
The consul docker image now uses dumb-init to reap child processes, so
there's no need to reap them ourselves.
2016-10-04 09:36:41 -06:00
Andreas Böttger cb8deabdc3 json syntax corrected 2016-10-04 15:40:53 +02:00
Brian Shumate 320b07c025
Clarify retry_join addresses for #1462
- Initial pass at adding note about address formats for retry_join;
  IPv4 is a list of IPs only, whereas IPv6 are bracketed IPs + port
2016-10-03 12:15:24 -04:00
Christoph Zauner faf85f602b Add info about return values for function Get(). 2016-10-03 08:24:04 +00:00
Aran Deltac 28277d35e7 Add the Perl Consul client library to the list of SDKs on the web site. 2016-10-01 17:52:45 -07:00
James Phillips 9fc0c0ede2 Merge pull request #2369 from hashicorp/jbs-2204
Update getting started/join to address #2204
2016-09-30 07:51:30 -07:00
James Phillips dc4a604e11 Merge pull request #2377 from hashicorp/jbs-2210
Update variable value information, fixes #2210
2016-09-30 07:50:52 -07:00
Brian Shumate ba5bbf8ca2
Update variable value information as port must also be specified, fixes #2210 2016-09-29 12:50:00 -04:00