Commit Graph

99 Commits (403881854ca4ff21c638ab0b6986ea2f60b5b95d)

Author SHA1 Message Date
David Norton 403881854c Fix derivative when there is a group by time() and fill
Fix #334
2014-10-21 17:19:04 -04:00
Todd Persen 9f89aaeb26 Aggregating by time should respect the natural boundaries of the argument.
Fix #387
2014-10-20 15:24:39 -04:00
John Shahid 4c655ddc3d fixup! Querying for data outside of existing shards should return an empty response. 2014-10-15 12:27:15 -04:00
Todd Persen f16f4b6639 Querying for data outside of existing shards should return an empty response.
Fix #1004. Close #1023
2014-10-14 12:59:47 -04:00
John Shahid 74dad10845 Revert "Run the data test suite using rocksdb since it's the default"
This reverts commit ec6e06c224.

Currently travis doesn't support g++ 4.7 which is required to build
rocksdb. This is causing the test suite to fail
2014-10-14 12:55:20 -04:00
Todd Persen e27cba06e5 Fix typo in test name. 2014-10-11 21:34:59 -04:00
John Shahid ec6e06c224 Run the data test suite using rocksdb since it's the default 2014-10-10 16:11:17 -04:00
John Shahid da4f56fbbb Don't use the same server id more than once
Fix #972
2014-10-07 18:32:14 -04:00
John Shahid 0ca44c906d Merge branch '0.8'
Conflicts:
	api/http/api.go
	cluster/cluster_configuration.go
	cluster/cluster_configuration_test.go
	coordinator/coordinator.go
	engine/aggregator_operators.go
	engine/common_merge_engine.go
	integration/data_test.go
	parser/parser.go
2014-09-24 18:55:19 -04:00
John Shahid cdff908655 Remove an unused test 2014-09-24 18:06:03 -04:00
John Shahid e131fbc777 Parse big int in query's where clause properly
Fix #964
2014-09-24 18:06:03 -04:00
David Norton e796eea997 Add a test for #939 2014-09-24 18:06:03 -04:00
David Norton a649f6b623 Refactor the integration tests
Conflicts:
	integration/data_test.go
2014-09-24 18:06:03 -04:00
David Norton 26a71ad9a6 Refactor data_test.go to use Test* function names
Refactor integration/data_test.go to use Test* names for the tests
and remove the TestAll test case, which uses reflection to iterate
over all test functions.  Also, change the two SingleServerSuite
test functions in this file to DataTestSuite functions.

The DataTestSuite now conforms to standard Go / gocheck test
conventions.  Individual tests can be run.  Groups of tests can be
run by specifying patterns.  E.g.,

make integraton_test only=DataTestSuite

...will run all tests in data_test.go.  Or,

make integration_test only=DataTestSuite.Test.*Histogram

...will run all histogram related tests.

See the gocheck documentation for further details.

Conflicts:
	integration/data_test.go
2014-09-24 18:06:03 -04:00
John Shahid b652c1d377 Fix the test as a result of 25cc979
Conflicts:
	integration/multiple_servers_test.go
2014-09-24 18:05:50 -04:00
David Norton 2482f69d31 Fix #780 so that fill works with all aggregates
Conflicts:
	engine/aggregator.go
	integration/data_test.go
2014-09-24 17:49:43 -04:00
John Shahid e816973bf6 Don't panic on invalid boolean operators
Close #714
2014-09-24 17:40:29 -04:00
Paul Dix 7f8c4778f6 Move cluster config from raft to API.
Fixes #853. Close #854. Previously, there was an unprotected endpoint in
raft to return the cluster config that would include user hashes. This
endpoint is useful for debugging purposes so I restructured it and moved
it to the API. It ensures the requesting user is a cluster admin.

Cluster config will now return all of the cluster state including
servers, CQs, shards, etc.

Conflicts:
	integration/single_server_test.go
2014-09-24 17:40:29 -04:00
John Shahid b7a145e717 Fix case insensitive regex matching
Close #794

Conflicts:
	integration/data_test.go
2014-09-24 17:40:29 -04:00
John Shahid 42bef2508c Return an error if an invalid column is used to filter after a join
Fix #652
2014-09-24 17:40:29 -04:00
John Shahid de68a3877b Parse big int in query's where clause properly
Fix #964
2014-09-23 11:46:14 -04:00
David Norton 3497cffd21 Add a test for #939 2014-09-22 16:50:58 -04:00
David Norton a7fbbe08e8 Refactor the integration tests 2014-09-22 16:50:58 -04:00
John Shahid 6df047f855 Fix the test as a result of 25cc979 2014-09-18 14:44:09 -04:00
John Shahid 4b92d96cb4 Merge remote-tracking branch 'refs/remotes/origin/pr/920'
Conflicts:
	integration/data_test.go
2014-09-12 13:14:33 -04:00
David Norton e310d10b5f Refactor data_test.go to use Test* function names
Refactor integration/data_test.go to use Test* names for the tests
and remove the TestAll test case, which uses reflection to iterate
over all test functions.  Also, change the two SingleServerSuite
test functions in this file to DataTestSuite functions.

