Commit Graph

39 Commits (b1e6184ea14b9a68493bcbecbdc78d8ac44a9fd1)

Author SHA1 Message Date
Paul Dix 72274002fc Update database configuration to validate shard spaces before creating anything.
Fixes #860. Update the validate method on shard spaces to optionally check if the database exists.
2014-08-21 16:59:27 -04:00
John Shahid d9f14cbb72 Merge pull request #832 from influxdb/831-create-shard-space
Make create shard space endpoint database specific.
2014-08-15 14:10:32 -04:00
Paul Dix 69c47a57e6 Series should be returned in sorted order
Fix #830. Tests and implementation to ensure that list series with or without a regex return in sorted order. Queries that select from a regex will return series in sorted order.
2014-08-15 14:06:33 -04:00
Paul Dix 632dba81dc Make create shard space endpoint database specific.
Fixes #831. Shard spaces now belong to a database so the endpoint should reflect that.
2014-08-15 13:23:21 -04:00
Paul Dix 5403baffd3 Add data migration 0.7 -> 0.8
Close #809. Fix #746
2014-08-15 13:20:49 -04:00
John Shahid 4862e8538f Increase timeout in the integration test client 2014-08-13 15:49:02 -04:00
John Shahid bc8b068106 Remove some printfs in the test 2014-08-13 15:23:27 -04:00
John Shahid 1ceddfb7c0 Remove the assertion since db creation might fail 2014-08-13 13:24:39 -04:00
John Shahid db9e0d7114 When remote executing a query send the time conditions as well
Close #820
2014-08-13 12:59:21 -04:00
John Shahid 31c0e63d5d Fix TestShardExpiration
The shard could expire even before we get chance to see it in the result
of GetShards()
2014-08-12 15:12:11 -04:00
John Shahid 7f74a28951 Increase the timeout in the test 2014-08-12 14:06:14 -04:00
John Shahid 49122da251 List series should support filtering by a regex 2014-08-11 16:59:11 -04:00
John Shahid 63cc69f1df Add a test for shard spaces regex 2014-08-07 16:06:49 -04:00
John Shahid d3e27e8ce5 Fix a typo 2014-08-07 15:22:05 -04:00
John Shahid adfbdb0e4e Add a test for the shard expiration 2014-08-07 13:09:53 -04:00
John Shahid 680e6d96bc Always fill empty groups if the start time is specified.
Prior to this change, empty group filling worked between t1 and t2,
where t1 is the timestamp of the earliest point and t2 is the timestamp
of the last point. This patch change the behavior of the fill() to use
the query start and end time as t1 and t2, respectively. This only
happens if the user specified the start time of the query. Otherwise,
there's a potential of filling millions of millions of groups, since the
default start time of the query is really really early.
2014-08-06 16:03:29 -04:00
Paul Dix 97508402ee Move load database config to API
Fix #791 - Removed load database config options from the daemon. Created an API endpoint and updated test.
Fix #745 - Added definition of continuous queries to load database config.
Close #792
2014-08-01 16:09:00 -04:00
John Shahid 72fccdab6f Don't emit non existent fields when joining
Points in the joined series should have either the columns of the left
side or the columns of the right side of the join. Before this patch
join relied on merge to order the points of the two series and then join
consecutive points together. The merge emitted the union of the columns
of the two series, which caused the joined series to always have the
union of two series. This combined with the fact that the point's values
weren't adjusted to have nulls for the missing columns caused panic when
any operation is done on the points, e.g. addition.

Fix #740, Fix #781
2014-07-30 14:06:47 -04:00
John Shahid 3ebf536737 wait for servers to sync 2014-07-29 14:29:19 -04:00
John Shahid 3284662b35 Fix an integration test that has changed in 91078c0
Non admin database users shouldn't be able to drop series. See #736 for
more details
2014-07-23 12:00:18 -04:00
John Shahid 673a12257b Dry the fill() tests 2014-07-22 15:26:17 -04:00
Philip O'Toole c1e285383b Allow 'null' to be supplied as fill value
Add to unit tests to test fill, including new "null" support.

Fix #713.
2014-07-22 15:07:11 -04:00
John Shahid 91078c0d21 Non admin database users shouldn't be able to drop series
Fix #736
2014-07-22 13:33:51 -04:00
John Shahid c02cff22c5 Fix some bugs with retention policy of shard spaces
This commit fixes two bugs:

Don't try to parse "inf" retention policy when creating a shard
space. This caused a panic to be thrown when a shard space is created
with infinity. Fix #774

`getExpiredShards()` used shard duration to determine which shards are
expired but should be using shard retention duration instead. Close #769
2014-07-22 10:55:39 -04:00
John Shahid afe3f9607b Add the sentinel values for all db on creation
Fix #772
2014-07-21 13:36:08 -04:00
John Shahid 588e053e22 Merge pull request #766 from shugo/database_conf_fix
fix typo in integration/database_conf.json
2014-07-18 11:38:17 -04:00
John Shahid 5d4e2bbfc3 Fix the name of the config files in the integration test suite
Close #764
2014-07-18 11:37:11 -04:00
Shugo Maeda 87a68beb59 fix typo in integration/database_conf.json. 2014-07-18 11:09:19 +09:00
John Shahid b4d524a6b0 Fix the test to use client.ShardSpace 2014-07-17 14:57:37 -04:00
John Shahid 1e9e2152ed Do the check in one go 2014-07-17 13:46:47 -04:00
Shugo Maeda d74e71ca83 When a server is removed, its ID should be removed from shards. 2014-07-17 18:28:06 +09:00
Shugo Maeda 8646cb5a42 The attributes of a shard space should not be reverted to the defalut values when writing data into the shard space. 2014-07-17 14:13:15 +09:00
John Shahid ba79c9bdae Fix the integration test suite to use the cluster type structures 2014-07-15 10:16:15 -04:00
Paul Dix 1d27706265 Update datbase json to be idomatic 2014-07-14 19:40:14 -04:00
John Shahid 62857570a9 Use influxdb/influxdb/client instead of influxdb/influxdb-go 2014-07-14 19:20:30 -04:00
Paul Dix f336acc965 Update database conf to have proper order 2014-07-14 19:11:17 -04:00
John Shahid c84f24930f fix an integration test 2014-07-14 18:54:43 -04:00
John Shahid 39ea797dcd Fix #690. Use idiomatic go project structure
Conflicts:
	cluster/cluster_configuration.go
	cluster/shard.go
	coordinator/command.go
	coordinator/coordinator_test.go
	coordinator/raft_server.go
	daemon/influxd.go
	datastore/shard.go
	integration/single_server_test.go
	parser/query_spec.go
	server/server.go
2014-07-14 18:47:37 -04:00
John Shahid e5276112c1 Restructure the codebase to be more idiomatic 2014-06-30 11:31:08 -04:00