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
John Shahid
d65bdf46f0
move the log channel to WAL and fix the wal tests
2014-02-21 16:37:01 -05:00
John Shahid
57f2cf264f
close the write log on exit
2014-02-21 16:37:01 -05:00
John Shahid
2ebbb69f06
fix few bugs with the heartbeat logic
2014-02-21 16:37:01 -05:00
Paul Dix
fe12f175f2
Fix destructive queries. Add logic to have non-aggregate queries use a local engine.
2014-02-21 16:31:12 -05:00
Todd Persen
51f03d98e7
Fix #250 . Continuous queries now get auto-incrementing sequence numbers assigned per timestamp.
2014-02-21 16:24:57 -05:00
Paul Dix
370140335f
Wired up recovery from log on startup. Fixed bugs with commits on request numbers
2014-02-21 14:10:13 -05:00
Paul Dix
5d3ef2a867
Add check to ensure there are healthy servers to query and return error if not.
2014-02-21 10:45:38 -05:00
Paul Dix
4d0fd931b1
WIP: Add write buffer to wrap writes to servers or the local datastore and replay from logs if it gets backed up. Errors on test because Shahid didn't update the test config files or set defaults on timeouts? /me shakes fist
2014-02-20 19:50:01 -05:00
John Shahid
f54b29a0cc
handle heartbeat requests
2014-02-20 17:17:17 -05:00
John Shahid
37daaa2abd
don't block forever when writing to remote servers
2014-02-20 16:47:55 -05:00
John Shahid
606fe1966a
query healthy servers only
2014-02-20 16:32:11 -05:00
John Shahid
29f21a10b3
make heartbeat interval and timeout configurable
2014-02-20 16:32:11 -05:00
John Shahid
c51118d77e
implement recover from last committed request
2014-02-20 16:32:11 -05:00
John Shahid
104fdf3312
make the log file rotation thread safe
2014-02-20 16:32:11 -05:00
Paul Dix
1bd8dc8da0
Change wal.Commit to take serverId
2014-02-20 16:09:35 -05:00
Paul Dix
74b151968d
Add method to cluster.WAL interface to recover a server from last commit.
2014-02-20 15:20:00 -05:00