Commit Graph

1059 Commits (056c8c37514b08f0a7eeb73285f2328e9437d55d)

Author SHA1 Message Date
Todd Persen 0c41aeb439 Fix #265. Add support for series name interpolation in continuous queries.
Conflicts:
	src/parser/parser_test.go
2014-02-25 17:31:49 -05:00
Paul Dix 86e21f74a6 Merge pull request #269 from influxdb/create-cluster-interfaces-and-refactor
Create cluster interfaces and refactor
2014-02-25 17:27:00 -05:00
John Shahid 9eab5884de sleep after writing data in the integration suite 2014-02-25 17:26:09 -05:00
John Shahid eb8d28c846 Merge branch 'master' into create-cluster-interfaces-and-refactor
Conflicts:
	src/api/http/api.go
	src/coordinator/coordinator.go
	src/coordinator/raft_server.go
2014-02-25 17:26:05 -05:00
John Shahid d0839e2b17 fixes #258, fixes #250, fixes #216, fixes #166, fixes #165, fixes #164, fixes #132, fixes #103, fixes #65
Merge branch 'master' into create-cluster-interfaces-and-refactor

Conflicts:
	src/api/http/api.go
	src/api/http/api_test.go
	src/coordinator/cluster_configuration.go
2014-02-25 16:42:37 -05:00
John Shahid 9ff7ce8994 0 write timeout should be treated as no timeout 2014-02-25 16:12:57 -05:00
John Shahid a2865bd884 fix the api test suite 2014-02-25 16:11:34 -05:00
John Shahid 50491fc0d9 fix the coordinator test suite 2014-02-25 16:08:53 -05:00
John Shahid a8f233081a fix the coniguration test suite 2014-02-25 16:06:44 -05:00
John Shahid 86fd769d52 remove a test that's not relevant anymore 2014-02-25 16:05:44 -05:00
John Shahid dbac16b9c0 sleep little longer 2014-02-25 16:05:44 -05:00
John Shahid 00b85b1f18 expect no series instead of empty series 2014-02-25 16:05:44 -05:00
Paul Dix 893f4d7b8b Comment out old datastore tests 2014-02-25 15:50:01 -05:00
Paul Dix 90335f790c Make protobuf client reconnect on error. 2014-02-25 15:14:56 -05:00
John Shahid da2b3e5946 remove the if statement to actually yield empty series 2014-02-25 15:01:46 -05:00
John Shahid 8e1261bc95 series with no points don't return anything 2014-02-25 14:57:14 -05:00
John Shahid 3679e41187 sleep longer to make sure data is deleted 2014-02-25 14:57:13 -05:00
Paul Dix c3fb89de3a Fix test that does a big group by query against multiple shards so that it doesn't break every other day. 2014-02-25 14:49:40 -05:00
Paul Dix 036ea3c00a Made protobuf client always send end stream responses even if dropping other data on the floor. 2014-02-25 14:48:30 -05:00
Paul Dix a76532de28 Fix race condition where tests would freeze up randomly.
Was caused by the response channels in coordinator filling up and blocking the response reader for a given cluster server (protobuf client). Added buffer size as a configuration option.
2014-02-25 13:18:05 -05:00
Paul Dix 099694e42a Make recover from WAL look for raft server names to set the local id. 2014-02-25 13:10:49 -05:00
Paul Dix ae9c545ff2 Add additional error forwarding to request handler that will close the response channel out. 2014-02-25 07:39:23 -05:00
Paul Dix 417582d70b Removed retry logic and extra cruft from protobuf client for something simpler.
Retries are handled elsewhere either by the write buffer or the client making the request. Connection status and other weird reconnect things where simplified to use a single lock.
2014-02-25 07:36:40 -05:00
Paul Dix 679403b464 Fixed bug where raft snapshots were storing the local server id, which isn't shared state. Updated initialization and recovery to set the local server id based on if a given server's Raft name matches the raft name set locally. 2014-02-25 07:28:53 -05:00
Paul Dix bcb2f25e6d Update engine to not yield empty series. Make sure that errors are sent in the response. 2014-02-24 15:29:53 -05:00
Paul Dix aef2f1a72e Add small delay after POST and DELETE in tests to make sure write buffers have cleared out. 2014-02-24 15:29:53 -05:00
Paul Dix 18abe42987 Fix issue that was causing cross shard queries to hang. Queries that don't aggregate locally weren't closing out the seriesWriter. 2014-02-24 15:29:53 -05:00
Todd Persen 58db5c63f0 Make sure we drop the continuous query at the end of the test. 2014-02-24 15:02:25 -05:00
Todd Persen b9a337a1f9 Remove test output. 2014-02-24 15:01:53 -05:00
Paul Dix 6fa16b472d Fix bug where continuous queries were causing the inflight data to get changed. Result of buffering writes now. 2014-02-24 14:37:27 -05:00
Paul Dix df74078f0e Make sure the continuous query test deletes the old queries even if it fails. Paul says "use defer, Todd, use defer" 2014-02-24 14:36:32 -05:00
Paul Dix 11ee648f81 Make list series engine not yield empty response, which was breaking the test when shards didn't have any series. 2014-02-24 13:56:19 -05:00
Paul Dix 2b6dd3778f Lock the connection when setting it on the protobuf client. 2014-02-24 13:55:43 -05:00
Paul Dix e8d2352c9c Handle access denied responses to close out stream. Close the seriesWriter when a list series query is done. 2014-02-24 13:55:21 -05:00
Paul Dix 1853812da2 Make an error on request to another server send the message down the response channel (non-blocking) so that go routines monitoring the channel and not the method return can stop. 2014-02-24 13:52:46 -05:00
Paul Dix faa33b0594 Ensure recovery from WAL connects servers. 2014-02-24 13:50:46 -05:00
Paul Dix 3917cc5c45 Remove old data replication test since it's no longer valid. 2014-02-24 10:06:47 -05:00
Paul Dix e9560b082e Fix for server failure scenario test. Make reconnects non-blocking. Update heartbeating to timeout when waiting for a response. 2014-02-23 17:52:35 -05:00
Paul Dix 4e2c9b8c19 Comment out the test failure with deletes. For now deletes are not highly available and require every server in the cluster to be running. 2014-02-23 15:15:20 -05:00
Paul Dix 6232c4f4f9 Increase timeouts and heartbeat intervals on test and sample config files. 2014-02-23 15:14:01 -05:00
Paul Dix c0c84b48f6 Make heartbeat interval and backoff public so they get serialized. Fixes 100% CPU issue that was being caused by heartbeats getting sent out without sleep periods. 2014-02-23 15:12:52 -05:00
Paul Dix 0892d341b3 Make protobuf client and request handler write protobuf length and data in one call to write to avoid race conditions 2014-02-23 11:46:06 -05:00
John Shahid 1154adc8a5 fix the tests to expect no series instead of series with no points 2014-02-22 16:15:33 -05:00
John Shahid dd3f024685 fix a bug in single point queries and better error handling 2014-02-22 15:55:13 -05:00
John Shahid b2c66d384d update the release script to pull and clean the repo before building 2014-02-21 17:46:15 -05:00
John Shahid b5321d4a42 remove println 2014-02-21 17:46:15 -05:00
Paul Dix cdfff9d621 Add code to precreate shards in the integration test 2014-02-21 17:26:35 -05:00
John Shahid 633459fcb3 fix compilation errors in the tests 2014-02-21 16:43:20 -05:00
John Shahid 9aa119485d add a HasAggregates function to SelectQuery 2014-02-21 16:37:01 -05:00
John Shahid 3ba46739d6 fix a test 2014-02-21 16:37:01 -05:00