Commit Graph

201 Commits (a52005fb0ab6b5b6ab3a81f931a259ca5ec86608)

Author SHA1 Message Date
Ben Johnson 4dbd1541f7 Add index tracking to metastore.
This commit adds tracking of the index to the metastore so that data
nodes will ignore replayed indexes when they are restarted. This
does not include index persistence for the shards.
2015-02-21 13:46:16 -07:00
Philip O'Toole ccc15b8abb Skip CQ unit test, maybe due to batch writes
The Query Engine is also being refactored, so this may affect this code.
2015-02-20 20:45:48 -08:00
Paul Dix 36d16a3172 Update broker to have URLs for replicas
* Update the infludb broker to not need a server so that it'll work on non-data node servers
* Update messaging broker to keep track of connect urls for replicas
2015-02-17 21:02:53 -05:00
Paul Dix 47cddda6e2 Fix up stubbed out CQ tests 2015-02-17 21:02:52 -05:00
Paul Dix 8d9bcdbc97 Finish wiring up basic version of CQs 2015-02-17 21:02:52 -05:00
Paul Dix fec6764b09 WIP: wire up continuous queries
* Fix run to work with CQ broker
* Fix CQ handler
* Fix SetTimeRange to use RFC3339Nano
* Fix the time range tests
* Fix the parser to parse for RFC3339Nano literals in addition to the other format
* Add logic for running CQs
* Remove duplicate WriteBufferSize default setting from config
2015-02-17 21:02:18 -05:00
Paul Dix b0d4b6da55 WIP: fix cq query times 2015-02-17 21:01:21 -05:00
Paul Dix f2d132b361 Implement continuous queries with group by intervals
* Update defaults on Broker for when to trigger CQ runs
* Add config settings for how often to calculate and recalculate CQ results
* Update Server to have CQ settings
* Update AST to fold removed time literals when setting time range
* Add periodic CQ running functionality to server
2015-02-17 21:00:24 -05:00
Paul Dix 5f14d5faf5 WIP: start implementation of continuous queries
* Update SelectStatement to have GroupByInterval
* Update parser to verify that CQs have GroupByInterval if Aggregated
* Implement CreateContinousQuery on Server
* Add ContinuousQueries to database
2015-02-17 21:00:24 -05:00
Philip O'Toole 0c8ded4197 Unit test retention policy enforcement 2015-02-11 09:54:07 -08:00
Philip O'Toole 8cb06c5b8e Refactor retention policy enforcement for testing 2015-02-11 09:54:07 -08:00
Philip O'Toole 8dae2c2268 Unit-test deletion of shard groups 2015-02-11 09:54:07 -08:00
Philip O'Toole 20bbbe759b Fix minor typo in unit test comment 2015-02-11 09:54:07 -08:00
Philip O'Toole 50ef1672cb Add stubbed enable of retention policy enforcement 2015-02-11 09:54:07 -08:00
Philip O'Toole f87d97467c Restart server tests after shard group creation 2015-02-10 20:32:36 -08:00
Cory LaNou 6b269ef09e adding comment on test for predictability, enhancing test 2015-02-10 10:00:09 -07:00
Cory LaNou 0811af6211 sorting was not required, it was a testing setup issue 2015-02-10 09:49:22 -07:00
Cory LaNou adcf038323 Merge pull request #1550 from influxdb/cli-not-reporting-errors
CLI needs to echo out errors from client library.
2015-02-10 09:28:27 -07:00
Cory LaNou 1f56514c29 Merge pull request #1540 from influxdb/select-wildcard
Select wildcard functionality implemented
2015-02-10 09:07:31 -07:00
Cory LaNou 7b28df0d49 someone needs to add a precommit hook... 2015-02-10 08:54:19 -07:00
Todd Persen 6b70408864 Merge pull request #1351 from influxdb/go-external
Change "code.google.com/p/go.*" to "golang.org/x/*"
2015-02-09 20:23:26 -08:00
Cory LaNou c866f57473 rebasing can suck sometimes 2015-02-09 20:04:19 -07:00
Cory LaNou df7e8e3add removing comments, test back to original state 2015-02-09 20:01:14 -07:00
Cory LaNou c83de8695a simplify test 2015-02-09 20:01:14 -07:00
Cory LaNou 86969a1fe8 add a test that better covers select * 2015-02-09 20:01:14 -07:00
Cory LaNou 8a1bb5922c added wildcard query functionality. fixes #1432 2015-02-09 19:59:13 -07:00
Paul Dix 3c26a3e91b Fix panic if a point doesn't have a value for a field.
Fixes #1530. Ensures that the series iterator doesn't yield points that don't have a value for the field that is being aggregated.
2015-02-09 03:39:42 -05:00
Paul Dix 712297cdb5 Merge pull request #1506 from influxdb/fix-select-where-time
Fix queries that have only time in their where clause
2015-02-08 02:05:03 -05:00
Philip O'Toole 6c60c6397f Add simple non-aggregate test
This makes it clearer what is going on.
2015-02-06 21:55:28 -08:00
Philip O'Toole 095d210d59 Fix time range condition in unit test 2015-02-06 20:36:53 -08:00
Cory LaNou 973bb78808 add tests for logging unauthorized access request 2015-02-06 10:03:34 -07:00
Cory LaNou 4225cd7407 move Authorize from func to method for Server 2015-02-06 09:16:45 -07:00
Cory LaNou 1604d7f604 refactor how we default authentication enabled 2015-02-05 15:54:32 -07:00
Cory LaNou f4dfb87acc first pass at hardening authorize 2015-02-05 14:39:40 -07:00
David Norton d0dc677292 fix #1516: ALTER RETENTION POLICY 2015-02-05 12:54:06 -05:00
Paul Dix bc813cc9da Fix queries with where clause only having time.
* Add OnlyTimeDimensions to SelectStatement
* Update the database to handle queries that only have a time statement
* Fix server test to insert a time literal that can be parsed.
2015-02-05 01:29:19 -05:00
Paul Dix c4a4f021ca Update server test case to show failing on where time clause 2015-02-04 06:51:01 -05:00
Cory LaNou 55cc5cfa09 sending all time back as RFC3339Nano instead of UnixNano (int64) 2015-02-03 16:55:33 -07:00
Cory LaNou 37f62dbe71 We now store in nanoseconds and send back nanosecond values 2015-02-02 14:08:13 -07:00
David Norton 19992f3ecc gofmt -s (simplify) 2015-02-01 15:33:12 -05:00
Cory LaNou 4b84a2d174 Point/Results duplicated in Client package. Custom marshaling for timestamps 2015-01-29 16:23:15 -07:00
Cory LaNou 8643aa28aa wip starting support for http endpoint taking epoch time 2015-01-29 16:23:15 -07:00
Ben Johnson 65fc906b00 fix test. 2015-01-28 04:06:24 -05:00
Ben Johnson a3609ee5b5 Add statement normalization before execution.
This commit adds a call to Server.NormalizeStatement() immediately before execution. It defers normalization
just before execution in case statements leading up it will alter the normalization process.
2015-01-27 22:56:30 -05:00
Paul Dix 74e1bb99b6 Fix failures after rebase 2015-01-27 20:29:15 -05:00
Paul Dix c2ded241ea WIP: wire up group bys and pretty much the whole shebang 2015-01-27 20:27:19 -05:00
Ben Johnson 385687b8b4 Add multishard iteration. 2015-01-27 20:26:32 -05:00
Ben Johnson 1eda0ffcb9 Refactoring query engine. 2015-01-27 20:26:31 -05:00
Ben Johnson d340ffcf3c Expression expansion and reduction. 2015-01-27 20:26:31 -05:00
Philip O'Toole a197d16ac8 Add top-level "results" key
This brings the API output into line with the API specification.
2015-01-27 15:47:47 -08:00
Todd Persen dadd97e4e5 Change "code.google.com/p/go.*" to "golang.org/x/*" 2015-01-22 18:36:57 -05:00
David Norton 2d34c71c0c Add authorization unit tests & code review fixes 2015-01-20 23:45:18 -05:00
SaviorPhoenix e96adbf80b Fix a simple printf fmt typo in server_test.go:574 2015-01-20 02:54:01 -07:00
Ben Johnson 81f457907f Add measurement normalization and identifier splitting. 2015-01-18 14:45:22 -07:00
Ben Johnson 55d623220c Merge branch 'master' of https://github.com/influxdb/influxdb into engine-intg
Conflicts:
	server_test.go
