Commit Graph

2895 Commits (24e0a398cc5474e61854c5876110947d469a675a)

Author SHA1 Message Date
John Shahid 7d77c2593f add some docs 2014-11-04 12:55:23 -05:00
John Shahid d1f4f4b8e1 add #1092 to the changelog 2014-11-04 10:34:21 -05:00
Ben Johnson 922931500f Intermediate commit. 2014-11-03 23:25:33 -05:00
John Shahid 1f5f5cb789 Don't write points if they are too old
Background of the bug: Prior to this patch we actually tried writing
points that were older than the retention period of the shard. This
caused race condition when it came to writing points to a shard that's
being dropped, which will happen frequently if the user is loading old
data (by accident). This is demonstrated in the test in this commit.This
bug was previously addressed in #985. It turns the fix for #985 wasn't
enough. A user reported in #1078 that some shards are left behind and
not deleted.

It turns out that while the shard is being dropped more write
requests could come in and end up on line `cluster/shard.go:195` which
will cause the datastore to create a shard on disk that isn't tracked
anywhere in the metadata. This shard will live forever and never get
deleted. This fix address this issue by not writing old points in, but
there are still some edge cases with the current implementation, at
least not as bad as current master.

Close #1078
2014-11-03 17:28:47 -05:00
John Shahid 63b11691eb Merge remote-tracking branch 'refs/remotes/origin/pr/973' 2014-11-03 14:06:08 -05:00
Todd Persen e33b072742 Update docs for OS X. 2014-11-02 21:15:09 -05:00
Ben Johnson 31f981e804 Refactoring common, cluster, and protobuf. 2014-10-31 19:31:19 -06:00
John Shahid edd22ce3b8 Add some docs 2014-10-31 15:17:45 -04:00
John Shahid 87ef0d13e9 don't enable raft debug log by default 2014-10-31 14:50:04 -04:00
John Shahid 3a857296f4 Support joining multiple series using regex or list 2014-10-31 14:49:48 -04:00
John Shahid c0ad5d5104 Rename some constants
(from_clause.go,query.yacc,query_types.h): FROM_INNER_JOIN -> FROM_JOIN
2014-10-31 14:01:17 -04:00
David Norton 4b59ddd113 Don't try to take 2 snapshots at a time
Fix #943. Close #1081
2014-10-31 14:00:56 -04:00
John Shahid de95dd64e5 Update the changelog for #1085 2014-10-31 13:59:55 -04:00
John Shahid bdcaef1ded Set the node's connection string when creating a new raft server 2014-10-31 13:54:20 -04:00
Ben Johnson cb6c9ddc3f Add Database.CreateShardSpace() and Database.DeleteShardSpace(). 2014-10-30 17:30:34 -06:00
John Shahid f9b3a27345 Make the raft logging configurable 2014-10-30 16:03:13 -04:00
John Shahid 60c98e519e Remove some nonsense 2014-10-30 14:16:46 -04:00
John Shahid 3fa82ad29e Use FINE instead of TRACE when fine logging
It turns out TRACE is a higher logging level than DEBUG which doesn't
make much sense and is confusing. We can use FINE to achieve the same
thing and it's descriptive and less confusing
2014-10-30 14:16:46 -04:00
Ben Johnson bf36b2a797 Shard space JSON marshaling. 2014-10-29 18:21:17 -06:00
David Norton a428042899 Fix the timestamps set by the collectd plugin
Timestamps should be in microseconds instead of milliseconds.

Fix #1075. Close #1076
2014-10-29 18:30:17 -04:00
John Shahid 1b50c7d310 Revert "Use rocksdb in the data test suite" (info below)
This reverts commit 49c49d818c.

