Commit Graph

12694 Commits (ed2ff3b40136c614ef2a7365c92174c851e4a192)

Author SHA1 Message Date
Jason Wilder ed2ff3b401 Fix go vet 2017-10-30 12:30:01 -06:00
Jason Wilder 00763b0105 Remove test.sh save
This doesn't appear to actually do anything and just rebuilds all the
images for some reason.
2017-10-30 11:49:47 -06:00
Jason Wilder 4c3e673376 Increase test timeout 2017-10-30 11:49:47 -06:00
Jason Wilder cdad866b9f Fix 32bit builder 2017-10-30 11:49:47 -06:00
Jason Wilder 28987f7962 Fix docker to not continue on wget failure 2017-10-30 11:49:47 -06:00
Jason Wilder 355d742d4a Update to go 1.9.2 2017-10-30 11:49:47 -06:00
Stuart Carnie 895b45385f
Merge pull request #9038 from influxdata/sgc-influxql-refactor
move RewriteStatement and neldermead to influxdb/query package
2017-10-30 10:42:57 -07:00
Stuart Carnie 7435725e05 move RewriteStatement and neldermead to influxdb/query package 2017-10-30 10:24:15 -07:00
Stuart Carnie f2015afc0b
Merge pull request #9037 from influxdata/sgc-store-frames
add additional frame types to store tool; count total points processed
2017-10-30 10:18:37 -07:00
Luís Eduardo 905945ed71 Support long lines when importing with the client
Fixes #8986.
2017-10-30 17:16:41 +00:00
Stuart Carnie 9e836aefb2 add additional frame types to store tool; count total points processed 2017-10-30 09:24:15 -07:00
Mark Rushakoff a99db451b3
Merge pull request #9024 from influxdata/mr-changelog
Include CHANGELOG updates from 1.3.7 and earlier
2017-10-27 14:45:34 -07:00
Jonathan A. Sternberg 6b3162ed94
Merge pull request #8959 from influxdata/js-dockerfile
Use multistage builds in a Dockerfile to compile and create an image from source
2017-10-27 16:41:13 -05:00
Jonathan A. Sternberg 2b090bc156 Use multistage builds in a Dockerfile to compile and create an image from source
The multistage build lets us build the image inside of one container and
then copy over the results to a new image so the build dependencies
aren't needed in the final container.

The resulting container should be identical to the official built ones
for every release, but coming from source instead.
2017-10-27 10:28:14 -05:00
Mark Rushakoff e7a1be3e1f Include CHANGELOG updates from 1.3.7 and earlier 2017-10-26 16:13:23 -07:00
Stuart Carnie c38f46a4cd Merge pull request #9023 from influxdata/sgc-nil-check
handle nil *indexSeriesCursor
2017-10-26 13:42:23 -07:00
Stuart Carnie d99cabb5d2 handle nil *indexSeriesCursor 2017-10-26 13:32:05 -07:00
Stuart Carnie 2f6fdef500 Merge pull request #9022 from influxdata/sgc-check-nil
check nil iterator
2017-10-26 12:56:12 -07:00
Stuart Carnie ab17e15caf check nil iterator; check nil cursor when no data 2017-10-26 12:54:59 -07:00
Jonathan A. Sternberg 0de9fbcb7e Merge pull request #9008 from DiegoReiriz/patch-1
Updated Queries.md
2017-10-26 13:48:35 -05:00
Ben Johnson da46ac54e8 Merge pull request #8893 from benbjohnson/handle-nil-measurement-iterator
Handle nil MeasurementIterator.
2017-10-26 11:26:06 -06:00
Ben Johnson 49c1fca036
Handle nil MeasurementIterator. 2017-10-26 11:25:46 -06:00
Jonathan A. Sternberg 11c62eb9ab Merge pull request #9020 from influxdata/js-9018-panic-on-task-manager-close
Do not panic when the task manager closes if a killed query is still running
2017-10-26 12:10:57 -05:00
Jonathan A. Sternberg 764e4e501c Do not panic when the task manager closes if a killed query is still running
This prevents a channel from being closed twice when the task manager is
closed. That same check existed to make sure a panic didn't happen when
detaching a killed query, but the check was forgotten when closing the
task manager.

