Commit Graph

3412 Commits

Author SHA1 Message Date
James Phillips cd6be4a88d Avoids taking the length again when parsing DNS queries. 2015-11-17 08:40:47 -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 8fc6a6a986 Switches to helpers for prepared query API wrappers. 2015-11-16 23:12:44 -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 162c6bafef Updates the changelog. 2015-11-15 17:06:00 -08:00
James Phillips 800e946bf1 Adds and updates docs for prepared queries. 2015-11-15 17:06:00 -08:00
James Phillips 712a3dba2f Adds API client support for prepared queries. 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 4715c04c98 Adds a test to make sure a stale retry terminates. 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 4a0a60af55 Adds DNS support for prepared queries (needs tests). 2015-11-15 17:06:00 -08:00
James Phillips 5e7523ea4b Adds a slightly more flexible mock system so we can test DNS. 2015-11-15 17:06:00 -08:00
James Phillips da20e6668b Adds a note about obfuscating query name/ID from the logs. 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 989619cb6b Moves DNS over to new shuffle and filter functions. 2015-11-15 17:06:00 -08:00