Commit Graph

11602 Commits (e1cc01e0a324bd8cbc36f328282b091666a8106b)

Author SHA1 Message Date
Mark Rushakoff eceecf4cfa Merge pull request #7721 from influxdata/mr-fix-flaky-port-tests
Bind to random port in service open/close tests
2016-12-14 10:03:26 -08:00
Jonathan A. Sternberg 74d474594f Remove the override of GOMAXPROCS
This was needed when we were on go 1.4 but hasn't been needed since go
1.5. It was kept because we weren't sure if we were going to have to
rollback to an older version of Go at that time and we kept it so we
wouldn't forget to readd it.

Now that we are on go 1.7 with go 1.4 deprecated, there is no going back
so we might as well remove this so people can set GOMAXPROCS to a custom
value using environment variables.
2016-12-14 12:00:40 -06:00
Jonathan A. Sternberg 76df3622b0 Merge pull request #7671 from influxdata/js-7036-structured-logging
Switch logging to use structured logging everywhere
2016-12-14 11:59:46 -06:00
Jonathan A. Sternberg 21502a39e8 Switch logging to use structured logging everywhere
The logging library has been switched to use uber-go/zap. While the
logging has been changed to use structured logging, this commit does not
change any of the logging statements to take advantage of the new
structured log or new log levels. Those changes will come in future
commits.
2016-12-14 10:45:15 -06:00
Mark Rushakoff ede3144300 Bind to random port in service open/close tests
These tests have been flaky on Circle in the past due to those specific
ports being in use. Binding to port 0 will pick a random, available
port.
2016-12-14 08:29:29 -08:00
gunnaraasen 78b1a0e771 Add stats on dropped measurements and series; Fixes #7697 2016-12-13 15:17:31 -08:00
Jason Wilder 855c567c67 Merge pull request #7705 from influxdata/jw-dedup
Optimize Values.Deduplicate
2016-12-09 08:55:52 -07:00
Jason Wilder 4f28c90b54 Optimize Value.Deduplicate
Deduplicate is called from various places in the engine and can cause
a lot of garbage to get created.  It first creates a map and then
adds each value to the map in order (1st alloc).  It then creates a
new slice (2nd alloc) and appends everything from the map to the slice.
Finally, it sorted the new slice (3rd alloc).

This switches the algorithm to use stable sorting and resuing the existing
slice to avoid allocations.
2016-12-08 21:10:56 -07:00
Cory LaNou eee64ee07f Merge pull request #7701 from influxdata/corylanou-pr-task-docs
Add Documentation Task to Pull Request Template
2016-12-08 09:59:34 -06:00
Edd Robinson f44c6a9601 Merge pull request #7673 from allenpetersen/ap_7615
Reject invalid subscription urls
2016-12-08 15:13:57 +00:00
Allen Petersen 5b25a93b45 Clean error and log messages 2016-12-07 12:54:41 -08:00
Allen Petersen da9941b9a9 Reject invalid subscription urls
The url must have a scheme of udp,http,https and a port number.
CREATE SUBSCRIPTION will fail if there are invalid destinations.

Additionally Service.createSubscription fail invalid destinations are detected.

