Commit Graph

421 Commits (89b5473a09fc8c0c7e0c22bf2c7f0edb35ea3c6d)

Author SHA1 Message Date
Ben Johnson 29cb550d95 Code review fixes. 2015-03-23 16:06:29 -06:00
Philip O'Toole 14585db38b Move TestServer_RawDataReturnsInOrder to int tests
Fix #2052
2015-03-23 12:14:15 -07: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
Philip O'Toole f730257ee4 Implement self-monitoring 2015-03-15 14:31:16 -07:00
Ben Johnson 06d839223e Integration test delay. 2015-03-14 14:31:25 -06:00
Ben Johnson 53dbec8232 Add config notifications and increased test coverage. 2015-03-14 13:36:06 -06:00
Cory LaNou a19f81d3e9 Graphite numbers are always float64 2015-03-14 09:59:33 -06:00
Joseph Rothrock a342a1e3fd remove commented line 2015-03-13 16:11:31 -07:00
Joseph Rothrock 4aa47dbe07 Merge branch 'master' of github.com:influxdb/influxdb into export
and update changelog
2015-03-13 16:07:47 -07:00
Cory LaNou a37a303852 added tests for writing multiple values/fields for client 2015-03-13 17:00:57 -06:00
Joseph Rothrock 4aabcd907c Dump cmd
Issue: 1909
move dump cmd to an http endpoint.
Add dump cmd on client to call the endpoint.
2015-03-13 15:37:23 -07:00
Ben Johnson 4b9a93d924 Merge branch 'master' of https://github.com/influxdb/influxdb into stateless-broker 2015-03-12 15:46:04 -06:00
Philip O'Toole d82d040e59 Create databases for Graphite at higher level
By doing this the SeriesWriter interface stays focused and just has
methods for writing data. Its name then remains coherent.
2015-03-12 13:33:25 -07:00
Philip O'Toole 7717b11e6b Factor common code into Graphite package 2015-03-12 12:21:27 -07:00
Todd Persen 3e4e56d31f Fix merge conflict in CHANGELOG.md 2015-03-12 11:41:30 -07:00
Ben Johnson 7880bc2452 Add zero length data checks. 2015-03-12 12:12:26 -06:00
Ben Johnson 7ab19b9f91 Merge branch 'master' of https://github.com/influxdb/influxdb into stateless-broker 2015-03-12 11:59:55 -06:00
Cory LaNou b0be24beb1 less header lines 2015-03-12 11:17:28 -06:00
Cory LaNou 5ce7307f31 append line separator in correct spot 2015-03-12 11:17:28 -06:00
Cory LaNou 15e1f9acca add trailing line separator for column format 2015-03-12 11:17:09 -06:00
Cory LaNou 04ed8a8fef sort tags for consistency 2015-03-12 11:17:09 -06:00
Cory LaNou b18ac070b9 no need to pass arg 2015-03-12 11:17:09 -06:00
Cory LaNou 24804036ef no need to pass arg 2015-03-12 11:17:08 -06:00
Cory LaNou f0f3be9aa7 refactoring column format to be much more intelligent, fixed typo seperator -> separator 2015-03-12 11:17:08 -06:00
Cory LaNou 891a15662a no more line headers 2015-03-12 11:17:08 -06:00
Cory LaNou b94027fb84 add line separator between result outputs 2015-03-12 11:17:08 -06:00
Cory LaNou b36217cecd fixing bug with headers output 2015-03-12 11:17:08 -06:00
Cory LaNou 96856ffb19 stop writing blank columns, repeate headers as necessary 2015-03-12 11:17:08 -06:00
Cory LaNou 291de444f3 update integration test 2015-03-12 11:09:14 -06:00
Cory LaNou ddc6e119ab Add default column to SHOW RETENTION POLICIES 2015-03-12 11:07:51 -06:00
Cory LaNou 58dac30fd5 auto create database for graphite if not specified 2015-03-12 10:20:49 -06:00
Paul Dix b4e1795e0b Merge pull request #1925 from influxdb/fill-options
Add fill to select statements.
2015-03-11 19:32:15 -07:00
Paul Dix 06e8c1b3e8 Add fill to select statements.
Fixes #1913
Add fill(none), fill(<num>), and fill(previous) options
2015-03-11 18:05:31 -07:00
Joseph Rothrock 12760b9023 turn a 'Row' into distinct points 2015-03-11 16:54:17 -07:00
Cory LaNou 41607c2115 Merge pull request #1758 from influxdb/start-graphite
Add Graphite Integration Test
2015-03-11 16:13:25 -06:00
Cory LaNou c46caf8503 go faster! 2015-03-11 15:26:37 -06:00
Cory LaNou 98484b613b the right way to wait for data 2015-03-11 14:43:50 -06:00
Philip O'Toole 8baf5fa184 Merge pull request #1923 from influxdb/int_timestamp_0_select
Some integration-testing of 'count()'
2015-03-11 13:42:13 -07:00
Philip O'Toole 239a10c679 Some integration-testing of 'count()' 2015-03-11 13:38:21 -07:00
Cory LaNou 5f8b176fd2 enable graphite endpiont test 2015-03-11 14:05:02 -06:00
Cory LaNou 174a3007bb clarify broker failed start messages 2015-03-11 14:05:02 -06:00
Cory LaNou c7068b77e9 better error for starting server so we can find what line it was 2015-03-11 14:05:01 -06:00
Cory LaNou 019b9de54e adding graphite integration test: skipped as it currently fails 2015-03-11 14:05:01 -06:00
Cory LaNou e3d74f6666 allow integration tests to take a custom config 2015-03-11 14:05:01 -06:00
Philip O'Toole 6ca09c40bb Merge pull request #1921 from influxdb/int_timestamp_0_select
Integration-test precision timestamps
2015-03-11 12:59:19 -07:00
Philip O'Toole 4e876a3106 Integration-test precision timestamps 2015-03-11 12:57:19 -07:00
Ben Johnson 5f6bcf523f Fix broker integration bugs. 2015-03-11 12:00:45 -06:00
Philip O'Toole 403b05abae Merge pull request #1914 from Mosibi/master
typo: prototcol should be protocol
2015-03-11 10:57:44 -07:00
Philip O'Toole 184f67b857 Integration test retention policy control 2015-03-11 09:36:33 -07:00
Richard Arends 2948d6f464 typo: prototcol should be protocol 2015-03-11 13:05:14 +01:00
Joseph Rothrock 3193e2129b make a dump command 2015-03-10 16:30:43 -07:00
Ben Johnson 66115f95ca Merge branch 'master' of https://github.com/influxdb/influxdb into stateless-broker
Conflicts:
	cmd/influxd/run.go
	messaging/broker.go
	messaging/client.go
	messaging/client_test.go
	messaging/intg_test.go
	server.go
	tx_test.go
2015-03-10 16:27:37 -06:00