John Shahid
87a284e131
remove redundant test
2014-03-12 14:52:58 -04:00
John Shahid
b4bdb45dd6
move the user manager interface to the api package
2014-03-12 14:52:58 -04:00
John Shahid
f9f00c63f1
set the process to nil after we kill the server
2014-03-12 14:10:30 -04:00
John Shahid
603621ee65
add some comments
2014-03-12 12:30:37 -04:00
John Shahid
b5f68b7c9d
update the changelog
2014-03-11 19:59:15 -04:00
John Shahid
b4babbd5d7
Merge pull request #302 from influxdb/fix-302-negative-time
...
Should be able to set negative times for dates before 1/1/1970
2014-03-11 19:09:04 -04:00
John Shahid
6b178a5b4f
Merge remote-tracking branch 'origin/fix-315-commits-not-in-order' into fix-302-negative-time
...
Conflicts:
src/cluster/shard.go
2014-03-11 19:04:42 -04:00
John Shahid
471039ac9b
fix #321 . Fix a off-by-one bug in the splitting algo
...
The algorithm that splits the data to multiple shards had an off-by-one
bug that caused one point from the next shard to be included in the
current shard.
2014-03-11 18:54:10 -04:00
John Shahid
7e659b92e3
make sure that a shard endtime is exclusive when we search for shards range
...
note: this is hard to test since the shards will only return points in
the given range, so even if we use more shards than we're supposed to
the returned points will not be outside the query range. The only way to
test this is to write a unit test.
2014-03-11 18:54:10 -04:00
John Shahid
3a5adb7e07
fix time stamp rounding when we create a new shard
2014-03-11 18:54:10 -04:00
John Shahid
94f06b76d2
add some logging
2014-03-11 18:54:10 -04:00
John Shahid
89e7eae8c6
fix the sleep since the process takes about 5 seconds to startup
2014-03-11 18:52:37 -04:00
John Shahid
3c664f4f08
fix #302 . Should be able to set negative times
2014-03-11 18:52:30 -04:00
John Shahid
a33bb3733d
fixup! we shouldn't be returning error if the function takes a response channel
2014-03-11 18:52:30 -04:00
Todd Persen
64571fc972
Clean up test spacing.
2014-03-11 18:10:04 -04:00
Todd Persen
c54588dd43
A massive group by test with real data.
2014-03-11 18:10:04 -04:00
Todd Persen
fe10d5b1b0
Output the shard's start and end timestamps on String().
2014-03-11 18:10:04 -04:00
Todd Persen
ef92908983
Add StartMicro and EndMicro methods to the shard.
2014-03-11 18:10:04 -04:00
John Shahid
e698a56552
sleep for a few seconds to give a chance for raft to replay the log
2014-03-11 16:32:52 -04:00
John Shahid
e1b996ea3a
more logging
2014-03-11 16:32:52 -04:00
John Shahid
5db312db88
fix a compilation error
2014-03-11 16:32:52 -04:00
John Shahid
5c56bfab91
change the name of the series in the test
2014-03-11 16:32:52 -04:00
John Shahid
2fe6fdc325
fix a bug, use value comparison instead of pointer comparison
2014-03-11 16:32:52 -04:00
John Shahid
ad99747e39
we shouldn't be returning error if the function takes a response channel
...
This is causing a bunch of deadlocks since those functions gets called
in a goroutine and their return values are never checked. Instead we
should return an endStreamResponse with the error message.
2014-03-11 16:32:52 -04:00
John Shahid
c33f94c14b
remove some logging statements
2014-03-11 16:32:52 -04:00
Todd Persen
359584df3d
Drop the max delete size from 1M to 64K.
2014-03-11 14:31:50 -04:00
John Shahid
6fab943cbe
Revert "panic if we ever receive commits out of order"
...
This reverts commit 20a921eb32
.
Conflicts:
src/wal/global_state.go
2014-03-11 14:26:09 -04:00
John Shahid
bdb6cf43ff
fix a compilation error
2014-03-11 12:39:29 -04:00
John Shahid
4ede6f847e
fix #233 . Put back the code that limited the delete batch size
2014-03-11 12:38:55 -04:00
John Shahid
e0e7144c93
cleanup default start and end time code
2014-03-10 20:32:31 -04:00
John Shahid
710980c30e
fix a typo
2014-03-10 20:32:31 -04:00
Paul Dix
b3c35ff2c6
Fix #315 . Make delete queries not use WAL. They should instead use Raft to replicate.
2014-03-10 18:10:02 -04:00
John Shahid
6dc127bde5
add a test to make sure invalid time group by interval don't crash the server
2014-03-10 17:33:35 -04:00
John Shahid
39cec27b48
update the changelog
2014-03-10 17:30:21 -04:00
John Shahid
e5b1486a3d
Merge pull request #324 from influxdb/fix-316-access-denied-goroutine-starvation
...
Make shard hold access denied responses until all response channels are ...
2014-03-10 17:18:33 -04:00
Paul Dix
2a780d3edb
Fix #316 . Make shard hold access denied responses until all response channels are emptied out.
2014-03-10 16:52:14 -04:00
John Shahid
7ba33479ae
remove some unused constants
2014-03-10 15:45:55 -04:00
John Shahid
d70972cdd0
update the changelog
2014-03-10 14:01:27 -04:00
John Shahid
7b74e5de29
Propagate the error back and assert on the body of the response
2014-03-10 14:00:00 -04:00
John Shahid
be7137a246
Merge branch 'plumb-nqe-fail' of github.com:zorkian/influxdb
...
Conflicts:
src/cluster/shard.go
2014-03-10 12:19:11 -04:00
John Shahid
74218be735
uncomment some of the engine tests that tested invalid queries
2014-03-10 12:16:55 -04:00
John Shahid
db5ba7155d
update the changelog
2014-03-10 12:02:44 -04:00
John Shahid
dd55e2cafc
Merge pull request #301 from influxdb/ref-count-on-open-shards
...
Add ref counting to which leveldb shards are open so they can be closed ...
2014-03-10 12:00:36 -04:00
Paul Dix
afd2d8c9be
Updated ref counting to remove accessed shards from the list of ones to close. Updated the close to close as many as it takes to get below the leve
2014-03-10 11:47:57 -04:00
Paul Dix
e39508f834
Add test for max shards and fix bug in closing out old one
2014-03-10 11:47:57 -04:00
Paul Dix
2bce2837fb
Fix bug where I was deleting the shard reference before pulling out the shard to close it
2014-03-10 11:47:57 -04:00
Paul Dix
0d6e2d66ff
Add ref counting to which leveldb shards are open so they can be closed after references released
2014-03-10 11:47:57 -04:00
Mark Smith
386d3d6aaf
Allow NewQueryEngine to return an error
...
Some errors only bubble up from pretty deep. A "SELECT COUNT(*)" was
ending up as a panic, when instead it should have been returned as a
query error to the user.
This adds plumbing for returning an error from NewQueryEngine.
2014-03-09 16:41:02 -07:00
John Shahid
0e98711613
accept any request number initially
2014-03-07 18:32:12 -05:00
John Shahid
20a921eb32
panic if we ever receive commits out of order
2014-03-07 18:29:17 -05:00