Commit Graph

11451 Commits (a801c9dea69789709d1661aef58ceb976383da6f)

Author SHA1 Message Date
Cameron Sparr fa2b78d67e Optimize string escaping & unescaping
benchmarks pre-commit:

go test ./pkg/escape/... -bench=. -benchmem
BenchmarkStringEscapeNoEscapes-8         10000000          122 ns/op     0 B/op      0 allocs/op
BenchmarkStringUnescapeNoEscapes-8       300000000         5.69 ns/op    0 B/op      0 allocs/op
BenchmarkManyStringEscape-8               1000000          1073 ns/op    320 B/op    8 allocs/op
BenchmarkManyStringUnescape-8             1000000          1557 ns/op    288 B/op    8 allocs/op
PASS
ok      github.com/influxdata/influxdb/pkg/escape    6.304s

benchmarks post-commit:

go test ./pkg/escape/... -bench=. -benchmem
BenchmarkStringEscapeNoEscapes-8         100000000         17.5 ns/op    0 B/op      0 allocs/op
BenchmarkStringUnescapeNoEscapes-8       300000000         5.70 ns/op    0 B/op      0 allocs/op
BenchmarkManyStringEscape-8               3000000          451 ns/op     224 B/op    6 allocs/op
BenchmarkManyStringUnescape-8             2000000          944 ns/op     304 B/op    9 allocs/op
PASS
ok      github.com/influxdata/influxdb/pkg/escape    8.727s
2016-11-24 10:25:35 +00:00
Jason Wilder 27d157763a Merge pull request #7651 from influxdata/jw-shard-last-modified
Expose Shard.LastModified
2016-11-23 10:19:26 -07:00
Jason Wilder e8a28cfbab Expose Shard.LastModified
This returns the LastModified time of the shard.  The LastModified
time is the wall time when a change to the shards state occurred.
It uses the WAL or FileStore to determine the max mod time.
2016-11-23 10:04:07 -07:00
Edd Robinson b83b8df32f Merge pull request #7635 from influxdata/er-msg
Fix incorrect error message
2016-11-23 13:58:33 +00:00
Edd Robinson f488c5bcf4 Merge pull request #7645 from shaybix/make-influxdb/tcp-golintable
removed parentheses to make tcp golintable
2016-11-23 13:47:17 +00:00
Jonathan A. Sternberg b4db76cee2 Introduce syntax for marking a partial response with chunking
The `partial` tag has been added to the JSON response of a series and
the result so that a client knows when more of the series or result will
be sent in a future JSON chunk.

This helps interactive clients who don't want to wait for all of the
data to know if it is done processing the current series or the current
result. Previously, the client had to guess if the next chunk would
refer to the same result or a new result and it had to match the name
and tags of the two series to know if they were the same series. Now,
the client just needs to check the `partial` field included with the
response to know if it should expect more.

Fixed `max-row-limit` so it counts rows instead of results and it
truncates the response when the `max-row-limit` is reached.
2016-11-22 11:16:22 -06:00
shaybix 1240ffd66f removed parentheses to make tcp golintable 2016-11-19 04:13:25 +00:00
Jonathan A. Sternberg c957bf7f99 Quote the empty string as an ident
Without this quoting, the function `max("")` turns into `max()` and will
not be reparsed correctly.
2016-11-18 16:25:39 -06:00
Cameron Sparr 3fe0ffd5ad String escape unit tests 2016-11-18 16:02:52 +00:00
Jason Wilder b765a4b8c7 Merge pull request #7631 from influxdata/jw-timer-allocs
Allocation/pointer removal
2016-11-17 18:02:01 -07:00
Edd Robinson 9e9719749f Sprinkle some golint 2016-11-17 16:31:38 +00:00
Edd Robinson 28ba8ced74 Fixes #7625 2016-11-17 16:31:36 +00:00
Jason Wilder 63554ce5a3 Update changelog
Add #7616
2016-11-16 17:05:47 -07:00
Jason Wilder bdf389d13c Merge pull request #7616 from ccasey/master
fix chuid argument order
2016-11-16 17:04:12 -07:00
Jason Wilder 89706dbd60 Merge pull request #7632 from influxdata/jw-merge-11
Merge 1.1 branch
2016-11-16 12:38:10 -07:00
Jason Wilder 62177826d5 Merge branch '1.1' into jw-merge-11 2016-11-16 11:16:44 -07:00
Jason Wilder 3a5a01181b Switch all Value types from pointers 2016-11-15 16:13:55 -07:00
Jason Wilder bf17074f58 Avoid allocation when counting tag keys
A new sorted slice was called by the monitor func every 10s.  The
tag keys don't need to be sorted so this avoid the allocation of the
slice and one during sorting.
2016-11-15 16:13:55 -07:00
Jason Wilder 0ee58c208a Switch time.Sleep to time.Ticker
Avoids an allocation when calling time.Sleep
2016-11-15 16:13:55 -07:00
Jason Wilder 73b8f52ca0 Cache results onf findGenerations
This allocates quite a bit and it's called multiple times per
second per shard.  The generations don't change until a compaction
has occurred so most of the time is re-calculating the same thing
and creating garbage.
2016-11-15 16:13:55 -07:00
Jason Wilder 61daedac03 Use time.Tick instead of time.After
Eliminates an allocation
2016-11-15 16:13:55 -07:00
Jonathan A. Sternberg 4b9c88037f Merge pull request #7628 from influxdata/js-7621-sample-wildcard
Expand string and boolean fields when using a wildcard with sample()
2016-11-15 16:15:52 -06:00
Jonathan A. Sternberg e885fe5117 Expand string and boolean fields when using a wildcard with sample() 2016-11-15 15:56:47 -06:00
Jason Wilder 4fcbedad3f Merge pull request #7622 from marcv81/bug-7602
Fix references to Go 1.6.2 in doc
2016-11-15 14:44:46 -07:00
Marc 20d0653aa6 Fix references to Go 1.6.2 in doc 2016-11-12 11:50:44 +08:00
Jason Wilder 800da5732b Update release date 2016-11-11 16:25:22 -07:00
Jason Wilder 77e2c80a4f Merge pull request #7435 from marcv81/feature-7066
Support for collectd signed and encrypted packets
2016-11-11 11:30:24 -07:00
Chris Casey 8e720a3308 fix chuid argument order 2016-11-10 16:31:50 -06:00
Jonathan A. Sternberg d04ccbab67 Merge pull request #7608 from influxdata/js-7606-backport
Avoid deadlock when max-row-limit is hit
2016-11-08 15:08:43 -06:00
Jonathan A. Sternberg b87116449c Avoid deadlock when max-row-limit is hit
When the `max-row-limit` was hit, the goroutine reading from the results
channel would stop reading from the channel, but it didn't signal to the
sender that it was no longer reading from the results. This caused the
sender to continue trying to send results even though nobody would ever
read it and this created a deadlock.

