Commit Graph

11076 Commits (1f31e8b70778c80a1bbfca0e3437f52eb26c3e7a)

Author SHA1 Message Date
Jonathan A. Sternberg 927535e964 Merge pull request #7328 from influxdata/js-7315-prevent-manual-use-of-system-sources
Prevent manual use of system queries
2016-09-23 10:23:56 -05:00
Jonathan A. Sternberg dbc4a9150f Prevent manual use of system queries
Manual use of system queries could result in a user using the query
incorrect. Rather than check to make sure the query was used correctly,
we're just going to prevent users from using those sources so they can't
use them incorrectly.
2016-09-23 10:00:18 -05:00
Jason Wilder d476a1784f Merge pull request #7346 from influxdata/jw-1.0-backport
Backport unload index before closing shard
2016-09-23 08:58:57 -06:00
rw b86885c5cd Remove a few short-lived string allocs.
(*tsdb.Shard).validateSeriesAndFields uses fewer string allocs in some
hot spots.
2016-09-22 17:55:57 -07:00
Jason Wilder 67cd17d866 Merge pull request #7349 from influxdata/jw-appveyor
Use go 1.6 on appveyor
2016-09-22 18:32:16 -06:00
Jason Wilder 28a807f47c Use go 1.6 on appveyor
Seems the default has switched to 1.7, but we still use go 1.6.
2016-09-22 18:20:49 -06:00
Jason Wilder 39ade11944 Unload index before closing shard
When deleting a shard, the shard is locked and then removed from the
index.  Removal from the index can be slow if there are a lot of
series.  During this time, the shard is still expected to exist by
the meta store and tsdb store so stats collections, queries and writes
could all be run on this shard while it's locked.  This can cause everything
to lock up until the unindexing completes and the shard can be unlocked.

Fixes #7226
2016-09-22 11:16:45 -06:00
Jason Wilder a8ad18bb36 Merge pull request #7314 from influxdata/jw-delete-shard
Unload index before closing shard
2016-09-21 11:32:19 -06:00
Jonathan A. Sternberg f44dd4e8c6 Merge pull request #7293 from influxdata/js-7110-cannot-use-derivative-function
Skip past points at the same time in derivative call within a merged series
2016-09-19 09:29:21 -05:00
Michael Nikitochkin 39b4bbefef
Updated appveyer to install golang 1.7 2016-09-19 13:58:21 +02:00
Michael Nikitochkin c70efc8261
Use go 1.7.1 for testing
Updated failed test that specific for duration format in string.
2016-09-19 12:28:58 +02:00
Cory LaNou 7e515cf5f7 Merge pull request #7317 from influxdata/cjl-7316-test
Add test to prevent future parsing regressions for time durations
2016-09-16 15:50:07 -05:00
Jason Wilder d06b28992d Unload index before closing shard
When deleting a shard, the shard is locked and then removed from the
index.  Removal from the index can be slow if there are a lot of
series.  During this time, the shard is still expected to exist by
the meta store and tsdb store so stats collections, queries and writes
could all be run on this shard while it's locked.  This can cause everything
to lock up until the unindexing completes and the shard can be unlocked.

