Commit Graph

129 Commits (1b700264a7c6892c3ae0d5bcdd34446ec930e0fb)

Author SHA1 Message Date
Philip O'Toole a0e9daee63 SHOW DATABASES returns series name "databases" 2015-03-27 16:24:57 -07: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 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 51e98b85ef Support sorting of retention policies
Sort them by name.
2015-03-23 17:27:15 -07:00
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
Ben Johnson 0461f401f6 Add SnapshotWriter. 2015-03-19 22:23:52 -06: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
Philip O'Toole 616cef62e6 Merge pull request #1985 from fancysupport/response-type-fix
headers were being set after they were written
2015-03-18 11:38:57 -07:00
Cory LaNou dab5ed54c4 Ensure measurement not found returns status code 200 2015-03-18 11:20:17 -06:00
Cory LaNou 894de34245 Return status code 200 for measurement not found errors 2015-03-18 09:29:45 -06:00
dstrek 24cade1041 add tests to check content-type of responses 2015-03-18 22:48:24 +11:00
Joseph Rothrock 91014def56 sleep hack 2015-03-17 15:48:54 -07:00
Joseph Rothrock 9954751182 fix default retention not set 2015-03-17 13:47:35 -07:00
Cory LaNou e9bb3fa37b Require parameter for query endpoint 2015-03-16 13:26:03 -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 ddc6e119ab Add default column to SHOW RETENTION POLICIES 2015-03-12 11:07:51 -06:00
Ben Johnson 5f6bcf523f Fix broker integration bugs. 2015-03-11 12:00:45 -06: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
Ben Johnson 27e9132796 Integrate stateless broker into remaining packages. 2015-03-10 14:53:45 -06:00
Cory LaNou b8fb723967 Enforce retention policy minimum (currently 1 hour) 2015-03-10 10:49:54 -06:00
Cory LaNou bda9685526 Use BatchPoints for writing from client library 2015-03-07 07:12:21 -07:00
Philip O'Toole 693da1ba40 Remove unused import 2015-03-04 13:06:10 -08:00
Philip O'Toole 86b29b1908 Transplant 'SHOW FIELD KEYS' tests 2015-03-04 13:01:35 -08:00
Philip O'Toole a8a2da3194 Transplan 'SHOW TAG VALUES' tests 2015-03-04 12:54:44 -08:00
Philip O'Toole e84b338018 Transplant 'SHOW TAG KEYS' tests 2015-03-04 12:44:56 -08:00
Philip O'Toole c485c63c77 Transplant 'SHOW MEASUREMENTS' series tests 2015-03-04 12:33:11 -08:00
Philip O'Toole 10217cc323 Transplant 'SHOW SERIES' tests 2015-03-04 12:21:39 -08:00
dgnorton 88a4852279 Merge pull request #1806 from influxdb/fix-1799
fix #1799: make scanner recognize regex
2015-03-04 08:44:25 -05:00
Philip O'Toole 643cd09fee 'field not found' test now in integration tests 2015-03-03 17:17:08 -08:00
Philip O'Toole 8480a1829a Move string and bool data write to integration 2015-03-03 17:11:09 -08:00
Philip O'Toole 0e3e0f6a38 Transplant more tests from httpd 2015-03-03 15:48:03 -08:00
Philip O'Toole 0d03998dc3 Move tests from HTTP handlers to integration 2015-03-03 14:03:49 -08:00
David Norton 9d6d36f2e9 fix #1799: change regex delim to '/' & RHS only 2015-03-03 09:32:15 -05:00
David Norton 08796bd6af fix #1799: make scanner recognize regex
Change the regex delimiter from single quotes to back ticks (`) and make
the scanner recognize regex tokens.

Single quotes are used for string literals. Using a unique delimiter for
regular expression literals allows the scanner to recognize regular
expression tokens, which is inline with the way the rest of the
scanner / parser work.
2015-03-03 09:32:15 -05:00
Paul Dix 05606c510c Merge pull request #1827 from influxdb/where_int_fields
Check for LT, LTE, GT, GTE
2015-03-02 18:35:59 -08:00
Philip O'Toole f0c7a6b7e7 Check for LT, LTE, GT, GTE
Add relevant unit tests
2015-03-02 18:30:48 -08:00
Philip O'Toole e82a57729f Merge pull request #1826 from influxdb/where_int_fields
WHERE field
2015-03-02 18:13:32 -08:00
Paul Dix 97746c9614 Merge pull request #1813 from influxdb/fix-1813-measurement-not-found
Querying for missing measurements should return a 200
2015-03-02 17:58:49 -08:00
Philip O'Toole 1abe6e8a1a Ensure GTE integer WHERE works 2015-03-02 17:44:31 -08:00
Philip O'Toole b9d8c5d5a5 Tighten unit test for WHERE string field 2015-03-02 17:31:26 -08:00
Philip O'Toole 260dcf67f7 Decode correct byte slice 2015-03-02 17:30:03 -08:00
Todd Persen 294772d6b8 Fix previous usage of `500 Internal Server Error` for missing field 2015-03-02 17:17:17 -08:00
Todd Persen a2bf256b62 Queries for a field that doesn't exist should return a `200 OK` 2015-03-02 17:14:59 -08:00
Todd Persen 56a712a8e3 Queries for a measurement that doesn't exist should return a `200 OK` 2015-03-02 17:04:05 -08:00
Philip O'Toole 543f5500b0 Fix unit test 2015-03-02 16:40:36 -08:00
Philip O'Toole 9d5ef5fc7a Add unit test for WHERE string fields 2015-03-02 16:16:30 -08:00
Philip O'Toole 0976a8150b More unit testing of WHERE field 2015-03-02 15:26:36 -08:00