2015-01-14 22:21:55 -07:00
Ben Johnson 0e2aae61e3 Basic query engine integration. 2015-01-14 16:44:09 -07:00
Cory LaNou e4604fec36 Refactoring based on PR comments
Changing WriteSeries to take a slice of points instead of variable
arguments

Adding godoc comment for public type Point
2015-01-13 16:26:14 -07:00
Cory LaNou 9e48da134b change signature of WriteSeries to accept a public struct 2015-01-13 16:00:41 -07:00
Ben Johnson 47cd03f3d3 Partial engine integration. 2015-01-13 10:16:43 -07:00
Ben Johnson bbe7d1aa8c fix go vet 2015-01-13 08:00:30 -07:00
Ben Johnson d651deb0ab Fix server close race condition. 2015-01-13 07:47:45 -07:00
Ben Johnson ff470047ef Code review fixes. 2015-01-12 13:10:26 -07:00
Ben Johnson 071ab8510a Merge branch 'master' of https://github.com/influxdb/influxdb into write-series 2015-01-12 12:37:48 -07:00
Philip O'Toole 295d63cb57 More vet fixes 2015-01-11 15:14:22 -08:00
Ben Johnson 5652e12c63 Add write series. 2015-01-10 13:29:43 -07:00
Ben Johnson 946007916c Partial write series code. 2015-01-10 08:48:50 -07:00
Ben Johnson 70d84a9a2e Merge branch 'master' of https://github.com/influxdb/influxdb into join
Conflicts:
	cmd/influxd/run.go
	handler.go
	server.go
