1193 Commits

Author SHA1 Message Date
Ryan Uber
afafae53fd consul: dev mode works 2015-12-26 20:19:36 -05:00
James Phillips
18148b9af8 Cleans up some small go vet findings. 2015-12-18 22:14:48 -08:00
James Phillips
6dc151b1b9 Adds source address logging on RPC errors. 2015-12-16 14:03:03 -08:00
James Phillips
e25337866c Adds a check to make sure query names can't be registered twice. 2015-12-02 09:04:51 -08:00
Armon Dadgar
847343d801 consul: shrink yamux recv buffer on idle streams 2015-11-27 17:20:57 -08:00
James Phillips
e3ef204ac7 Makes all the query ops the correct type. 2015-11-17 09:27:10 -08:00
James Phillips
533e6fc89e Returns a zero index for a lookup error case. 2015-11-17 09:25:20 -08:00
James Phillips
1059a8b3a3 Removes a useless empty import and fixes some stale comments. 2015-11-17 08:29:20 -08:00
James Phillips
06b918e46d Makes UUID regex case-insensitive. 2015-11-16 22:57:47 -08:00
James Phillips
e1ce1a34b0 Moves conversion of nil slices up to HTTP layer for prepared queries. 2015-11-15 17:06:00 -08:00
James Phillips
b8ddb21978 Adds a paranoia set of the nodes slice to nil. 2015-11-15 17:06:00 -08:00
James Phillips
46d5afa574 Adds a test to ensure we don't return a nil slice. 2015-11-15 17:06:00 -08:00
James Phillips
f60fc872d1 Gets rid of some unused constants. 2015-11-15 17:06:00 -08:00
James Phillips
67fd4fa78d Returns a 404 from a get or execute of a nonexistent query. 2015-11-15 17:06:00 -08:00
James Phillips
e9480ecb02 Plumbs the service name back and uses agent-specific TTL settings as a fallback. 2015-11-15 17:06:00 -08:00
James Phillips
81b43135f9 Adds unit tests for prepared queries and DNS, using existing tests for equivalence. 2015-11-15 17:06:00 -08:00
James Phillips
6634cd6567 Adds query metadata to prepared query execute response. 2015-11-15 17:06:00 -08:00
James Phillips
c955799baf Makes an empty prepared query list an empty slice, not a nil one. 2015-11-15 17:06:00 -08:00
James Phillips
34b685cb4c Adds a unit test for the new RTT getDatacentersByDistance fn. 2015-11-15 17:06:00 -08:00
James Phillips
8e1bea0192 Completes FSM support for prepared queries. 2015-11-15 17:06:00 -08:00
James Phillips
57be55103c Adds an HTTP endpoint for prepared queries. 2015-11-15 17:06:00 -08:00
James Phillips
5d06a87d82 Adds an RPC endpoint injection method for testing. 2015-11-15 17:06:00 -08:00
James Phillips
7af41edf52 Changes Lookup to Get since we don't need it (only Execute does). 2015-11-15 17:06:00 -08:00
James Phillips
a57d642fa0 Always increments the failovers counter, even for error-ed DCs. 2015-11-15 17:06:00 -08:00
James Phillips
d06e2a535d Adds test for remote datacenter selection and query logic. 2015-11-15 17:06:00 -08:00
James Phillips
bbc5185000 Adds a test for the server wrapper. 2015-11-15 17:06:00 -08:00
James Phillips
eefdb56d1e Adds tag filter tests. 2015-11-15 17:06:00 -08:00
James Phillips
14170535e7 Adds execute tests for prepared queries. 2015-11-15 17:06:00 -08:00
James Phillips
30a18220af Adds status information about failovers to query results. 2015-11-15 17:06:00 -08:00
James Phillips
86ead892ab Removes unused ACL filter. 2015-11-15 17:06:00 -08:00
James Phillips
a9e9d5e311 Adds execute leader forward test for prepared queries. 2015-11-15 17:06:00 -08:00
James Phillips
7ded6c7a4a Adds a leader forwarding case for prepared queries. 2015-11-15 17:06:00 -08:00
James Phillips
fa414a2092 Adds tests for query lookup and list endpoints. 2015-11-15 17:06:00 -08:00
James Phillips
519666a97c Adds query parsing unit tests. 2015-11-15 17:06:00 -08:00
James Phillips
d4d866c6d5 Adds ACL cases for apply. 2015-11-15 17:06:00 -08:00
James Phillips
8222d3f462 Completes non-ACL version of apply test. 2015-11-15 17:06:00 -08:00
James Phillips
333da2a96c Adds lookup and list endpoints and basic end-to-end apply test. 2015-11-15 17:06:00 -08:00
James Phillips
58bb6e8ba4 Checks for valid UUIDs before calling in to index function. 2015-11-15 17:06:00 -08:00
James Phillips
0bd7e82686 Clarifies comment about name vs. ID. 2015-11-15 17:06:00 -08:00
James Phillips
666619dfc9 Skips unknown DCs during queries and chugs along in the face of errors. 2015-11-15 17:06:00 -08:00
James Phillips
2f34b51650 Moves sort to a query-time decision and adds back the limit. 2015-11-15 17:06:00 -08:00
James Phillips
7ca3f0a466 Adds an explicit ACL check that will fail vs. trying other DCs. 2015-11-15 17:06:00 -08:00
James Phillips
c41a3d6c8d Changes "not" prefix from "~" to "!". 2015-11-15 17:06:00 -08:00
James Phillips
81bb39751a Adds prefix "prepared" to everything prepared query-related. 2015-11-15 17:06:00 -08:00
James Phillips
b736bc4e68 Adds basic structure for prepared queries (needs tests). 2015-11-15 17:06:00 -08:00
James Phillips
1d1865ddff Factors code for pulling the sorted list of DCs into a common place. 2015-11-15 17:06:00 -08:00
James Phillips
1f87480e54 Adds a better shuffle test (similar to DNS). 2015-11-15 17:06:00 -08:00
James Phillips
7babcefc59 Changes structs and state store for prepared queries. 2015-11-15 17:06:00 -08:00
James Phillips
ff351b289a Merge pull request #1413 from hashicorp/b-coord-raft-errors
Adds a check for in-band error returns in the coordinate RaftApply.
2015-11-15 17:05:19 -08:00
James Phillips
f1f9d30ade Extends the session TTL max to 24 hours, and adds a warning to the docs. 2015-11-15 16:51:00 -08:00