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
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
Cory LaNou
a3a4a03263
add const for default_host in cli
2015-02-03 09:24:26 -07:00
Cory LaNou
b090768890
cli can now connect to other servers while in shell
2015-02-03 09:15:11 -07:00
Cory LaNou
1ad0e32c0a
add warning if querying resulted in an error and database was not set
2015-01-30 14:38:27 -07:00
Cory LaNou
85499c6f17
enable use command in cli
2015-01-30 14:31:53 -07:00
Philip O'Toole
b191b1f044
Remove superfluous blank line from help output
2015-01-30 13:09:38 -08:00
Philip O'Toole
86cf0888df
Add unit test for 'cluster dir' configuration
2015-01-29 16:41:34 -08:00
Philip O'Toole
5a53de4d93
Remove obsolete configuration options
2015-01-29 16:36:27 -08:00
Philip O'Toole
9943f86cf4
Enable module-level logging
2015-01-29 15:07:58 -08:00
Philip O'Toole
ce0cc84ec1
Create, and use, standard path for log file
2015-01-29 14:29:21 -08:00
Philip O'Toole
c05d4bf292
Open log file
2015-01-29 14:12:56 -08:00
Philip O'Toole
29d7decdf9
Remove ignored 'level' option from logging config
2015-01-29 14:12:56 -08:00
Cory LaNou
e066826657
renamed influxdb to influx for cli
2015-01-28 17:22:28 -07:00
Cory LaNou
9609425d94
adding history, better results, misc enhancements
2015-01-28 17:15:16 -07:00
Philip O'Toole
a4f4c42a15
Explicity name "initialization" section in config
2015-01-28 11:13:44 -08:00
Philip O'Toole
a197d16ac8
Add top-level "results" key
...
This brings the API output into line with the API specification.
2015-01-27 15:47:47 -08:00
Philip O'Toole
2aa9b6ea33
Ensure PID directory tree exists
2015-01-26 18:33:06 -08:00
Philip O'Toole
3c3792f670
Push "joinURLs" into config file
...
Command-line still take precedence.
2015-01-26 17:53:56 -08:00
Philip O'Toole
d5c0ea396b
Remove redundant option 'role'
2015-01-26 17:15:47 -08:00
Cory LaNou
3186553f0a
Merge branch 'master' into tests-shards-tmux
2015-01-26 17:31:03 -07:00
Cory LaNou
6ecb96ebfa
clarifying a comment on starting up servers
2015-01-26 17:16:05 -07:00
Cory LaNou
eaf8ed1d23
use standard library for path expansion
2015-01-26 16:10:51 -07:00
Cory LaNou
e7a031b0fa
show version when connecting via cli
2015-01-26 14:12:58 -07:00
Cory LaNou
356270c109
Merge branch 'master' into client-refactoring
2015-01-26 12:02:29 -07:00
Cory LaNou
107d2135a4
make sure we handle home directories properly in config
2015-01-26 11:03:49 -07:00
Cory LaNou
eeb502fbd5
allowing a broker/client to spin up more than once
2015-01-26 10:37:29 -07:00
Cory LaNou
d8fa6b81bb
hottoddy -> gopher
2015-01-26 09:24:17 -07:00
Todd Persen
c5c242a7f9
New version, new logo.
2015-01-24 15:11:03 -05:00
Cory LaNou
eb9e035b08
hottoddy easter egg
2015-01-23 16:34:05 -07:00
Cory LaNou
f0648288f7
making the cli feel more like a cli
2015-01-23 16:22:26 -07:00
Cory LaNou
ac9473374a
refactoring some client config. staring cli client, lot of wip
2015-01-23 15:49:23 -07:00
Cory LaNou
44d43462cf
removing old client and benchmarks to make space for new client and benchmarks
2015-01-22 15:02:24 -07:00
Cory LaNou
fd626de462
refactoring the refactoring
2015-01-21 18:13:51 -07:00
Cory LaNou
5421285be2
added version to server struct
2015-01-21 12:53:18 -07:00
Cory LaNou
f52d9aa582
wip - added filters. added the concept of routes. more to come
2015-01-20 17:10:45 -07:00
Cory LaNou
3ab277214d
first pass at moving handlers to httpd package
2015-01-20 10:50:13 -07:00
Cory LaNou
1950f38fc1
removing unecessary method
2015-01-18 16:27:52 -07:00
Cory LaNou
34aa70e6d5
better way to re-start without a default config
2015-01-18 16:02:48 -07:00
Cory LaNou
3791cbe722
launch and re-launch server with no config
2015-01-16 16:45:31 -07:00
Ben Johnson
0d590f8c99
Begin broker/client config messaging.
2015-01-15 13:42:56 -07:00
Cory LaNou
9913cd14bf
invalid formatting directive
2015-01-13 17:33:50 -07:00
Cory LaNou
fdd4fd6eaa
merge convflict
2015-01-11 16:57:46 -07:00
Philip O'Toole
295d63cb57
More vet fixes
2015-01-11 15:14:22 -08:00
Cory LaNou
807c988649
changes based on pr review by Dave Cheney
2015-01-11 07:44:52 -07:00
Cory LaNou
d9c0728e74
Test_Collectd -> TestCollectd
2015-01-10 20:09:19 -07:00
Cory LaNou
0340d3bd39
removing type block in config
2015-01-10 19:49:13 -07:00
Ben Johnson
d9411c3d84
Merge branch 'master' of https://github.com/influxdb/influxdb into join
...
Conflicts:
cmd/influxd/config.go
cmd/influxd/run.go
2015-01-10 09:10:21 -07:00
Ben Johnson
c20746ffa6
Code review fixes.
2015-01-10 09:08:00 -07:00