This also adds a new error when attempting to kill an already killed
query.
2017-10-26 11:31:18 -05:00
Edd Robinson 26cc46d55d Merge pull request #8984 from influxdata/er-show-cardinality
Add EXACT CARDINALITY commands
2017-10-26 17:16:30 +01:00
Edd Robinson 550fd4a8c2 Merge pull request #9017 from influxdata/er-8819-retention-index
Ensure retention service removes shards locally
2017-10-26 17:15:43 +01:00
Edd Robinson f7e0e41a94 Simplify representation of statements 2017-10-26 16:22:49 +01:00
Edd Robinson ce00830a29 Typo 2017-10-26 16:22:49 +01:00
Edd Robinson dd3206d796 Set column name for estimations 2017-10-26 16:22:48 +01:00
Edd Robinson bda6de9817 Add all versions of CARDINALITY commands 2017-10-26 16:22:48 +01:00
Edd Robinson 50d73497c5 CHANGELOG 2017-10-26 16:22:48 +01:00
Edd Robinson 1342046264 Rewrite sources appropriately 2017-10-26 16:22:31 +01:00
Edd Robinson ba9506764c SHOW FIELD KEY EXACT CARDINALITY 2017-10-26 16:22:31 +01:00
Edd Robinson c57e192984 SHOW TAG VALUES EXACT CARDINALITY 2017-10-26 16:22:31 +01:00
Edd Robinson 47c0840d5b SHOW TAG KEY EXACT CARDINALITY 2017-10-26 16:22:31 +01:00
Edd Robinson f80591bfa1 Implement MEASUREMENT cardinality estimation 2017-10-26 16:22:31 +01:00
Edd Robinson 3079b41f00 Implement series cardinality estimation 2017-10-26 16:22:31 +01:00
Edd Robinson 89a0ddf689 Add EXACT CARDINALITY variation 2017-10-26 16:22:31 +01:00
Edd Robinson ce584f7b34 Merge pull request #8968 from darkliquid/client-500-resp
Make client errors more helpful on downstream errs
2017-10-26 16:20:42 +01:00
Mark Rushakoff e8d13cebbd Merge pull request #9012 from influxdata/mr-packaging-fixes
Packaging fixes
2017-10-26 08:16:37 -07:00
Edd Robinson 2ea2abb001 Remove possibility of race when dropping shards
Fixes #8819.

Previously, the process of dropping expired shards according to the
retention policy duration, was managed by two independent goroutines in
the retention policy service. This behaviour was introduced in #2776,
at a time when there were both data and meta nodes in the OSS codebase.
The idea was that only the leader meta node would run the meta data
deletions in the first goroutine, and all other nodes would run the
local deletions in the second goroutine.

InfluxDB no longer operates in that way and so we ended up with two
independent goroutines that were carrying out an action that was really
dependent on each other.

If the second goroutine runs before the first then it may not see the
meta data changes indicating shards should be deleted and it won't
delete any shards locally. Shortly after this the first goroutine will
run and remove the meta data for the shard groups.

This results in a situation where it looks like the shards have gone,
but in fact they remain on disk (and importantly, their series within
the index) until the next time the second goroutine runs. By default
that's 30 minutes.

In the case where the shards to be removed would have removed the last
occurences of some series, then it's possible that if the database was already at its
maximum series limit (or tag limit for that matter), no further new series
can be inserted.
2017-10-26 16:15:13 +01:00
Edd Robinson c8a679421f Update CHANGELOG.md 2017-10-26 15:41:30 +01:00
Edd Robinson 77977af685 Add repro test for #8819 2017-10-26 14:47:30 +01:00
Edd Robinson 1629ec7f5f Add tests to Retention service 2017-10-26 14:47:30 +01:00
Edd Robinson a37fca1199 Add Store mock 2017-10-26 14:47:30 +01:00
Andrew Montgomery-Hurrell 2ed0d2d1c9
Make client errors more helpful on downstream errs
When a downstream server such as a proxy or loadbalancer between
influxdb and the client produces an error, the client currently does
not make this very obvious.

This change introduces checks on both the content type and the
influx version header to identify whether a request was served by
influxdb itself and returns a more appropriate error in the cases
where it can be determined a downstream issue is at play.
2017-10-26 11:56:29 +01:00
Mark Rushakoff b4d56be43a Fix static linux packaging 2017-10-25 16:20:21 -07:00
Mark Rushakoff bbae6e7674 Name 386 packages i386 instead of 386
Fixes backwards-compatible package naming.
2017-10-25 15:53:35 -07:00
Stuart Carnie af00235e99 Merge pull request #9001 from influxdata/sgc-ifql
IFQL storage APIs
2017-10-25 15:33:56 -07:00
Mark Rushakoff 3cf32a9358 Fix checksum command
When building only darwin, it would fail due to nothing matching *.deb.
2017-10-25 14:56:09 -07:00