Commit Graph

325 Commits (963d277a75d0e27b9e68ff5ad7073d146e9fba2a)

Author SHA1 Message Date
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
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
Todd Persen 031ea1d2d3 Merge pull request #1900 from influxdb/update-limit-and-offset
Update LIMIT/OFFSET and SLIMIT/SOFFSET
2015-03-09 20:14:54 -07:00
Paul Dix a12f028de4 Wire up limit and offset per series.
Fixes #1709 and fixes #1103
2015-03-09 19:17:03 -07:00
Cory LaNou 436d20fec1 Merge pull request #1897 from influxdb/proactively-create-shard-groups
Pre-create shard groups
2015-03-09 20:03:12 -06:00
Paul Dix 0f98a605e2 Merge pull request #1600 from influxdb/fix-raw-ordering
Query engine rewrite
2015-03-09 18:32:55 -07:00
Cory LaNou 7495e6eb1c fix comments, some renaming, adding rlock 2015-03-09 18:05:39 -06:00
Cory LaNou 67f03ef26b Pre-create shard groups
1) Pre create shard groups

2) Calculate and save the ShardGroupDuration for Retention Policies. This should never change even if they alter a retention policy in the future
2015-03-09 17:30:17 -06:00
Philip O'Toole 95040c2cec Test auto-create of retention policy 2015-03-09 16:24:06 -07:00
Philip O'Toole f72313edd9 Support retention policy auto-creation 2015-03-09 16:24:03 -07:00
Paul Dix b173e6a380 Fix bug with where clauses on tags, time, and fields 2015-03-09 16:00:20 -07:00
Philip O'Toole 5a796afcda Merge pull request #1894 from influxdb/minor_int_fixes
Use template DB and RP variables
2015-03-09 15:14:17 -07:00
Cory LaNou 6efa090ddb Merge pull request #1893 from influxdb/update-client-write
Update client write
2015-03-09 16:13:39 -06:00
Philip O'Toole 4ad4ce3140 Use template DB and RP variables 2015-03-09 15:12:24 -07:00
Paul Dix 744e6a2aec Merge branch 'master' into fix-raw-ordering 2015-03-09 11:18:35 -07:00
Paul Dix 08ecaabc16 Fix decodes on multiple fields. Remove debug info. Update tests to match new query engine output. 2015-03-09 11:17:36 -07:00
Philip O'Toole 45d8642189 Add better test of string field WHERE 2015-03-09 11:15:04 -07:00
Philip O'Toole c714f147e8 Merge pull request #1875 from influxdb/raft_log_trace
Support control of Raft debug logging
2015-03-09 08:31:06 -07:00
Cory LaNou 2b4f155407 return no results if successful. update tests. add comments 2015-03-09 09:08:14 -06:00
Philip O'Toole d802829946 Review feedback 2015-03-07 22:55:23 -08:00
Cory LaNou 20aee9bf85 refactor client integration tests 2015-03-07 07:12:22 -07:00
Cory LaNou b4194e98c0 increment port for testing 2015-03-07 07:12:22 -07:00
Cory LaNou 01721aad0d skip test if not short testing 2015-03-07 07:12:22 -07:00
Cory LaNou f01ee5eb51 adding integration tests for client library. misc bug fixes 2015-03-07 07:12:22 -07:00
Philip O'Toole fb618cb385 Support control of Raft debug logging 2015-03-06 15:13:33 -08:00
Joseph Rothrock 9b63eed767 Merge branch 'master' of github.com:influxdb/influxdb into 1753
Conflicts:
	CHANGELOG.md
2015-03-06 12:37:15 -08:00
Joseph Rothrock 771ef1cec3 Don't Panic on Missing Dirs
Issue: 1753
Figure out what's missing, create it, and keep going.
2015-03-06 12:11:02 -08:00
Philip O'Toole 2402467e63 Add trace-level logging of write to handler 2015-03-05 17:38:03 -08:00
Philip O'Toole 76c255a3c8 Add trace-level logging to server write path 2015-03-05 17:35:57 -08:00
Philip O'Toole 60c2852d31 Add support for enabling write-tracing 2015-03-05 17:35:57 -08:00
Todd Persen 0b8017ed1e Add integration test for missing measurements with `GROUP BY *`. 2015-03-05 17:27:54 -08:00
Joseph Rothrock 1efde69c69 JSON via UDP
Issue: 1755

