Joseph Rothrock
d7420683ae
tweaking in response to various PR comments
2015-03-16 15:31:41 -07:00
Cory LaNou
e9bb3fa37b
Require parameter for query endpoint
2015-03-16 13:26:03 -06:00
Cory LaNou
61ee72596d
add time taken to the http server logs
2015-03-16 12:41:15 -06:00
Joseph Rothrock
4aa47dbe07
Merge branch 'master' of github.com:influxdb/influxdb into export
...
and update changelog
2015-03-13 16:07:47 -07:00
Joseph Rothrock
4aabcd907c
Dump cmd
...
Issue: 1909
move dump cmd to an http endpoint.
Add dump cmd on client to call the endpoint.
2015-03-13 15:37:23 -07:00
Joseph Rothrock
6f86cac5d8
move to http handler
2015-03-12 17:14:53 -07:00
Ben Johnson
7ab19b9f91
Merge branch 'master' of https://github.com/influxdb/influxdb into stateless-broker
2015-03-12 11:59:55 -06:00
Cory LaNou
ddc6e119ab
Add default column to SHOW RETENTION POLICIES
2015-03-12 11:07:51 -06:00
Ben Johnson
5f6bcf523f
Fix broker integration bugs.
2015-03-11 12:00:45 -06:00
Ben Johnson
66115f95ca
Merge branch 'master' of https://github.com/influxdb/influxdb into stateless-broker
...
Conflicts:
cmd/influxd/run.go
messaging/broker.go
messaging/client.go
messaging/client_test.go
messaging/intg_test.go
server.go
tx_test.go
2015-03-10 16:27:37 -06:00
Ben Johnson
27e9132796
Integrate stateless broker into remaining packages.
2015-03-10 14:53:45 -06:00
Cory LaNou
b8fb723967
Enforce retention policy minimum (currently 1 hour)
2015-03-10 10:49:54 -06:00
Cory LaNou
f01ee5eb51
adding integration tests for client library. misc bug fixes
2015-03-07 07:12:22 -07:00
Cory LaNou
bda9685526
Use BatchPoints for writing from client library
2015-03-07 07:12:21 -07:00
Shijiang Wei
469755293c
refactor the serverWait method
...
Signed-off-by: Shijiang Wei <mountkin@gmail.com>
2015-03-07 10:37:18 +08:00
Shijiang Wei
b69b105683
quit the index poller when timeout occured
...
Signed-off-by: Shijiang Wei <mountkin@gmail.com>
2015-03-06 17:48:55 +08:00
Shijiang Wei
837a248c1c
remove the unreachable return statement to make "go vet" happy
...
Signed-off-by: Shijiang Wei <mountkin@gmail.com>
2015-03-06 17:34:07 +08:00
Shijiang Wei
6d5ca0e4ef
fix the memory leak on the wait API
...
The pollForIndex method starts a goroutine to check the latest index
periodically. But when the HTTP request finishs, the loop is still there
and the goroutine never exits.
This leads to a memory leak and goroutine leak after each request to the
"/wait/:index" API.
The problem can be reproduced by ```ab -c 10 -t 30 http://127.0.0.1:8086/wait/1 ```.
After several times of benchmark you'll find that the memory usage grows markedly.
Signed-off-by: Shijiang Wei <mountkin@gmail.com>
2015-03-06 17:20:41 +08:00
Philip O'Toole
2402467e63
Add trace-level logging of write to handler
2015-03-05 17:38:03 -08:00
Philip O'Toole
693da1ba40
Remove unused import
2015-03-04 13:06:10 -08:00
Philip O'Toole
86b29b1908
Transplant 'SHOW FIELD KEYS' tests
2015-03-04 13:01:35 -08:00
Philip O'Toole
a8a2da3194
Transplan 'SHOW TAG VALUES' tests
2015-03-04 12:54:44 -08:00
Philip O'Toole
e84b338018
Transplant 'SHOW TAG KEYS' tests
2015-03-04 12:44:56 -08:00
Philip O'Toole
c485c63c77
Transplant 'SHOW MEASUREMENTS' series tests
2015-03-04 12:33:11 -08:00
Philip O'Toole
10217cc323
Transplant 'SHOW SERIES' tests
2015-03-04 12:21:39 -08:00
dgnorton
88a4852279
Merge pull request #1806 from influxdb/fix-1799
...
fix #1799 : make scanner recognize regex
2015-03-04 08:44:25 -05:00
Philip O'Toole
643cd09fee
'field not found' test now in integration tests
2015-03-03 17:17:08 -08:00
Philip O'Toole
8480a1829a
Move string and bool data write to integration
2015-03-03 17:11:09 -08:00
Philip O'Toole
0e3e0f6a38
Transplant more tests from httpd
2015-03-03 15:48:03 -08:00
Philip O'Toole
0d03998dc3
Move tests from HTTP handlers to integration
2015-03-03 14:03:49 -08:00
David Norton
9d6d36f2e9
fix #1799 : change regex delim to '/' & RHS only
2015-03-03 09:32:15 -05:00
David Norton
08796bd6af
fix #1799 : make scanner recognize regex
...
Change the regex delimiter from single quotes to back ticks (`) and make
the scanner recognize regex tokens.
Single quotes are used for string literals. Using a unique delimiter for
regular expression literals allows the scanner to recognize regular
expression tokens, which is inline with the way the rest of the
scanner / parser work.
2015-03-03 09:32:15 -05:00
Paul Dix
05606c510c
Merge pull request #1827 from influxdb/where_int_fields
...
Check for LT, LTE, GT, GTE
2015-03-02 18:35:59 -08:00
Philip O'Toole
f0c7a6b7e7
Check for LT, LTE, GT, GTE
...
Add relevant unit tests
2015-03-02 18:30:48 -08:00
Philip O'Toole
e82a57729f
Merge pull request #1826 from influxdb/where_int_fields
...
WHERE field
2015-03-02 18:13:32 -08:00
Paul Dix
97746c9614
Merge pull request #1813 from influxdb/fix-1813-measurement-not-found
...
Querying for missing measurements should return a 200
2015-03-02 17:58:49 -08:00
Philip O'Toole
1abe6e8a1a
Ensure GTE integer WHERE works
2015-03-02 17:44:31 -08:00
Philip O'Toole
b9d8c5d5a5
Tighten unit test for WHERE string field
2015-03-02 17:31:26 -08:00
Philip O'Toole
260dcf67f7
Decode correct byte slice
2015-03-02 17:30:03 -08:00
Todd Persen
294772d6b8
Fix previous usage of `500 Internal Server Error` for missing field
2015-03-02 17:17:17 -08:00
Todd Persen
a2bf256b62
Queries for a field that doesn't exist should return a `200 OK`
2015-03-02 17:14:59 -08:00
Todd Persen
56a712a8e3
Queries for a measurement that doesn't exist should return a `200 OK`
2015-03-02 17:04:05 -08:00
Philip O'Toole
543f5500b0
Fix unit test
2015-03-02 16:40:36 -08:00
Philip O'Toole
9d5ef5fc7a
Add unit test for WHERE string fields
2015-03-02 16:16:30 -08:00
Philip O'Toole
0976a8150b
More unit testing of WHERE field
2015-03-02 15:26:36 -08:00
Philip O'Toole
8196a49308
Condition is set, tests still fail
2015-03-02 15:15:58 -08:00
Paul Dix
52f257e349
Make show series return IDs and work with limit and offset.
...
Fixes #1765
2015-02-27 01:09:38 -05:00
Joseph Rothrock
661482937f
Support keys wrapped in dbl quotes
...
Issue: 1729
Trim off any leading or lagging dbl quotes.
2015-02-26 12:40:30 -08:00
David Norton
e7e04cdeb0
fix #1717 : code review chng & update CHANGELOG.md
2015-02-24 14:35:22 -05:00
David Norton
95a5f2588e
fix #1717 : all points must have at least one field
2015-02-24 14:09:10 -05:00
Cory LaNou
2c0be0b36b
test for process_continuous_queries http endpoint
2015-02-24 10:27:32 -07:00
Cory LaNou
f3fa3589c3
Do not wrap continuous queries endpoint in authorization
2015-02-24 09:12:10 -07:00
Philip O'Toole
86b91ead94
"SHOW TAG VALUES" now outputs series per tag key
...
This change tightens up the type used for "Series" so the pre-existing
sort method can be used.
2015-02-23 17:15:55 -08:00
Philip O'Toole
2f0fe901e3
Rename "Values" to "Fields" for writes
2015-02-23 15:06:56 -08:00
Cory LaNou
8e086a447b
Change delete to drop for [dD]ropDatabase
2015-02-23 13:14:18 -07:00
Cory LaNou
1a7f0681b0
Merge pull request #1693 from influxdb/speed-up-integration-testing
...
Make integration tests faster
2015-02-23 13:07:57 -07:00
Cory LaNou
7d931ad585
make integration tests faster
2015-02-23 11:01:21 -07:00
Philip O'Toole
3e727ac01e
Change "Rows" to "Series" in API output
2015-02-22 21:21:49 -08:00
Cory LaNou
4948b62784
first working version of drop series. more testing to come
2015-02-21 17:10:11 -07:00
David Norton
83e103b846
fixed test in handler_test.go
2015-02-21 16:49:38 -05:00
David Norton
9bff9cdeee
issue #1431 : wire up regex queries
2015-02-21 15:38:35 -05:00
Philip O'Toole
c3f4eb0de1
Tighten batching unit test
2015-02-20 11:28:07 -08:00
Philip O'Toole
3cb9398344
Add simple batch write test at handler level
...
This test passes, but only because it is checking for the wrong results.
Once batching is implemented this test will fail (as long as it is
unaltered).
2015-02-20 11:28:07 -08:00
Cory LaNou
660db92fef
return early
2015-02-19 19:46:45 -07:00
Cory LaNou
b7d92743e1
one more test
2015-02-19 19:41:08 -07:00
Cory LaNou
db73dcf0cc
less goldplating, more endpoints
2015-02-19 19:34:52 -07:00
Cory LaNou
4189eecef0
removing extra line
2015-02-19 19:01:53 -07:00
Cory LaNou
de18566446
correct comment, parse uint64
2015-02-19 19:00:11 -07:00
Cory LaNou
eb479b2826
allow for index/timeout to be specified in index endpoint
2015-02-19 18:55:42 -07:00
Cory LaNou
d6f9470f41
basic index endpoints
2015-02-19 17:51:14 -07:00
Philip O'Toole
cc46d0225e
Test that data is queryable across restarts
2015-02-19 13:22:04 -08:00
Cory LaNou
9b04e014c8
only log client routes to the http log
2015-02-18 17:11:15 -07:00
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