Include an `AbortCh` on the `ExecutionContext` that will signal when
results are no longer desired so the sender can abort instead of
deadlocking.
2016-11-08 14:48:16 -06:00
Jonathan A. Sternberg ee4d04de4e Merge pull request #7606 from influxdata/js-max-row-limit-block-fix
Avoid deadlock when max-row-limit is hit
2016-11-08 14:39:46 -06:00
Jonathan A. Sternberg 64c2d704da Avoid deadlock when max-row-limit is hit
When the `max-row-limit` was hit, the goroutine reading from the results
channel would stop reading from the channel, but it didn't signal to the
sender that it was no longer reading from the results. This caused the
sender to continue trying to send results even though nobody would ever
read it and this created a deadlock.

Include an `AbortCh` on the `ExecutionContext` that will signal when
results are no longer desired so the sender can abort instead of
deadlocking.
2016-11-08 13:12:28 -06:00
Marc 05d929caa9 Update CHANGELOG.md 2016-11-08 08:42:14 +08:00
Marc 7d277d0def Add support for collectd security policy
There are 2 new keys in the configuration file.
- security-level: "none", "sign", or "encrypt".
- auth-file: The location of the user/password file.

Please see the collectd network doc for more details.
2016-11-08 08:42:09 +08:00
Marc 0260dfb575 Replace kimor79/gollectd with collectd.org
At this point this is a like-for-like swap.

collectd.org is more active and supports more features.
2016-11-08 08:24:57 +08:00
Jonathan A. Sternberg 6ffe164eac Merge pull request #7600 from influxdata/js-7575-backport
Fix the `-execute` and `-import` when there is no TTY
2016-11-07 15:36:37 -06:00
Mark Rushakoff d52eb01c17 Merge pull request #7492 from influxdata/mr-influx_inspect-help-verify
Mention verify subcommand in influx_inspect help
2016-11-07 13:23:39 -08:00
Jason Wilder 3c0aaae8ff Merge pull request #7556 from influxdata/rk-readme-fix
Update example in influx_inspect README.md
2016-11-07 14:16:43 -07:00
Jason Wilder 8c1228169d Merge pull request #7592 from Tomcat-Engineering/remove-unused-function
Remove old code which is no longer used.
2016-11-07 14:15:38 -07:00
Jonathan A. Sternberg 40431cbee0 Fix the `-execute` and `-import` when there is no TTY 2016-11-07 15:08:12 -06:00
Jonathan A. Sternberg be49f3ee2c Merge pull request #7586 from influxdata/js-7575-fix-execute-flag-with-no-tty
Fix the `-execute` and `-import` when there is no TTY
2016-11-07 15:07:21 -06:00
Jason Wilder b3f6704849 Merge pull request #7599 from influxdata/jw-admin
Backport disable/deprecate admin interface
2016-11-07 14:05:01 -07:00
Jason Wilder e10776081a Disable/deprecate admin interface 2016-11-07 13:33:36 -07:00
Jason Wilder d4a0f715a5 Merge pull request #7597 from influxdata/jw-admin
Disable/deprecate admin interface
2016-11-07 13:32:28 -07:00
Jason Wilder b6863b04d1 Disable/deprecate admin interface 2016-11-07 12:04:51 -07:00
Ross McDonald fe75085bb5 Merge pull request #7580 from tcheneau/arm64-build-fix
Fix ARM64 build by replacing "aarch64" string with "arm64"
2016-11-07 09:16:22 -06:00
Cory LaNou e112de2ee0 Merge pull request #7554 from influxdata/cjl-godeps
update latest dependencies with Godeps
2016-11-07 09:10:30 -06:00
Cory LaNou 3774d5e734
update latest dependencies with Godeps 2016-11-07 08:49:29 -06:00
Cory LaNou 40f626d20f Merge pull request #7449 from influxdata/cjl-7488-fix-rp-defaults
fix retention policy creation inconsistencies
2016-11-07 08:20:34 -06:00
Tom Young 24fa1ac1c0 Remove old function which is no longer used. 2016-11-06 13:38:59 +00:00