Bind the server to a UDP listener to accept series data.
2015-03-04 16:36:06 -08:00
Joseph Rothrock 2e3ed5a089 Merge branch 'master' of github.com:influxdb/influxdb into 1755 2015-03-04 15:37:37 -08:00
Joseph Rothrock 6bb2ad6b95 JSON via UDP
Issue: 1755

Bind the server to a UDP listener.
2015-03-04 13:36:21 -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
Philip O'Toole 8480a1829a Move string and bool data write to integration 2015-03-03 17:11:09 -08:00
Philip O'Toole 2ecae19874 Replace literal "myrp" with %RP% in tests 2015-03-03 16:48:40 -08:00
Philip O'Toole bbb6df0dcf Merge pull request #1838 from influxdb/where_and
Add unit test of parenthesis and WHERE on fields
2015-03-03 16:46:42 -08:00
Philip O'Toole 372949fee4 Add unit test of parenthesis and WHERE on fields 2015-03-03 15:58:25 -08:00
Philip O'Toole a22f1043a2 Merge pull request #1835 from influxdb/where_and
Add failing test case for WHERE AND
2015-03-03 15:49:55 -08:00
Philip O'Toole 0e3e0f6a38 Transplant more tests from httpd 2015-03-03 15:48:03 -08:00
Philip O'Toole 89bed24505 Tighten WHERE fields test case 2015-03-03 15:26:02 -08:00
Philip O'Toole adee51c4e0 Merge pull request #1836 from hawson/fix-1760-history_file
Fix for #1760:  influx doesn't create $HOME/.influx_history
2015-03-03 15:16:48 -08:00
Philip O'Toole 6ceae8ba3c Add WHERE field test, on 1 field 2015-03-03 15:02:42 -08:00
Philip O'Toole f422fbdebe Support only running certain integration tests 2015-03-03 14:53:31 -08:00
Philip O'Toole b69dc160ea Add failing test case for WHERE AND 2015-03-03 14:30:59 -08:00
Jesse Becker (NCBI) 0f7c69c587 Fix for #1760: influx doesn't create $HOME/.influx_history 2015-03-03 17:12:19 -05:00
Philip O'Toole 585ab410ba 3-node cluster tests disabled
Cluster testing is racy right now, possibly due to the underlying
implementation.
2015-03-03 14:06:39 -08:00
Philip O'Toole 0d03998dc3 Move tests from HTTP handlers to integration 2015-03-03 14:03:49 -08:00
Philip O'Toole 1ba6d8a4f9 Add initial version of table-driven int. tests 2015-03-03 13:28:09 -08:00
Kai Zhang ef262171d6 trim command line before parse it
This can avoid some errors caused by an additional space at the end of
the command line.

For example: 'use db ' will be trimed to 'use db' and parsed correctly.