The DataTestSuite now conforms to standard Go / gocheck test
conventions.  Individual tests can be run.  Groups of tests can be
run by specifying patterns.  E.g.,

make integraton_test only=DataTestSuite

...will run all tests in data_test.go.  Or,

make integration_test only=DataTestSuite.Test.*Histogram

...will run all histogram related tests.

See the gocheck documentation for further details.
2014-09-12 00:13:41 -04:00
David Norton 08fb0c5997 Fix #780 so that fill works with all aggregates 2014-09-12 00:12:40 -04:00
John Shahid 886885cfd7 wait for the continuous queries to run 2014-09-11 11:45:00 -04:00
John Shahid 5004cbbd57 split on the name of the series 2014-09-11 11:28:18 -04:00
Paul Dix f0c0abdb10 Add option to include space to series mappings in list series query.
Fixes #867. Close #927. Updated lexer and parser to work, added code to
coordinator to insert spaces if requested. Now the user can request the
shard spaces. `list series include spaces`
2014-09-11 11:28:18 -04:00
Dieter Plaetinck 6bba3ab988 actually use prefix in CreateSeries integration helper 2014-09-10 18:39:16 -04:00
John Shahid 5669346054 cleanup the storage keys and point iteration in the shard's code 2014-09-10 14:08:07 -04:00
David Norton 3556fb6b51 Refactor TestAll test loop in data_test.go
Combine the three separate loops for DB creation, running setup
functions, and running tests into one loop.  Add a DB delete at the
end of each test for cleanup.

This groups output for each test together in one place.  It also has
the advantage of not running all DB creations and setup functions until
they're needed.
2014-09-10 06:24:11 -04:00
Nathaniel Cook c8c40097c6 Making histogram alignment easier to control
Fix #669
2014-09-08 15:37:20 -04:00
John Shahid b9571f4ff3 Fix a merge conflict introduced earlier 2014-09-08 14:40:50 -04:00
John Shahid 39583a0f67 Fix minus operator without surrounding spaces
Close #768

This patch isn't backward compatible since older version allowed the use
of table names with '-' without enclosing them. With this change, '-'
characters are disallowed completely unless they were enclosed in double
quotes. The parser can be made more complicated and be more context
aware to distinguish the use of the '-' character depending on the query
being parser, but I think the approach in this patch is simpler and less
confusing from the user's point of view.
2014-09-08 14:37:34 -04:00
John Shahid 71ccbdc99c Don't panic on invalid boolean operators
Close #714
2014-09-08 14:35:31 -04:00
Paul Dix 39091fc8fd Move cluster config from raft to API.
Fixes #853. Close #854. Previously, there was an unprotected endpoint in
raft to return the cluster config that would include user hashes. This
endpoint is useful for debugging purposes so I restructured it and moved
it to the API. It ensures the requesting user is a cluster admin.

Cluster config will now return all of the cluster state including
servers, CQs, shards, etc.
2014-09-08 14:31:56 -04:00
Paul Dix 6ddfba6e32 Add ability to update existing shard spaces.
This will help users recover from #886. It's dangerous functionality because it only changes the metadata. Will document and tell people to use with caution.
2014-09-08 14:18:32 -04:00
Paul Dix f20f8e8f08 Update shard space to not set defaults
Fixes #886. Shard spaces would not have compiled regexes when the server is restarted and the cluster config is pulled from a raft snapshot. A call to MatchSeries would then reset the regex for the shard space. BAAAAAD.
2014-09-08 14:16:27 -04:00
John Shahid e1bb3be735 Fix case insensitive regex matching
Close #794
2014-09-08 14:04:12 -04:00
runner.mei b1b9971754 Make InfluxDB win32 friendly
Close #905
2014-09-08 13:03:50 -04:00
Paul Dix a62e8c8b4c Add ability to update existing shard spaces.
This will help users recover from #886. It's dangerous functionality because it only changes the metadata. Will document and tell people to use with caution.
2014-09-05 16:24:00 -04:00
Paul Dix 64eedb7db0 Update shard space to not set defaults
Fixes #886. Shard spaces would not have compiled regexes when the server is restarted and the cluster config is pulled from a raft snapshot. A call to MatchSeries would then reset the regex for the shard space. BAAAAAD.
2014-09-05 14:54:56 -04:00
John Shahid dfd2590ed0 Add a benchmark for `list series` 2014-09-04 15:16:21 -04:00
John Shahid 3c9b39ce01 Return an error if an invalid column is used to filter after a join
Fix #652
2014-09-04 12:35:07 -04:00
John Shahid d631acd525 Merge pull request #902 from malthe/add-syslog-handler
Add support for "syslog" logging
2014-09-04 12:09:53 -04:00
Malthe Borch 8b369aed2b Add support for "syslog" logging 2014-09-03 21:41:56 +02:00
John Shahid 289d9164e8 Fix the some integration tests 2014-09-03 15:10:43 -04:00
John Shahid ecf30b062a Get rid of the explain query tests 2014-09-03 15:10:43 -04:00