2015-01-06 17:25:34 -07:00
Ben Johnson 50a0826026 Add broker snapshot/restore and CLI join. 2015-01-06 17:21:32 -07:00
Philip O'Toole 4c4950a796 Rename AuthenticatedUser to Authenticate
Feedback from final code review.
2015-01-06 09:19:31 -08:00
Philip O'Toole c77855b560 Add some unit tests for new auth functionality 2015-01-05 16:03:05 -08:00
Philip O'Toole 77764169b4 Function to return whether there is an admin user 2015-01-05 16:03:05 -08:00
Philip O'Toole b068fcadf0 Correct some comments 2015-01-04 22:11:37 -08:00
Paul Dix 7743310432 Merge pull request #1264 from influxdb/in_mem_tag_index
Add in memory tag and metastore index
2015-01-02 14:28:25 -05:00
Paul Dix 0f64a29d78 Fix merge conflicts 2014-12-30 17:50:55 -05:00
Ben Johnson 70d561aa6f Refactor main/run. 2014-12-30 15:46:50 -07:00
Paul Dix f763060b68 Refactor measurementIndex into the measurement object.
* Updated megastore to build the per database index for the server object
* Changed Server to have MeasurementNames and MeasurementSeriesIDs methods instead of generic Measurement method.
2014-12-30 16:45:58 -05:00
Ben Johnson e88bd55762 Rename Node to DataNode. 2014-12-30 08:50:15 -07:00
Ben Johnson a04eb398cf Add node management. 2014-12-29 16:12:51 -07:00
Paul Dix bbe859c981 WIP: Add in memory tag and megastore index
* Refactor metastore to remove tag mappings
* Add TagIndex and tests
* Update server to use TagIndex
2014-12-23 23:46:54 -05:00
Ben Johnson 7a1de8a459 Use replica id instead of replica name. 2014-12-23 17:01:06 -07:00
Ben Johnson ca6d0e30af Code review fixes. 2014-12-23 08:47:32 -07:00
Ben Johnson b25ced9b8e Refactor database methods into server. 2014-12-22 23:18:05 -07:00
Paul Dix d08bc0297d WIP: Implement writes series data on database
* Add setSeriesId to raft, metastore
* Add methods to get seriesIds

[ci skip]
2014-11-26 11:26:18 -05:00
Ben Johnson f52c85a8a1 Query engine and parser integration into root pkg. 2014-11-09 19:55:53 -07:00
Ben Johnson dcef4baeb1 Add bolt-backed metastore. 2014-11-05 00:32:17 -05:00
Ben Johnson 31f981e804 Refactoring common, cluster, and protobuf. 2014-10-31 19:31:19 -06:00
Ben Johnson cb6c9ddc3f Add Database.CreateShardSpace() and Database.DeleteShardSpace(). 2014-10-30 17:30:34 -06:00
Ben Johnson bf36b2a797 Shard space JSON marshaling. 2014-10-29 18:21:17 -06: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 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
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
Ben Johnson a3c7549ee9 Implement CreateDatabase command. 2014-10-23 23:38:03 -06:00
Ben Johnson 9c1e9d93bc Add broker client publishing. 2014-10-23 18:54:12 -06:00
Ben Johnson 7db0e15799 Refactoring into root. 2014-10-21 23:32:19 -06:00