Fixes #7226
2016-09-16 12:01:50 -06:00
Jason Wilder cd7c39962d Merge pull request #7318 from influxdata/jw-sub-panic
Fix panic in subscriber.Statistics
2016-09-16 12:01:22 -06:00
Jason Wilder 14b0f6e496 Fix panic in subscriber.Statistics
The tags passed into Statistics() calls are not supposed to be modified.
The balanceWriter in subscribers tried to modify them triggering a panic
because they can be nil.
2016-09-16 11:49:15 -06:00
Cory LaNou acbf193640
add test to prevent future parsing regressions for time durations 2016-09-16 11:44:05 -05:00
Jason Wilder e2b38f6628 Merge pull request #7316 from influxdata/jw-duration-parse-panic
Fix panic when parsing ms durations
2016-09-16 09:00:08 -06:00
Jason Wilder a6d3e46893 Fix panic when parsing ms durations 2016-09-16 08:47:18 -06:00
Jack Zampolin 07071279dc Update README.md 2016-09-15 15:49:29 -07:00
Edd Robinson ec017863f7 Merge pull request #7311 from influxdata/er-perf
Pre-allocate map for performance
2016-09-15 20:01:03 +01:00
Edd Robinson ed41122ade Pre-allocate map for performance 2016-09-15 18:28:46 +01:00
Jonathan A. Sternberg 1a9de4c9b8 Merge pull request #7268 from influxdata/js-more-man-pages
More man pages for the other tools we package
2016-09-15 08:45:27 -05:00
Jonathan A. Sternberg edd32908fe More man pages for the other tools we package
Updating the package to compress the man pages fully and removes the
filename and timestamp from being stored in the man page. Lintian
complains that the packages aren't compressed using the best compression
method.

https://lintian.debian.org/tags/manpage-not-compressed.html
2016-09-15 08:35:05 -05:00
Jonathan A. Sternberg 635ce337f0 Merge pull request #7304 from influxdata/js-remove-substatement-method
Remove defunct `Substatement()` call
2016-09-15 08:32:40 -05:00
Jonathan A. Sternberg c11cbc5f05 Merge pull request #7309 from influxdata/js-go-vet-for-1.7
Update source files to pass vet checks for go 1.7
2016-09-15 08:32:30 -05:00
Jonathan A. Sternberg 477d6231db Update source files to pass vet checks for go 1.7
The vet checks for some files did not pass for go 1.7. As part of a
preliminary start to making go 1.7 work with this software, go vet
should pass.

Also updated the gogo/protobuf dependency which fixed the code generator
to work with go 1.7 too. Ran `go generate` on the entire repository to
ensure every file was up to date.
2016-09-14 15:01:22 -05:00
Cory LaNou a22c533cec Merge pull request #7296 from influxdata/cjl-2762
Return appropriate error if overflowing duration when parsing
2016-09-14 11:20:48 -05:00
Cory LaNou 71f0c7e1e9 return appropriate error if overflowing duration when parsing 2016-09-14 09:27:38 -05:00
Jonathan A. Sternberg 0974bfc1fb Merge pull request #7306 from influxdata/js-update-usage-client-dependency
Update usage-client dependency
2016-09-14 08:31:28 -05:00
Todd Persen 72b3ef32b9 Merge pull request #7307 from influxdata/tp-update-for-7286
Regenerate static assets and update CHANGELOG for PR #7286.
2016-09-14 00:20:50 -07:00
Todd Persen b8192d079e Regenerate static assets and update CHANGELOG for PR #7286. 2016-09-13 23:38:36 -07:00
Todd Persen 5df06432bb Merge pull request #7286 from dandv/patch-1
Proper password field in the Admin UI
2016-09-13 23:17:35 -07:00
Jonathan A. Sternberg 2a663eb394 Update usage-client dependency
The usage-client dependency tests used an invalid import path and that
would screw up any tools that recursively descended through
dependencies and tried to verify them. Updating this dependency.
2016-09-13 23:16:06 -05:00
Jonathan A. Sternberg 0b94f5dc1a Skip past points at the same time in derivative call within a merged series
The derivative() call would panic if it received two points at the same
time because it tried to divide by zero. The derivative call now skips
past these points. To avoid skipping past these points, use `GROUP BY *`
so that each series is kept separated into their own series.

