Mark Rushakoff
a135906b43
Merge pull request #7747 from influxdata/mr-lint-cleanup
...
Miscellaneous lint cleanup
2017-01-10 08:22:00 -08:00
Mark Rushakoff
718fae7edb
Merge pull request #7809 from influxdata/mr-fix-cache-race
...
Fix race in (*tsm1.Cache).values
2017-01-10 07:17:10 -08:00
Mark Rushakoff
8c2cfd14af
Merge pull request #7808 from influxdata/mr-fix-benchmarks
...
Fix broken server benchmarks
2017-01-09 15:13:01 -08:00
Mark Rushakoff
3b3604e362
Fix race in (*tsm1.Cache).values
...
Without this read lock, this race would happen during a concurrent
snapshot compaction and query.
2017-01-09 14:48:28 -08:00
Jonathan A. Sternberg
4a559c4620
Merge pull request #7646 from influxdata/js-4619-subqueries
...
Support subquery execution in the query language
2017-01-09 14:14:01 -06:00
Mark Rushakoff
c126dc5f19
Fix broken server benchmarks
...
These seem to have been broken in #7368 .
2017-01-09 11:09:25 -08:00
Jason Wilder
9423300292
Merge pull request #7807 from influxdata/jw-backup-test
...
Fix backup/restore issues
2017-01-09 11:53:52 -07:00
Jason Wilder
eb4d311c0a
Add retry/backup when backing up a shard fails
...
The backup command can fail if a snapshot is running which silently
closes the connection. This causes the backup shard command to continue
on as if nothing failed.
2017-01-09 11:28:48 -07:00
Jason Wilder
194c5adfaf
Fix race on t.refs
...
Read at 0x00c42018f620 by goroutine 58:
github.com/influxdata/influxdb/tsdb/engine/tsm1.(*TSMReader).Close()
/root/go/src/github.com/influxdata/influxdb/tsdb/engine/tsm1/reader.go:330 +0x94
github.com/influxdata/influxdb/tsdb/engine/tsm1.(*FileStore).Close()
/root/go/src/github.com/influxdata/influxdb/tsdb/engine/tsm1/file_store.go:464 +0x123
Previous write at 0x00c42018f620 by goroutine 63:
sync/atomic.AddInt64()
/usr/local/go/src/runtime/race_amd64.s:276 +0xb
github.com/influxdata/influxdb/tsdb/engine/tsm1.(*TSMReader).Unref()
/root/go/src/github.com/influxdata/influxdb/tsdb/engine/tsm1/reader.go:352 +0x43
github.com/influxdata/influxdb/tsdb/engine/tsm1.(*KeyCursor).Close()
2017-01-07 12:39:45 -07:00
Jonathan A. Sternberg
d7c8c7ca4f
Support subquery execution in the query language
...
This adds query syntax support for subqueries and adds support to the
query engine to execute queries on subqueries.
Subqueries act as a source for another query. It is the equivalent of
writing the results of a query to a temporary database, executing
a query on that temporary database, and then deleting the database
(except this is all performed in-memory).
The syntax is like this:
SELECT sum(derivative) FROM (SELECT derivative(mean(value)) FROM cpu GROUP BY *)
This will execute derivative and then sum the result of those derivatives.
Another example:
SELECT max(min) FROM (SELECT min(value) FROM cpu GROUP BY host)
This would let you find the maximum minimum value of each host.
There is complete freedom to mix subqueries with auxiliary fields. The only
caveat is that the following two queries:
SELECT mean(value) FROM cpu
SELECT mean(value) FROM (SELECT value FROM cpu)
Have different performance characteristics. The first will calculate
`mean(value)` at the shard level and will be faster, especially when it comes to
clustered setups. The second will process the mean at the top level and will not
include that optimization.
2017-01-07 13:00:48 -06:00
Jason Wilder
bbd9d97d73
Re-enabled TestServer_BackupAndRestore
...
It was failing intermittently, but seems to fail consistently one
re-enabled. A slice pointer was incremented too early causing a
panic.
Fixes #6590
2017-01-06 16:55:12 -07:00
Mark Rushakoff
153277c01d
Merge pull request #7786 from influxdata/mr-cache-decrease-size
...
Use one atomic operation in (*Cache).decreaseSize
2017-01-06 10:17:01 -08:00
Mark Rushakoff
390a16925d
Merge pull request #7781 from influxdata/mr-godoc
...
Godoc cleanup
2017-01-04 14:11:51 -08:00
Mark Rushakoff
6a94d200c8
Merge remote-tracking branch 'influx/master' into mr-godoc
2017-01-04 13:27:36 -08:00
Jason Wilder
15915446ff
Merge pull request #7323 from miry/env-array-config
...
Allow add items to array config via ENV
2017-01-04 14:20:03 -07:00
Mark Rushakoff
bbbf9d9711
Merge pull request #7789 from influxdata/mr-monitor-config-validation
...
Require database name on monitor config
2017-01-04 13:16:49 -08:00
Mark Rushakoff
4aedd29b02
Merge pull request #7788 from influxdata/mr-point-data-methods
...
Remove unused methods from Point: Data, SetData
2017-01-04 13:15:38 -08:00
Mark Rushakoff
4da6d8ca48
Merge pull request #7787 from influxdata/mr-influxql-rune-split
...
Prefer built-in string -> []rune conversion
2017-01-04 13:14:52 -08:00
Mark Rushakoff
89a587e865
Use one atomic operation in (*Cache).decreaseSize
...
The previous implementation was susceptible to a race condition (of
correctness) since c.decreaseSize is called without a lock in
(*Cache).WriteMulti.
There were already tests which asserted the correctness of the result of
decreaseSize, so no tests were added or modified.
2017-01-04 13:13:31 -08:00
Jason Wilder
b64e350994
Merge pull request #7780 from BlueMonday/patch-1
...
Fix small typo in CONTRIBUTING.md
2017-01-04 11:14:19 -07:00
Cory LaNou
f5953b2dcf
Merge pull request #7785 from influxdata/cjl-return-error-instead-of-panic-decode-point
...
Return Error instead of panic when decoding point values.
2017-01-04 08:12:08 -06:00
Mark Rushakoff
3e473dd262
Remove unused methods from Point: Data, SetData
...
These are not called anywhere in the TICK stack that I can see.
2017-01-03 16:11:40 -08:00
Mark Rushakoff
5a24cbffeb
Require database name on monitor config
2017-01-03 15:21:25 -08:00
Mark Rushakoff
61b5a15227
Prefer built-in string -> []rune conversion
2017-01-03 14:45:33 -08:00
Cory LaNou
3c518f8927
panicing is bad -> error returns are good
2017-01-03 14:28:29 -06:00
Mark Rushakoff
07b87f2630
Miscellaneous lint cleanup
2017-01-03 09:47:32 -08:00
Mark Rushakoff
f715692d7a
Merge pull request #7784 from influxdata/mr-meta-errors
...
Fix broken return statements swallowing errors
2017-01-03 09:27:57 -08:00
Mark Rushakoff
959c445a88
Fix broken return statements swallowing errors
...
There was no comment on either case specifying that the `return nil`
was deliberate instead of `return err`, so I'm assuming these were
typos. I added tests to conserve the error-returning behavior.
2017-01-03 08:50:34 -08:00
Michael Nikitochkin
5ebd4244b1
Merge branch 'master' into env-array-config
2017-01-02 16:35:55 +01:00
Mark Rushakoff
41415cf2fb
Update godoc for tsm1 package
2017-01-02 07:30:18 -08:00
Steven Erenst
c902e6b902
Fix small typo in CONTRIBUTING.md
2017-01-01 21:22:06 -08:00
Mark Rushakoff
4a774eb600
Update godoc for the tsdb package
2016-12-30 21:12:37 -08:00
Mark Rushakoff
bb93f8c593
Update godoc for packages tcp, toml, uuid
2016-12-30 18:03:02 -08:00
Mark Rushakoff
218fc3890d
Update godoc for services
...
The admin service was deliberately skipped due to it being deprecated.
2016-12-30 18:03:01 -08:00
Mark Rushakoff
0551d87ddb
Update godoc for pkg
2016-12-30 18:03:01 -08:00
Mark Rushakoff
53d373b39e
Update godoc for the monitor package
2016-12-30 18:03:01 -08:00
Mark Rushakoff
7b5b3189dd
Update godoc for package models
2016-12-30 18:02:52 -08:00
Mark Rushakoff
88b8bd2465
Update godoc for package influxql
...
I did not look at any of the .gen.go files.
2016-12-30 18:02:52 -08:00
Mark Rushakoff
363c16b5a9
Add package comment for importer/v8
2016-12-30 11:58:43 -08:00
Mark Rushakoff
1d3da81a7d
Update godoc for the coordinator package.
2016-12-30 11:58:43 -08:00
Mark Rushakoff
6768c6ed3b
Update godoc for the cmd package and subpackages
2016-12-30 11:58:43 -08:00
Mark Rushakoff
623bb71b01
Update godoc for the client packages
2016-12-30 11:58:43 -08:00
Mark Rushakoff
c783c3d05f
Merge pull request #7775 from zegl/master
...
Removed ineffective assignments, and added checks for errors that pre…
2016-12-30 10:00:52 -08:00
Gustav Westling
69c5354d98
Use length instead of removing it
2016-12-30 12:23:40 +01:00
Gustav Westling
13efbc6ce0
Removed empty line
2016-12-30 12:22:09 +01:00
Gustav Westling
26b33307ae
Resolved PR comments on test files
2016-12-30 11:42:38 +01:00
Gustav Westling
a8343dee99
Fix broken test. Change Fatalf to Fatal.
2016-12-29 20:41:00 +01:00
Gustav Westling
56d98325da
Removed ineffective assignments, and added checks for errors that previsouly was not checked
2016-12-29 20:26:15 +01:00
Mark Rushakoff
b650834848
Merge pull request #7761 from influxdata/mr-marshal-point-require-fields
...
Require fields when marshalling Point
2016-12-28 12:58:00 -08:00
Mark Rushakoff
b896c56b5a
Add test for marshalling a point without fields
2016-12-28 12:09:30 -08:00