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
Philip O'Toole
3b64f34d28
Remove obsolete data config options
2015-02-11 10:26:39 -08:00
Philip O'Toole
8cb06c5b8e
Refactor retention policy enforcement for testing
2015-02-11 09:54:07 -08:00
Philip O'Toole
50ef1672cb
Add stubbed enable of retention policy enforcement
2015-02-11 09:54:07 -08:00
Philip O'Toole
61e1fa0efb
Add config control for retention policies
2015-02-11 09:54:07 -08:00
Philip O'Toole
c5f17dae89
go fmt changes
2015-02-11 08:25:17 -08:00
Todd Persen
286c9a9635
Fix admin configuration.
2015-02-10 23:42:17 -08:00
Todd Persen
4cdda0ba31
Initialize the admin interface on startup.
2015-02-10 23:04:19 -08:00
Cory LaNou
7dbd9c0d3d
combine error checking
2015-02-10 09:12:18 -07:00
Cory LaNou
7b28df0d49
someone needs to add a precommit hook...
2015-02-10 08:54:19 -07:00
Philip O'Toole
0c14a5e5de
Group util functions together
2015-02-09 20:00:45 -08:00
Philip O'Toole
bfc9ea66be
Perform query against full slice of nodes
...
This will allow the integration tests to query against any portion of
the cluster, to ensure data has been correctly replicated.
2015-02-09 19:56:54 -08:00
Philip O'Toole
87bd21d204
Allow integration tests to specify query
2015-02-09 19:46:01 -08:00
Philip O'Toole
cdeab14201
Pretty up test JSON for cluster testing
2015-02-09 19:42:56 -08:00
Philip O'Toole
8bbdfd237a
Break out write and query
2015-02-09 19:38:06 -08:00
Philip O'Toole
221954fbdc
nNodes is now redundant
2015-02-09 18:13:40 -08:00
Philip O'Toole
de1122e133
Skip multi-node tests when '-short' passed
2015-02-09 18:09:32 -08:00
Philip O'Toole
cb3a222cbd
Rename integration test file
...
It now performs multi-node cluster testing.
2015-02-09 18:01:25 -08:00
Philip O'Toole
a1953f225e
Use new type for []nodes
2015-02-09 18:00:58 -08:00
Philip O'Toole
e3110cee4e
Add explicit leader flag
2015-02-09 17:59:19 -08:00
Philip O'Toole
567fd2bfef
Pass around slices of nodes as cluster
2015-02-09 17:55:07 -08:00
Philip O'Toole
252286d035
Factor out database and retention policy creation
2015-02-09 17:37:17 -08:00
Philip O'Toole
81855662c3
Use different port ranges for each cluster
...
Long-term we need to expose methods on the top-level object such that
the TCP listeners used by the HTTP handlers can be shut down.
2015-02-09 16:39:15 -08:00
Philip O'Toole
0b349baaac
Return both broker and server from call to run()
2015-02-09 16:35:28 -08:00
Philip O'Toole
76d732f5ff
Remove unneeded delay between node joins
2015-02-09 16:28:29 -08:00
Philip O'Toole
01379651f8
Scale wait times as node number increases
2015-02-09 15:55:18 -08:00
Philip O'Toole
d888b41a44
Add simple 5-node test
2015-02-09 15:46:55 -08:00
Philip O'Toole
0aefa3e708
Wait longer for write data to be commited
2015-02-09 15:42:07 -08:00
Philip O'Toole
053d69e7d5
Add 3-node cluster test
2015-02-09 15:40:21 -08:00
Philip O'Toole
29a643a1ce
Factor out simple write-and-query test
2015-02-09 15:27:59 -08:00
Philip O'Toole
3cbed350b3
Factor out cluster creation
2015-02-09 15:16:25 -08:00
Philip O'Toole
a27220a2a3
Do not create a custom HTTP client
2015-02-09 14:43:04 -08:00
Philip O'Toole
b3ed952eff
Fix typo in response checking
2015-02-09 12:07:43 -08:00
Philip O'Toole
63fd0969fe
Fix typo in testing log output
2015-02-09 11:36:27 -08:00
Ben Johnson
bd65c543a5
Temporarily skip test.
2015-02-06 18:00:11 -07:00
Cory LaNou
1604d7f604
refactor how we default authentication enabled
2015-02-05 15:54:32 -07:00
Cory LaNou
f4dfb87acc
first pass at hardening authorize
2015-02-05 14:39:40 -07:00
Cory LaNou
1a74dfdd73
fix comment typo
2015-02-05 14:07:36 -07:00
Cory LaNou
4dfc9f74e8
fixing failing test due to tmp directories not cleaning up
2015-02-05 14:06:18 -07:00
Cory LaNou
028f61d58c
build was failing
2015-02-05 08:50:08 -07:00
Cory LaNou
77941960fd
rebasing - bringing up to date with master changes
2015-02-05 08:50:08 -07:00
Cory LaNou
091fd254da
merge gone bad somewhere
2015-02-05 08:50:08 -07:00
Cory LaNou
efd91ac666
use non-default port for integration testing
2015-02-05 08:50:07 -07:00
Cory LaNou
4dc5f3ab86
ensure server is spun up before existing run function
2015-02-05 08:50:07 -07:00
Cory LaNou
72fb148660
single server integration test is working
2015-02-05 08:50:07 -07:00
Cory LaNou
0e818f46d4
wip
2015-02-05 08:50:07 -07:00
Cory LaNou
bc264fc430
be more strict on password arg, check if password was set
2015-02-03 15:21:48 -07:00
Cory LaNou
7b5af491d7
cli - prompt for password if blank but specified in args
2015-02-03 15:21:48 -07:00
Cory LaNou
83c39d70c4
cli - prompt for password, add auth command fixes #1441
2015-02-03 15:21:24 -07:00
Cory LaNou
781bf45a70
fixing comment grammer
2015-02-03 15:10:32 -07:00
Cory LaNou
8dd52a1ea0
removing duplicate error check
2015-02-03 15:08:47 -07:00
Cory LaNou
d3c98de563
adding new output formats to cli: csv, column, json. fixes 1419
2015-02-03 14:43:18 -07:00
Cory LaNou
36cd5d1b24
add some basic test coverage for now
2015-02-03 10:22:50 -07:00
Cory LaNou
dfcfa9e673
allow cli to connect with :8087 syntax
2015-02-03 09:34:13 -07:00