Fixes #7615
2016-12-07 12:54:41 -08:00
Cory LaNou 6f027ac60e Merge pull request #7702 from influxdata/cjl-6527-cli-precision-case-sensitive
fix precision being case sensitive in cli
2016-12-07 12:15:34 -06:00
Cory LaNou dddc3c6690
fix precision being case sensitive in cli 2016-12-07 12:04:19 -06:00
Cory LaNou d9f7fe156e Merge pull request #7699 from influxdata/cjl-7396-tabs-to-spaces-cli-output
use spaces instead of tabs for CLI column output format
2016-12-07 12:01:06 -06:00
Cory LaNou 4442615f15 use spaces instead of tabs for CLI column output format 2016-12-07 11:21:04 -06:00
Cory LaNou 29a4a16baf Merge pull request #7698 from influxdata/cjl-fix-cli-into-rp-cache
CLI was caching db/rp for insert into statements
2016-12-07 11:19:37 -06:00
Cory LaNou d1442c7573 Add Documentation Task to Pull Request Template 2016-12-07 10:14:05 -06:00
Cory LaNou a90a1f4b7f
cli was caching db/rp for insert into statements 2016-12-07 09:22:48 -06:00
Michael Desa 5f9e5dcd07 Merge pull request #7695 from influxdata/md-stress-deprecation
Add influx_stress deprecation note to change log.
2016-12-06 17:53:38 -05:00
Michael Desa cb3f4de336 Add influx_stress deprecation note to changelog. 2016-12-06 14:00:23 -05:00
Edd Robinson c558f29e54 Merge pull request #7686 from influxdata/er-go.1.7.4
Update Go version to 1.7.4
2016-12-06 16:26:46 +00:00
Edd Robinson 15c7fad8eb Merge pull request #7682 from influxdata/er-influx-ssl
Fix Influx CLI bugs
2016-12-06 16:19:24 +00:00
Jason Wilder 1677aff928 Merge pull request #7679 from influxdata/jw-line-slash
Fix string fields w/ trailing slashes
2016-12-05 10:17:21 -07:00
Jason Wilder 62af82fa8f Merge pull request #7683 from rubycut/rubycut_fix_memory_growth
Reduce pool size, change WAL writers default
2016-12-05 10:17:01 -07:00
Edd Robinson 30bea335a4 Update Go version to 1.7.4 2016-12-05 11:23:48 +00:00
Hrvoje Marjanovic 9483b8b409 gofmt 2016-12-03 22:06:38 +01:00
Edd Robinson a98ad483ee Refactor how CLI manages configuration options 2016-12-02 18:26:47 +00:00
Edd Robinson 840fb6af38 Ensure unsafessl option passed to importer 2016-12-02 18:26:47 +00:00
Edd Robinson aff2d7ce64 Ensure user privs dropped along with db (#7677) 2016-12-02 18:23:35 +00:00
Hrvoje Marjanovic 6ed708e3fd Reduce pool size, change WAL writers default
Big pool can lead to huge memory usage in certain loads.

See #7640 for detailed discussion.
2016-12-02 18:45:43 +01:00
Jonathan A. Sternberg 681f00cef2 Merge pull request #7681 from influxdata/js-7669-uncomment-sections-from-default-config
Uncomment section headers from the default configuration file
2016-12-02 10:02:20 -06:00
Jonathan A. Sternberg cbb689e706 Uncomment section headers from the default configuration file
It would be potentially confusing for someone if they uncommented a line
in the default configuration file, but forgot to also uncomment the
section header. The section headers don't cause any actual change to the
underlying configuration file so I've uncommented them to reduce
potential confusion.
2016-12-02 09:24:31 -06:00
Jason Wilder 2f776ea9e1 Fix string fields w/ trailing slashes
A string field w/ a trailing slash before the quote would parse incorrectly
because the quote would be seen as escaped.  We have to treat \\ as an
escape sequence within strings in order to handle this.
2016-12-01 15:24:11 -07:00
Ross McDonald f7c686dbef Merge pull request #7536 from ast-systemtechnik/skladd-patch-init.sh
make init.sh compatible with busybox
2016-12-01 14:08:10 -06:00
Jonathan A. Sternberg 6ec203a9c6 Merge pull request #7637 from influxdata/js-7634-percentile-selector
Return the time from a percentile call on an integer
2016-12-01 13:22:38 -06:00
Jonathan A. Sternberg bffc759cf9 Return the time from a percentile call on an integer
`percentile()` is supposed to be a selector and return the time of the
point, but that only got changed when the input was a float. Updating
the integer processor to also return the time of the point rather than
the beginning of the interval.
2016-12-01 12:34:48 -06:00
DanKans e0291e419b Update Client documentation
* Added additional variable to fulfil NewUDPClient function requirement (there was one instead of 2) and it caused multiple-value client.NewUDPClient() in single-value context error

* Update README.md

Added error handling.
2016-12-01 18:18:28 +00:00
Cory LaNou 7106c8a9c9 Merge pull request #7610 from influxdata/cjl-7601-prune-shards
Prune shards in meta data
2016-12-01 11:32:39 -06:00
Cory LaNou d54d32b9d4
prune shards in meta data 2016-12-01 11:22:16 -06:00
Jonathan A. Sternberg 5d63ebe311 Merge pull request #7676 from influxdata/js-7356-xff-changelog
Update changelog for #7356 (PR #7662)
2016-12-01 11:03:27 -06:00
Jonathan A. Sternberg 3427c7b356 Update changelog for #7356 (PR #7662) 2016-12-01 10:41:39 -06:00
Jonathan A. Sternberg edeb70c1da Merge pull request #7662 from influxdata/js-7356-xff-logging-for-http-requests
Use X-Forwarded-For IP address in HTTP logger if present
2016-12-01 10:40:18 -06:00
Jonathan A. Sternberg 825aa07877 Use X-Forwarded-For IP address in HTTP logger if present 2016-12-01 09:16:36 -06:00
Jonathan A. Sternberg 3dc5165b3c Merge pull request #7505 from oiooj/pr-influx-unixsocket
support unix socket connection for influx CLI
2016-11-30 09:02:32 -06:00
oiooj 8ddb11cee2 support unix socket connect for influx CLI 2016-11-30 22:37:56 +08:00
Jonathan A. Sternberg 128cbf04a2 Merge pull request #7658 from allenpetersen/ap_7656
Use slash separator for filenames in tar archives
2016-11-29 15:48:22 -06:00
Jonathan A. Sternberg e0c1908683 Merge pull request #7644 from influxdata/js-fix-empty-variable-serialization
Quote the empty string as an ident
2016-11-29 12:16:35 -06:00
Allen Petersen 31129ab0e9 Use slash separator for filenames in tar archives
NO-OP on platforms with unix path separator.
On Windows paths get converted to slashes before adding to archive and back to backslashes during restore.
2016-11-29 09:44:08 -08:00
Jonathan A. Sternberg 933702549d Merge pull request #7368 from influxdata/js-partial-in-json-response
Introduce syntax for marking a partial response with chunking
2016-11-29 11:17:24 -06:00