The difference() call has also been modified to skip past these points.
Even though difference doesn't divide by the time, difference is
supposed to perform the same as derivative, but without dividing by the
time.
2016-09-13 16:57:36 -05:00
Jonathan A. Sternberg 796f35bf01 Merge pull request #7280 from influxdata/js-6846-read-invalid-json-response-as-error
Read an invalid JSON response as an error in the influx client
2016-09-13 16:30:34 -05:00
Jonathan A. Sternberg a0dfd8ae5e Merge pull request #7294 from influxdata/js-7231-duplicate-parsing-in-alter-retention-policy
Duplicate parsing bug in ALTER RETENTION POLICY
2016-09-13 16:29:24 -05:00
Jonathan A. Sternberg dbb8c5570c Duplicate parsing bug in ALTER RETENTION POLICY
Return an error when we encounter the same option twice in ALTER
RETENTION POLICY and remove the `maxNumOptions` number from the parsing
loop. The `maxNumOptions` number would need to be modified if another
option was added to the parsing loop and it didn't correctly prevent
duplicate options from being reported as an error anyway.
2016-09-13 15:56:13 -05:00
Jonathan A. Sternberg 07e3ceb855 Merge pull request #7295 from influxdata/js-6962-specify-database-in-schema-exploration-queries
Support ON and use default database for SHOW commands
2016-09-13 15:56:01 -05:00
Jonathan A. Sternberg 954445efd2 Read an invalid JSON response as an error in the influx client 2016-09-13 15:39:26 -05:00
Jonathan A. Sternberg aae88fc3c3 Support ON and use default database for SHOW commands
Normalize all of the SHOW commands so they allow both using ON to
specify the database and using the default database. Some commands would
require one and some would require the other and it was confusing when
using the query language.

Affected commands:

* SHOW RETENTION POLICIES
* SHOW MEASUREMENTS
* SHOW SERIES
* SHOW TAG KEYS
* SHOW TAG VALUES
* SHOW FIELD KEYS
2016-09-13 15:36:59 -05:00
Jonathan A. Sternberg 0b0c752f5a Merge pull request #7298 from influxdata/js-7297-inconsistent-column-output
Use consistent column output from the CLI for column formatted responses
2016-09-13 15:35:25 -05:00
Jonathan A. Sternberg 35b7460ad3 Use consistent column output from the CLI for column formatted responses
There were three different outputs that could be output with columns
that were rather strange depending on if there was a name and if there
were tags with the response.

Normalized output now has the dashes always under the column names and
no dashes anywhere else for consistency.
2016-09-13 14:20:49 -05:00
Jonathan A. Sternberg 394c13870b Remove defunct `Substatement()` call 2016-09-13 14:17:31 -05:00
Jonathan A. Sternberg 8b07e9dd55 Merge pull request #7257 from influxdata/js-7013-dollar-sign-accepted-as-whitespace
Fix the dollar sign so it properly handles reserved keywords
2016-09-13 14:14:04 -05:00
Edd Robinson 28deff65ec Merge pull request #7289 from sdtsui/4098-cmd-influx_tsm
Lint influx_tsm; Relates to #4098
2016-09-13 18:18:21 +01:00
Edd Robinson b2aee0a2d7 Merge pull request #7302 from influxdata/er-field-stat-1.0
Emit fieldsCreated stat in shard measurement
2016-09-13 16:59:08 +01:00
Edd Robinson 2a99ef751d Emit fieldsCreated stat in shard measurement 2016-09-13 16:41:11 +01:00
sdtsui 6471986eb1 Lint influx_tsm; Relates to #4098
- Single commit, PR follows conventions laid out by @Gouthamve in #5822
* main.go: struct field CpuFile should be CPUFile
* influx_inspect: loop equivalent to `for key := range...`
* adds comments to exported fields and consts
* fixes typo in `CHANGELOG.md`: text for #4702 now matches number
2016-09-12 18:35:14 -07:00
Dan Dascalescu 858060375e Proper password field 2016-09-09 22:30:17 -07:00
Jonathan A. Sternberg b1d074c019 Merge pull request #7279 from influxdata/js-7278-fix-engine-tags-in-stats
Fix engine tags in stats
2016-09-09 17:51:54 -05:00