Commit Graph

5388 Commits

Author SHA1 Message Date
James Phillips a604c438a2
Fixes a race condition when updating the state store during a snapshot restore. 2017-01-25 09:58:22 -08:00
James Phillips 0891b6c74d
Adds fine-grained watches to catalog endpoints. 2017-01-25 09:58:22 -08:00
James Phillips 5afa233d28
Adds diff check for node and service parts of register requests.
We always did an update before which caused excessive watch churn, even
with our new fine-grained queries. This does a diff any only updates the
node and service records if something actually changed.
2017-01-25 09:58:22 -08:00
James Phillips 40ef50c738
Don't do any watch tracking for non-blocking queries. 2017-01-25 09:58:22 -08:00
James Phillips 034d1960b6
Removes some incorrect comments.
We can't actually return a fine-grained index from these tables unless
support is added for tombstones. Otherwise, the index could slip backwards
as things are deleted.
2017-01-25 09:58:22 -08:00
James Phillips 085672a126
Adds new variant of blocking query wrapper with WatchSet support. 2017-01-25 09:58:22 -08:00
James Phillips b4272f31ad
Updates go-immutable-radix and go-memdb to get fine-grained watches. 2017-01-25 09:58:22 -08:00
James Phillips 6e58d7b80d
Pulls in latest static asset updates. 2017-01-25 09:57:56 -08:00
Andrey Upadyshev 0523eaf1f3 Fix missing query parameters formatting in HTTP API documentation 2017-01-25 14:34:56 +01:00
Kyle Havlovitz 575f3d4086 Merge pull request #2668 from hashicorp/f-prepared-query-nodemeta
Node metadata support in prepared queries
2017-01-24 12:23:22 -05:00
legendtkl b9ce8f6e4f Fix consul kv example with flag separator
1. fix consul kv example with flag separator
2017-01-24 17:03:12 +08:00
Kyle Havlovitz a09b6ea8b4
Fix test import 2017-01-23 21:34:01 -05:00
Kyle Havlovitz cc271aa436
Merge branch 'master' into f-prepared-query-nodemeta 2017-01-23 20:17:48 -05:00
Kyle Havlovitz 3cd054e81f
Add tests for node meta in prepared queries and update docs 2017-01-23 19:17:30 -05:00
Seth Vargo 222ade1f84 Say which ec2 perms to use 2017-01-20 17:13:28 -05:00
Cameron Stokes 5fc1913c3c Typo in docs/upgrade-specific page. 2017-01-19 12:28:30 -08:00
James Phillips 8ba6b71ae2 Merge pull request #2665 from dblackdblack/sp-givne
Fix misspelled 'givne' → 'given'
2017-01-19 09:18:23 -08:00
David Black c65d965aa7 s/givne/given/ 2017-01-19 09:16:31 -08:00
James Phillips 945959b608 Update CHANGELOG.md 2017-01-18 16:11:31 -08:00
James Phillips 9e8952c126 Merge pull request #2661 from hashicorp/f-node-id
Adds basic support for node IDs.
2017-01-18 16:02:38 -08:00
James Phillips 2e67edb2f2 Fixes a paste-o in the docs. 2017-01-18 16:02:04 -08:00
James Phillips 60c135dd67
Uses clean replies each time so they are safe to receive map changes. 2017-01-18 15:40:19 -08:00
James Phillips abe7b33986
Fixes a startup ordering issue between Raft and Serf.
This fixes #2663 and fixes #1899. It's not super related to this PR,
but the startup time changes that this PR brings made this a lot worse
so I was able to track it down.
2017-01-18 15:06:15 -08:00
James Phillips 55cd1d975c
Adds catalog support for node IDs. 2017-01-18 14:26:42 -08:00
Kyle Havlovitz fdf2a10835
First pass at adding node meta filter to prepared queries 2017-01-18 16:23:33 -05:00
James Phillips e73d3c2312
Adds a test to make sure we get the same ID on the second run. 2017-01-18 09:52:34 -08:00
James Phillips 96bff003b7
Adds basic support for node IDs. 2017-01-17 22:47:59 -08:00
James Phillips 80d3149de2 Merge pull request #2660 from hashicorp/sethvargo-patch-1
Omit empty node_meta
2017-01-17 17:18:29 -08:00
Seth Vargo 093fb59144 Omit empty node_meta 2017-01-17 20:17:20 -05:00
Kyle Havlovitz b08aa456f5 Update CHANGELOG.md 2017-01-17 19:24:41 -05:00
Kyle Havlovitz b3fdfb09d8
Minor formatting tweaks as a follow-up to #2654 2017-01-17 19:20:29 -05:00
Sean Chittenden 75f8ca9ecd Merge pull request #2659 from hashicorp/f-update-go-sockaddr
Update `hashicorp/go-sockaddr` to account for `tun(4)` interfaces.
2017-01-17 13:06:37 -08:00
Seth Vargo 6cf713ae3b Merge pull request #2658 from hashicorp/sethvargo/fatal
Do not skip tests when Consul is missing
2017-01-17 15:45:32 -05:00
Sean Chittenden c82cc25b09
Update `hashicorp/go-sockaddr` to account for `tun(4)` interfaces. 2017-01-17 12:37:56 -08:00
Seth Vargo de0fa1a378 Do not skip tests when Consul is missing
This bit me on CI. The current behavior of the testutil server is to skip if consul isn't present. When lots of output is scrolling by, you're likely to miss the message that the test was skipped. Instead, I propose that we hard fatal if consul doesn't exist, and upstream consumers can skip the tests if they want.
2017-01-17 14:57:57 -05:00
James Phillips 17c4754eac Merge pull request #2639 from tanuck/master
Standardize the case of all check log messages
2017-01-17 09:07:45 -08:00
James Phillips 85bd8a9b88 Update CHANGELOG.md 2017-01-17 09:02:35 -08:00
James Phillips 05ce6766aa Merge pull request #2578 from ybubnov/concurrent-safe-notification-mock
Concurrent-safe notification mock
2017-01-17 09:01:43 -08:00
James Phillips dc080dd9a6 Merge pull request #2656 from legal90/fix-website-raft-multiplier
website: Fix nesting for "raft_multiplier" option
2017-01-17 06:23:55 -08:00
Mikhail Zholobov d54630ed79
website: Fix nesting for "raft_multiplier" option 2017-01-17 14:59:18 +02:00
James Phillips d75900a94f Merge pull request #2654 from hashicorp/f-metafilter-endpoints
Add node metadata filtering to remaining endpoints
2017-01-14 17:07:29 -08:00
Kyle Havlovitz 9080006a37
Add support for multiple metadata filters to remaining endpoints
Enabled multiple meta filters for /v1/catalog/nodes and /v1/catalog/services
2017-01-13 20:49:13 -05:00
Kyle Havlovitz e37f25dc02
Add node metadata filtering to remaining health/catalog endpoints 2017-01-13 20:08:43 -05:00
James Phillips 9dc064ddcd Merge pull request #2651 from hashicorp/jbs-demo-version
Demo: configurable Consul version
2017-01-13 16:27:17 -08:00
James Phillips 73821c769e Merge pull request #2653 from hashicorp/f-split-state-store
Breaks up the state store into several files.
2017-01-13 11:49:54 -08:00
James Phillips c837d055cd
Breaks up the state store into several files. 2017-01-13 11:47:16 -08:00
Brian Shumate 3ea3a9df37
Demo: configurable Consul version
- Add CONSUL_DEMO_VERSION env var for specifying Consul version
2017-01-13 11:03:10 -05:00
James Phillips ee5d89a01e Merge pull request #2650 from needkane/patch-1
occasionally->occasionally
2017-01-13 07:39:31 -08:00
needkane 9258df0f5b occasionally->occasionally 2017-01-13 15:34:44 +08:00
Kyle Havlovitz 0b8128c0ce Merge pull request #2649 from hashicorp/test-fix
Fix inconsistency in TestStateStore_ServicesByNodeMeta
2017-01-12 19:59:21 -05:00