In order to use rocksdb we need g++ >= 4.7 (which has support for
C++0x11). It's too expensive to build g++ every time. Upgrading the
ubuntu distro used by travis seems to be coming soon, I'll shelf this
for now until travis-ci/travis-ci#2046 is resolved.
2014-10-29 16:52:00 -04:00
David Norton 9786d31db3 Add func to get str desc of Processor chain
Close #1068
2014-10-29 16:39:04 -04:00
David Norton 309934dec5 Fill even when no points exists in the given time range
Fix #996. Close #1067
2014-10-29 16:37:17 -04:00
John Shahid 899f2ba802 Add some trace logging 2014-10-29 16:31:32 -04:00
John Shahid caba1b2d7a add trace to the available logging levels 2014-10-29 16:31:32 -04:00
Ben Johnson 09d09a9b8f Add cluster admin deletion and listing. 2014-10-28 19:34:12 -06:00
Ben Johnson 3ec34340a0 Add cluster admin deletion. 2014-10-28 18:43:03 -06:00
Ben Johnson fd6f17f079 Add cluster admin creation. 2014-10-28 17:54:49 -06:00
Ben Johnson ec0835c256 Refactor user commands. 2014-10-28 20:30:21 -06:00
John Shahid 49c49d818c Use rocksdb in the data test suite 2014-10-28 16:19:45 -04:00
John Shahid 07ec9a82bb Remove unused makefile vars 2014-10-28 16:19:45 -04:00
Ben Johnson 3a0e1b817c Add database listing. 2014-10-27 18:16:03 -06:00
Ben Johnson 2722e89299 Add user listing. 2014-10-27 17:31:45 -06:00
John Shahid 9485e99796 preparing for a release 2014-10-27 18:10:41 -04:00
John Shahid 8900581e96 Use go tools to discover the packages 2014-10-27 18:08:45 -04:00
John Shahid b70d54e500 fix a compilation error 2014-10-27 18:00:02 -04:00
John Shahid 26821c65a8 Get rid of the inspect raft tool since it uses internal api and doesn't compile 2014-10-27 17:59:42 -04:00
John Shahid 9c31291ca0 Move the influxdb test to an examples directory
These tests weren't designed to be run automatically via the ci. They
were a proof of concept and to demonstrate the api in action
2014-10-27 17:57:22 -04:00
Kimo R b142ebe091 gollectd's TypeDB method has been renamed
Close #1060
2014-10-27 17:40:38 -04:00
Todd Persen 46ded4f5c2 Fix continuous query functionality in the api
The endpoints that were used previously are now deprecated and
removed. This commit uses the query language instead of the endpoint to
provide the same set of features.

fix #1058.
2014-10-27 17:25:17 -04:00
David Norton 2808814863 Return an Inf. or NaN instead of panicing when a dividing by zero
Fix #1022. Close #1050
2014-10-27 17:08:53 -04:00
Philip O'Toole ffd9a4bc7d Allow graphite and collectd bind address to be set
Fix #1055. Close #1056
2014-10-27 17:05:14 -04:00
David Norton e27d3bbb21 Fix the timestamps of the points written by the collectd plugin
Try to use high resolution timestamp but if it's 0, fall back to
unix timestamp.

Collectd timestamps are uint64 and influxdb uses int64.  Change
to use type conversion instead of converting to string and then
parsing the string back to int64.  Also, test if the collectd
timestamp is too large for influxdb.  If it is, wrap around and
log an error message the first time but don't fill the log with
messages for every entry thereafter.

Move packet parsing code into its own function so it can be unit
tested.

Add unit tests to for packets using high resolution and unix
timestamps.

Fix #1051. Close #1054
2014-10-27 17:05:14 -04:00
Todd Persen 6eb6e6a993 Return nil when we're supposed to stop processing points.
Fix #821
2014-10-27 17:02:58 -04:00
Ben Johnson f683eabb7a Add change password. 2014-10-25 13:30:41 -06:00
Ben Johnson e47a19ada6 Add user deletion. 2014-10-25 11:54:23 -06:00
Ben Johnson f3ab736d83 Add user creation failure testing. 2014-10-25 09:17:08 -06:00
Ben Johnson 0b1dc6f6e3 Add CreateUser flow. 2014-10-24 22:38:01 -06:00
Ben Johnson 4b276bada3 Refactor messaging error handling. 2014-10-24 17:45:02 -06:00
John Shahid 225e9ad0f9 Add some docs to the Makefile 2014-10-24 18:37:11 -04:00