Commit Graph

370 Commits (29cb550d95de31f0405f26b3ea257051423ad5b0)

Author SHA1 Message Date
Ben Johnson 29cb550d95 Code review fixes. 2015-03-23 16:06:29 -06:00
Ben Johnson 3befa12fa3 Merge branch 'master' of https://github.com/influxdb/influxdb into backup-restore
Conflicts:
	cmd/influxd/main.go
	cmd/influxd/run.go
2015-03-22 15:38:41 -06:00
Ben Johnson 11c808f55f Add restore and bootstrap.
This commit adds the "influxd restore" command to the CLI. This allows
a snapshot that has been produced by "influxd backup" to be restored
to a config location and the broker and raft directories will be
bootstrapped based on the state of the snapshot.
2015-03-22 15:31:49 -06:00
Ben Johnson 963d277a75 Add "influxd backup" command.
This commit adds the backup command to the influxd binary as well as
implements a SnapshotWriter in the influxdb package.

By default the snapshot handler binds to 127.0.0.1 so it cannot be
accessed outside of the local machine.
2015-03-22 10:54:14 -06:00
Philip O'Toole 2a4032a9a5 TestServer_LimitAndOffset to integration test 2015-03-20 20:54:40 -07:00
Philip O'Toole 57a1f5e500 Remove debug fmt.Println from tests 2015-03-20 16:36:49 -07:00
Philip O'Toole 1cc1902fb7 Merge pull request #2041 from influxdb/merge_many_series
Move "merge many" test to integration test
2015-03-20 16:35:28 -07:00
Philip O'Toole 8b48ff9a28 Move MergeMany to integration test 2015-03-20 16:32:34 -07:00
Philip O'Toole 566b2b62af Support writing test data via a function 2015-03-20 16:11:00 -07:00
Philip O'Toole 1cb60bdb62 Add help for 'config' command 2015-03-20 15:58:17 -07:00
Philip O'Toole ee29214898 Make it clear where influxd storage is 2015-03-20 15:19:30 -07:00
Philip O'Toole 45ac8ff2d9 Explicitly check for errors getting current user 2015-03-20 15:18:29 -07:00
Philip O'Toole f6f74a11bd Don't check 'configExists' at Run() level
*config was always non-null, since code at a higher level ensures that a
default config is passed down if no config is specified. So this logic
was pointless.
2015-03-20 14:10:50 -07:00
Ben Johnson 0461f401f6 Add SnapshotWriter. 2015-03-19 22:23:52 -06:00
Philip O'Toole 05fb2842ba Use _id for Series IDs
Fix issue #2008
2015-03-19 19:04:07 -07:00
Philip O'Toole 3001448f16 Merge branch 'master' into limit-group-by
Conflicts:
	CHANGELOG.md
2015-03-19 15:17:50 -07:00
Philip O'Toole b148f3da7a Merge pull request #2016 from jnutzmann/align-group-by-buckets
Fixing bucket alignment for group by
2015-03-19 15:13:40 -07:00
Todd Persen e2391d9b34 Merge pull request #1909 from influxdb/export
Add a `dump` command for exporting data.
2015-03-19 15:07:23 -07:00
Cory LaNou c13bdd5e86 refactor, bug fix, move tests to integration 2015-03-19 14:33:47 -06:00
Cory LaNou a6171b3382 refactor of limit/offset 2015-03-19 13:31:46 -06:00
Paul Dix 56281fbfd5 WIP: add IsRawQuery to select and fix LIMIT and OFFSET on GROUP BY time 2015-03-19 11:41:18 -04:00
Jonathan Nutzmann 105d0aa503 fixing failed integration tests - change how number of points calculated and the expected result of the server 2015-03-19 10:28:47 -05:00
Todd Persen 8425c0c578 Final cleanups based on review feedback. 2015-03-18 23:02:11 -07:00
Philip O'Toole 521cddb2a7 Move TestServer_ExecuteWildcardGroupBy 2015-03-18 17:37:08 -07:00
Philip O'Toole c95af24e43 Move TestServer_ExecuteWildcardQuery 2015-03-18 17:27:20 -07:00
Philip O'Toole b5d5ce070f Move TestServer_DropMeasurementSeriesTagsPreserved 2015-03-18 17:21:10 -07:00
Philip O'Toole 82136aab65 Move TestServer_ExecuteQuery to integration tests 2015-03-18 16:53:06 -07:00
Philip O'Toole fdc44be5e9 Add comment for precision-write tests 2015-03-18 16:16:52 -07:00
Joseph Rothrock 21fd2e2662 dump cmd
rename dump flag

put an error response body if json marshalling breaks.

detect and respond to http error codes in the client.
2015-03-18 14:10:36 -07:00
Philip O'Toole d06d9627f1 Use "internal" for self-monitoring database
Parser doesn't like database names that start with "_".
2015-03-18 12:43:04 -07:00
Todd Persen 4ee1216052 Merge pull request #1978 from influxdb/fix-1832
fix #1832: support regex in FROM clause
2015-03-18 11:20:30 -07:00
Grégory Starck 0c7e062a18 Also print the broker path.
So to know/see where it's actually located.
2015-03-18 11:58:56 -04:00
Joseph Rothrock 5df3e8c3aa suppress more client msgs 2015-03-17 14:44:15 -07:00
Joseph Rothrock 9b3f0399af oops, left in some cruft 2015-03-17 13:57:47 -07:00
Joseph Rothrock 5156a10e9e Merge branch 'master' of github.com:influxdb/influxdb into export 2015-03-17 10:52:09 -07:00
David Norton f338e8212c remove debugging change from tests 2015-03-17 12:46:27 -04:00
Cory LaNou 20b0c52484 fixing config print startup statement 2015-03-17 07:37:08 -06:00
David Norton 62ae32b0ce wire up regex in FROM clause 2015-03-16 19:40:59 -04:00
Joseph Rothrock 53d99637b7 Merge branch 'master' of github.com:influxdb/influxdb into export 2015-03-16 15:31:47 -07:00
Joseph Rothrock d7420683ae tweaking in response to various PR comments 2015-03-16 15:31:41 -07:00
Cory LaNou 031490fff1 function -> method 2015-03-16 16:25:13 -06:00
Cory LaNou 961e2ee944 Print config 2015-03-16 16:24:44 -06:00
Philip O'Toole 50d2470041 Write totals, not diff, of internal stats 2015-03-15 14:32:46 -07:00
Philip O'Toole d627634991 Ensure internal retention policy exists 2015-03-15 14:32:46 -07:00
Philip O'Toole f4b3e3da9f Fix final 'go vet' errors 2015-03-15 14:32:46 -07:00
Philip O'Toole ae3b3d5252 Rename "metrics" to "stats" 2015-03-15 14:32:46 -07:00
Philip O'Toole ea7b7be534 Fix 'go vet' errors 2015-03-15 14:32:11 -07:00
Philip O'Toole 5240151517 Actually start self-monitoring if requested 2015-03-15 14:32:11 -07:00
Philip O'Toole d95c9454d2 Better names for statistics config options 2015-03-15 14:32:11 -07:00
Philip O'Toole 95f7a006a3 Fix test config for _internal database 2015-03-15 14:32:11 -07:00