Signed-off-by: Kai Zhang <zhangk1985@gmail.com>
2015-03-01 10:44:20 +08:00
Todd Persen 06bfd9c496 Remove unused syslog.go 2015-02-27 15:41:40 -08:00
Philip O'Toole a8879c02b8 Even more fixes to integration tests 2015-02-25 16:35:06 -08:00
Philip O'Toole 00a9b515a6 Simple fixes to integration tests 2015-02-25 16:21:06 -08:00
Philip O'Toole a54bd4e20b Don't modify URL passed into test code 2015-02-25 16:01:06 -08:00
Philip O'Toole bb326a6815 Don't copy the cluster nodes during testing
Use pointers, so the code is using exactly the same cluster nodes during
testing.
2015-02-25 15:57:58 -08:00
Philip O'Toole 4f232af69f 5-node tests are racy, disabling pending debug 2015-02-24 19:23:44 -08:00
Joseph Rothrock c96fda2287 Add a flag to config that disables CQs 2015-02-24 17:18:35 -08:00
Joseph Rothrock 0dfec9268d Add flag to config that disables running CQs 2015-02-24 17:01:38 -08:00
Joseph Rothrock 2835c71ce3 Add flag to config that disables running CQs 2015-02-24 17:01:38 -08:00
Philip O'Toole a00c3d1a60 Print running version and commit in log 2015-02-24 09:47:07 -08:00
Philip O'Toole 2f0fe901e3 Rename "Values" to "Fields" for writes 2015-02-23 15:06:56 -08:00
Todd Persen 2cc23d3c66 Merge pull request #1529 from influxdb/stats-reporting
Bring back stats reporting.
2015-02-23 12:57:49 -08:00
Todd Persen f8400a8c97 Merge pull request #1699 from influxdb/profiling
Add profiling to influxd
2015-02-23 12:53:34 -08:00
Ben Johnson d6358b1764 Add profiling to influxd.
This commit adds -cpuprofile and -memprofile to influxd.
2015-02-23 13:27:51 -07:00
Cory LaNou 1a7f0681b0 Merge pull request #1693 from influxdb/speed-up-integration-testing
Make integration tests faster
2015-02-23 13:07:57 -07:00
Todd Persen e45611cde3 Pull in cluster ID for reporting. 2015-02-23 10:42:39 -08:00
Todd Persen ff1c61c5c1 Only report if ReportingDisabled is set to false. 2015-02-23 10:42:39 -08:00
Todd Persen c366fcbbf6 Update stats reporting to just POST for now. 2015-02-23 10:42:38 -08:00
Cory LaNou 7d931ad585 make integration tests faster 2015-02-23 11:01:21 -07:00
Philip O'Toole 3e727ac01e Change "Rows" to "Series" in API output 2015-02-22 21:21:49 -08:00
Philip O'Toole 491a6e1a4a Fix single-node test names 2015-02-21 15:16:15 -08:00
Philip O'Toole 22f3b246cd Multi-batch write testing on a single-node 2015-02-21 15:15:54 -08:00
Philip O'Toole 66fc561a10 Wait only 1 second after writes
Fix

6e93a52bf2

means data is read correctly by data nodes
2015-02-21 15:04:37 -08:00
Philip O'Toole 4e95b35295 Add batch test of 3-node and 5-node clusters
The wait time after the write had to be increased x3.
2015-02-21 15:01:32 -08:00
David Norton 12bed3e74f issue #1430: add where regex to influxql 2015-02-21 15:37:52 -05:00
Philip O'Toole e9acab4139 Add single-node batch test, for a large batch 2015-02-21 11:58:36 -08:00
Philip O'Toole e11cbb5629 Add simple batching integration test
Uses new code to quickly generate batches for test.
2015-02-21 11:36:05 -08:00
Philip O'Toole e404f0bf66 Cosmetic fixes to integration test JSON 2015-02-20 15:14:20 -08:00
Mark Rushakoff 6954090024 Merge pull request #1574 from influxdb/client-user-agent
Client user agent is configurable
2015-02-18 12:10:53 -08: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 3809514cd2 Fixed issue on running servers that are data nodes only 2015-02-17 21:02:53 -05:00
Paul Dix 9f5bf814d8 Remove old config settings 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 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 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
Mark Rushakoff f6b26d30dd Shell includes version in user agent string
Note on how overriding the version works:

If you just run `go run cmd/influx/main.go` you'll see the shell print
out "Influx DB shell 0.9" as this commit sets the package-level variable
`version` to the string "0.9".

Running `go run -ldflags "-X main.version 123" cmd/influx/main.go` will
print out "Influx DB shell 123". (`-ldflags` works for `go install` and
`go build`, too.)
2015-02-11 22:08:21 -08:00
Todd Persen 93201bd68c Make admin interface enabled by default. 2015-02-11 16:33:21 -08:00
Todd Persen 26279cb8df Tweak configurability of the admin server. 2015-02-11 16:12:13 -08:00
Todd Persen 4fd6e3707f Some name cleanup and making the admin test not crappy. 2015-02-11 15:48:04 -08:00
Mark Rushakoff e9d5b74738 Client user agent is configurable 2015-02-11 12:35:15 -08:00