Commit Graph

96 Commits (6ed70ebbe3e0fa58ed04e51652a6d6bc2603cada)

Author SHA1 Message Date
Paul Dix 36d16a3172 Update broker to have URLs for replicas
* Update the infludb broker to not need a server so that it'll work on non-data node servers
* Update messaging broker to keep track of connect urls for replicas
2015-02-17 21:02:53 -05:00
Paul Dix 8fee14fbf8 Fixes based on PR feedback.
* Pull out magic numbers for running CQs in the broker
* Typo fixes in comments
* Update the process_continuous_queries endpoint to not have gzip
* Remove previous implementation of MeasurementNames in favor of new simpler one
2015-02-17 21:02:53 -05:00
Paul Dix edcc20bcab Wire up show continuous queries 2015-02-17 21:02:52 -05:00
Paul Dix fec6764b09 WIP: wire up continuous queries
* Fix run to work with CQ broker
* Fix CQ handler
* Fix SetTimeRange to use RFC3339Nano
* Fix the time range tests
* Fix the parser to parse for RFC3339Nano literals in addition to the other format
* Add logic for running CQs
* Remove duplicate WriteBufferSize default setting from config
2015-02-17 21:02:18 -05:00
Paul Dix 7269647bfd Fix parser test, fix handler 2015-02-17 21:01:21 -05:00
Philip O'Toole 3810fb55a9 Unit test writing boolean types 2015-02-17 12:37:24 -08:00
Philip O'Toole e82502227b Decode strings correctly with correct end index
Unit test indexing of strings.
2015-02-17 12:33:50 -08:00
Philip O'Toole b564b90171 Rename test case for clarity 2015-02-17 12:04:10 -08:00
Philip O'Toole ca1f21fc6f Unit test field conflict detection 2015-02-15 15:48:19 -08:00
Philip O'Toole 02db5a3484 Unit test that fields are recorded correctly
This test checks that a non-existent field is flagged correctly during a
query.
2015-02-15 15:26:11 -08:00
Philip O'Toole 6f150da719 Wait briefly to ensure data is written 2015-02-15 12:22:58 -08:00
Philip O'Toole 7955513f61 Add simple write-and-query test case
The test case "TestHandler_serveWriteSeriesZeroTime" is actually failing
under certain circumstances, giving the impression that there is
something special about the case where the timestamp is not supplied. In
fact this is not the case, and even a write with a timestamp specified
is failing. Therefore add another test case that covers that case.
2015-02-15 12:17:41 -08:00
Cory LaNou 9ca976df39 add HEAD /ping test 2015-02-12 17:46:39 -07:00
Cory LaNou d6800dde0d added ability for /ping to respond to HEAD method. fixes #1596 2015-02-12 17:43:52 -07:00
David Norton 8f9f8051a4 fix #1579: SHOW MEASUREMENTS format 2015-02-11 23:03:44 -05:00
Cory LaNou e99ba7207c add test for nil user on authenticated server 2015-02-11 11:13:41 -07:00
Cory LaNou 04fe5a6bc7 check for nil user in write handler 2015-02-11 10:52:29 -07:00
Todd Persen 4e17f4dbc0 Handle OPTIONS for CORS preflight. 2015-02-10 23:04:20 -08:00
Cory LaNou ffd71ea39c fixes #1542 - my bad 2015-02-10 15:57:46 -07:00
Ben Johnson 3cb275cb01 Add optional gzip flag to handler.
The previous routing gzipped all routes and overwrote the Content-Length
header. This header was needed for the metastore copy and caused it to
break clustering. This commit fixes this issue by adding a `gzipped` flag
to the `route` struct.
2015-02-09 10:23:11 -07:00
Cory LaNou bcd9724ce0 allow pretty printing on http errors in query endpoint 2015-02-07 10:32:37 -07:00
Cory LaNou f84ea8268a Merge pull request #1526 from influxdb/http-status-endpoint
Start of a status http endpoint
2015-02-06 16:12:39 -07:00
Cory LaNou 93d9236554 fixing status named route, removing whitespace 2015-02-06 15:20:55 -07:00
Cory LaNou 339e170d82 start of a status http endpoint 2015-02-06 13:52:28 -07:00
David Norton 3f3c00da8d fix #1510: panics when measurement doesn't exist 2015-02-06 15:43:53 -05:00
Cory LaNou cd57a7fe42 removing debug output 2015-02-05 16:30:09 -07:00
Cory LaNou adba605194 unintended change 2015-02-05 16:25:10 -07:00
Cory LaNou 1604d7f604 refactor how we default authentication enabled 2015-02-05 15:54:32 -07:00
Cory LaNou f4dfb87acc first pass at hardening authorize 2015-02-05 14:39:40 -07:00
David Norton d0dc677292 fix #1516: ALTER RETENTION POLICY 2015-02-05 12:54:06 -05:00
Cory LaNou 727f7d1ed5 add tests to verify gzip compression headers 2015-02-04 17:51:10 -07:00
Cory LaNou 8845a07876 adding missed return. 2015-02-04 17:34:26 -07:00
Cory LaNou 2b5565a2e7 add gzip response capability to httpd endpoints. fixes #1449 2015-02-04 16:16:37 -07:00
Philip O'Toole b424c2fe0c Merge pull request #1503 from influxdb/top_level_timestamps
Fix batched writes
2015-02-04 08:25:46 -08:00
David Norton 2b84113487 issue #1423: wire up show field keys 2015-02-04 10:59:47 -05:00
Philip O'Toole a03e06eae0 Fix race condition in test client
This ensures that each publish operation completes before the next one
starts.
2015-02-03 20:35:19 -08:00
Philip O'Toole 6f84d450fb Fix typo in unit HTTP handler test 2015-02-03 20:35:19 -08:00
Philip O'Toole 347032ebf1 Move batch-points code to influxdb package
Since batching is not specific to the HTTP transport, this makes the
code available for use by other future transports.
2015-02-03 18:43:23 -08:00
David Norton 19992f3ecc gofmt -s (simplify) 2015-02-01 15:33:12 -05:00
Cory LaNou cc3a147421 Use time.Equal whenever comparing time 2015-01-30 13:45:07 -07:00
Cory LaNou 8e341831ca update batchwrite tests to use utc and time.Equal() 2015-01-30 13:45:07 -07:00
Cory LaNou 98354e2877 raft test still failing, seeing if time tests fail on build, pass locally 2015-01-30 13:44:29 -07:00
David Norton 8693d771ed issue #1418: persit user after grant/revoke 2015-01-30 10:46:29 -05:00
David Norton 0b70307ca0 issue #1418: rm param from executeGrantStatement
- Remove database param from executeGrantStatement and use the database
  name specified in the ON clause.

- Add test for granting DB privilege.
2015-01-30 10:46:29 -05:00
David Norton d7814eb5f1 issue #1418: wire up revoke privilege 2015-01-30 10:46:29 -05:00
David Norton 5cfb8d9210 issue #1418: wire up grant permission 2015-01-30 10:46:29 -05:00
Philip O'Toole fc89f741cb Skip time-related marshalling tests until fixed 2015-01-29 22:42:09 -08:00
Cory LaNou c9e4eea836 inherit precision from top level object when writing points 2015-01-29 16:44:10 -07:00
Cory LaNou b6ceca4c1c godoc comments and misc formatting 2015-01-29 16:33:31 -07:00
Cory LaNou b6725501f4 Rounding precision on writing 2015-01-29 16:23:15 -07:00