Commit Graph

240 Commits (1a7f0681b0700c82c850a7e24afdf837fcdd4dab)

Author SHA1 Message Date
Philip O'Toole 3e727ac01e Change "Rows" to "Series" in API output 2015-02-22 21:21:49 -08:00
Philip O'Toole 9ab1221a35 Move Raft command types to own file
server.go is getting long, so start breaking it up a little.
2015-02-22 11:50:43 -08:00
Cory LaNou 8637a10b6a start with seriesByMeasurement 2015-02-21 22:18:25 -07:00
Cory LaNou 29910c3c99 better transaction batching for drop series 2015-02-21 21:48:18 -07:00
Cory LaNou d5ac049812 remove bogus method 2015-02-21 20:20:36 -07:00
Cory LaNou d35e2a92b1 locking is now done in process messages 2015-02-21 19:14:00 -07:00
Cory LaNou c575ee9a04 fixing a fat fingering rebase 2015-02-21 19:13:01 -07:00
Cory LaNou 2752ada587 moving more responsibility to database.dropSeries 2015-02-21 17:21:27 -07:00
Cory LaNou 6114c8138e refactoring drop series 2015-02-21 17:21:27 -07:00
David Norton 61352f78b6 pass all series IDs to Server.DropSeries at once 2015-02-21 17:18:50 -07:00
David Norton 9a6e29ece8 collect all series IDs then unlock 2015-02-21 17:18:50 -07:00
Cory LaNou 5ab3731159 delete -> drop for series naming 2015-02-21 17:18:50 -07:00
Cory LaNou 697e9721dd fixing rebase conflicts 2015-02-21 17:10:12 -07:00
Cory LaNou 0d6b7616de accidentally lost this in my rebase 2015-02-21 17:10:11 -07:00
Cory LaNou 495cedb53b move where we unlock 2015-02-21 17:10:11 -07:00
Cory LaNou 4948b62784 first working version of drop series. more testing to come 2015-02-21 17:10:11 -07:00
Cory LaNou 8306057179 actually drop shard data 2015-02-21 17:10:11 -07:00
Cory LaNou 6d5be3da25 wip. compiles now. tests next 2015-02-21 17:10:11 -07:00
Cory LaNou 7cfc2a5601 wip 2015-02-21 17:10:11 -07:00
Cory LaNou 6370a4ef2b wip in progress for actually dropping the series data 2015-02-21 17:05:08 -07:00
Ben Johnson 4e5b6e93ff Merge pull request #1672 from influxdb/data-node-recovery
Add index tracking to metastore.
2015-02-21 15:34:54 -07:00
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
David Norton 9bff9cdeee issue #1431: wire up regex queries 2015-02-21 15:38:35 -05:00
Philip O'Toole 9c4174a006 Simplify locking in WriteSeries()
In addition, memomize the Field codecs.
2015-02-20 14:26:12 -08:00
Philip O'Toole 612ef1fa08 Write batch in a single BoltDB transaction 2015-02-20 11:28:07 -08:00
Philip O'Toole bd4352c77d Remove unused shardsBySeriesID
Its presence is making Bolt-level batching quite awkward, and since it's
not used, just remove it.
2015-02-20 11:28:07 -08:00
Philip O'Toole 169409ac03 Move to slices for creating measurements
Using maps was resulting in unpredicatable ordering of columns and tags.
2015-02-20 11:28:07 -08:00
Philip O'Toole f5b2962d42 Incorporate inital code review feedback 2015-02-20 11:28:07 -08:00
Philip O'Toole 5c61b7d8b8 Add new fields even when Measurement exists 2015-02-20 11:28:07 -08:00
Philip O'Toole 0e3e223e84 Always ensure measurement exists in command
Unit tests need updating since some tests are no longer valid.
2015-02-20 11:28:07 -08:00
Philip O'Toole 2585a9ea4f Encode real batches for shards 2015-02-20 11:28:07 -08:00
Philip O'Toole ff765793e6 Implement applyCreateMeasurementsIfNotExists 2015-02-20 11:28:07 -08:00
Philip O'Toole 25c3b104b7 WriteSeries now uses batching 2015-02-20 11:28:06 -08:00
Philip O'Toole 0d3ab9fa1d Create-measurement command in local function 2015-02-20 11:28:06 -08:00
Philip O'Toole 3435da9626 Correctly initialize createMeasurement maps
Full unit tests added for happy paths.
2015-02-20 11:28:06 -08:00
Philip O'Toole 55fbd7e42c Batch Measurement creation 2015-02-20 11:28:06 -08:00
Paul Dix 6fd7dd028a Fix conflict with createFields and createContinuousQuery message types 2015-02-17 21:06:48 -05: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 8fee14fbf8 Fixes based on PR feedback.
* Pull out magic numbers for running CQs in the broker
* Typo fixes in comments
* Update the process_continuous_queries endpoint to not have gzip
* Remove previous implementation of MeasurementNames in favor of new simpler one
2015-02-17 21:02:53 -05:00
Paul Dix edcc20bcab Wire up show continuous queries 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 4217778a08 Add periodic triggering of continuous queries to broker.
* Create influxdb specific broker that will periodically start continuous query calculation. Will send to the same data node as long as it's up and responding
* Add endpoint in handler to start processing of continuous queries on a data node
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
Frontend bacd500a7f fix typo stuct to struct 2015-02-17 16:53:31 -05:00
Philip O'Toole e74fadfd53 Merge branch 'master' of github.com:influxdb/influxdb into support_all_value_types 2015-02-17 12:55:12 -08:00
Philip O'Toole ae81dff9f6 Use Field codec in debug code 2015-02-16 16:43:35 -08:00
Philip O'Toole 6db74aa9bb Implement codec's encode 2015-02-16 16:01:52 -08:00