Commit Graph

457 Commits (d36bc3239501652dacaebbc06f91bdb7f1fc6ed5)

Author SHA1 Message Date
Philip O'Toole 8a9f8d0eda Add simple test that results in entries in values 2015-04-02 11:36:02 -07:00
Jason Wilder 91fb7e3756 Track data node urls on brokers
This sends data node urls via the broker heartbeat from each data
node.  The urls are tracked on the broker to support simpler
cluster setup as well as distributed queries.
2015-04-02 11:27:53 -06:00
Jason Wilder 0af6d1006d Move RestoreCommandTest to integration tests 2015-04-02 10:22:28 -06:00
Cory LaNou 8fa3571782 only need max procs for running 2015-04-02 10:27:35 -05:00
Cory LaNou e7866d3600 Set Go Max procs in a better location 2015-04-02 09:33:09 -05:00
Cory LaNou 87c3c46208 encode toml durations correctly 2015-04-01 20:20:04 -05:00
Philip O'Toole a7d904778a Correctly filter series for NEQREGEX
Series that do not have any tags are considered matching in the NEQREGEX
case so the must be explicitly added.
2015-03-31 16:14:30 -07:00
Philip O'Toole 60149cf7b5 Unit test EQ and NEQ tag query 2015-03-31 16:14:30 -07:00
Philip O'Toole 26b2a2662c Add unit test showing issue #1604 is fixed 2015-03-31 16:14:30 -07:00
Philip O'Toole 70d57d399d Check if the tag filter is a NOT
If so, then return all series IDs which do not match.

Fix for issue #2097
2015-03-31 16:14:30 -07:00
Paul Dix d8aca6029d Remove logo output on startup and output gomaxprocs setting 2015-03-29 19:01:38 -04:00
Ben Johnson 24db5f23e1 Set GOMAXPROCS. 2015-03-29 15:39:43 -06:00
Philip O'Toole 1b700264a7 Also include NEQ in filters
This fixes != for field value comparisons.
2015-03-27 23:07:57 -07:00
Philip O'Toole a0e9daee63 SHOW DATABASES returns series name "databases" 2015-03-27 16:24:57 -07:00
Philip O'Toole 3e59dac0fb Allow integration tests to be skipped 2015-03-27 11:28:19 -07:00
Philip O'Toole 8fe4e428a7 Bring 3-node test back online 2015-03-27 10:45:38 -07:00
Philip O'Toole a23984a840 Allow int tests to query only 1 node 2015-03-27 10:45:38 -07:00
Philip O'Toole 5e08351a27 Merge pull request #2087 from influxdb/_internal_not_internal
Use _internal as default self-monitoring database
2015-03-26 17:13:44 -07:00
Philip O'Toole efdb7e89e2 Disable snapshot endpoint during testing
Once we have proper endpoint layering, this can be re-enabled.
2015-03-26 16:25:30 -07:00
Philip O'Toole f829355e3e Allow snapshot endpoint to be disabled
Fix isse #2086
2015-03-26 16:13:23 -07:00
Philip O'Toole 1e10c46ea1 Remove all backup test paths 2015-03-26 14:58:07 -07:00
Philip O'Toole 7a5f66c75a Use _internal as default self-monitoring database 2015-03-26 14:12:14 -07:00
Philip O'Toole f22778a41f Merge pull request #2085 from influxdb/leading_underscores
Test leading underscores
2015-03-26 13:52:59 -07:00
Philip O'Toole ed918304c4 Test tags with leading underscores 2015-03-26 13:48:26 -07:00
Philip O'Toole 2a2c8ecddb Remove redundant writes from WHERE testing 2015-03-26 13:41:22 -07:00
Cory LaNou d653e41712 support fractional time on graphite endpoint 2015-03-26 14:18:40 -06:00
Cory LaNou 524eb78a69 graphite logs in seconds, not milliseconds 2015-03-26 14:18:40 -06:00
Philip O'Toole c461c7e7b4 Remove logging to specific file 2015-03-25 17:41:39 -07:00
Philip O'Toole 225459b25c Always write the logo to stdout
This change means it will always go to stdout, regardless of the log
setting.
2015-03-25 15:56:03 -07:00
Paul Dix 7076b9ea9a Merge pull request #2067 from influxdb/relative-times-off-2045
Fixing intervals for group by.
2015-03-24 22:17:12 -04:00
Cory LaNou 805cba71a4 clarify test name 2015-03-24 20:14:05 -06:00
Cory Lanou 7be574534c Fixing intervals for group by. Fixing bad PR 2015-03-24 20:13:05 -06:00
Ben Johnson 21782c0a67 Merge branch 'master' of https://github.com/influxdb/influxdb into backup-restore 2015-03-24 16:05:49 -06:00
Ben Johnson 4bc92c3018 Code review fixes. 2015-03-24 16:04:39 -06:00
Ben Johnson 2401e69f58 Add incremental backups.
This commit adds incremental backup support. Snapshotting from the server
now creates a full backup if one does not exist and creates numbered
incremental backups after that.

For example, if you ran:

  $ influxd backup /tmp/snapshot

Then you'll see a full snapshot in /tmp/snapshot. If you run the same
command again then an incremental snapshot will be created at
/tmp/snapshot.0. Running it again will create /tmp/snapshot.1.
2015-03-24 15:57:03 -06:00
Philip O'Toole fba41df82b Push version and commit hash onto Server 2015-03-23 23:45:57 -07:00
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