Commit Graph

14311 Commits (83b1f481120719c26386dacbcbc9da896ad739c5)

Author SHA1 Message Date
Lorenzo Affetti 83b1f48112 fix(package): make rpm verify pass after installation 2019-04-30 12:10:40 +02:00
Hercules Mango Churchill 8c471993f7 Update changelog 2019-04-23 19:39:48 +00:00
Adam cd3866de98
Merge pull request from influxdata/fix/csvwriter18
Fix csv decoder bug where empty tag values cause an array index panic
2019-04-23 15:39:30 -04:00
Adam 94ee5a5f2d fix csv decoder bug where empty tag values cause an array index panic 2019-04-22 18:36:03 -04:00
Hercules Mango Churchill 79545a3c5e Update changelog 2019-04-22 16:12:35 +00:00
Jonathan A. Sternberg ba006c755c
Merge pull request from influxdata/fix/subquery-timezone
Use the timezone when evaluating time literals in subqueries
2019-04-22 11:12:17 -05:00
Jonathan A. Sternberg 65b6b1dbb0
Use the timezone when evaluating time literals in subqueries 2019-04-22 10:45:40 -05:00
Hercules Mango Churchill c53b649d99 Update changelog 2019-04-18 15:59:15 +00:00
Adam b0773cea13
Merge pull request from influxdata/backport/fix-fill-previous
fill resets the previous value when a new series or window is encountered
2019-04-18 11:58:54 -04:00
Adam 3372d3b878 fix(fill): fill resets the previous value when a new series or window is encountered () 2019-04-18 10:44:15 -04:00
Jeff Wendling db762e277b
Merge pull request from influxdata/jmw-verify-seriesfile-tombstones
fix(influx_inspect): verify-seriesfile with deleted index entries
2019-04-17 15:41:36 -06:00
Jeff Wendling 6833c4d082 fix(influx_inspect): verify-seriesfile with deleted index entries
The series index looks at a set of tombstones when querying the id for
a given key, but it does not look when asking for the offset for some
id, even if that id is deleted.

Update the verify tooling to check that the index agrees with the
deleted status of the id, but skip doing the extra checks if the
id is deleted.
2019-04-17 12:24:23 -06:00
Hercules Mango Churchill 1d23b6ba6f Update changelog 2019-04-17 16:39:37 +00:00
Jonathan A. Sternberg cd1976dcbc
Merge pull request from influxdata/fix/1.8-point-sort-order
Fix the sort order for aggregates so that they are sorted by tag and then time
2019-04-17 11:39:19 -05:00
Jonathan A. Sternberg e153f3fa10
Fix the sort order for aggregates so that they are sorted by tag and then time
The reduce iterators would read in the points for a window, which
matched the grouping of the outermost query, and then it would sort them
by the time before emitting the points.

When there were multiple series, this would sometimes cause a conflict
because it would change the sorting of the inner query output when
selectors were used within a subquery. Then, these emitted points would
be output in the wrong order and they wouldn't join correctly when
multiple cursors were used.

This fixes it so the sorting happens per series grouping rather than on
all of the points together so they retain their tag order which is the
correct sorting method.
2019-04-16 12:25:32 -05:00
Jonathan A. Sternberg d24b7ba8c4
Merge pull request from influxdata/fix/versioned-influxql
Add a version constraint for influxql
2019-04-11 16:25:39 -05:00
Jonathan A. Sternberg 02613f4f4d
Add a version constraint for influxql 2019-04-11 15:41:48 -05:00
Stuart Carnie b939b02c98
Merge pull request from influxdata/sgc/fix-13204
Update predicate key mapping to match 2.x behavior
2019-04-05 13:08:58 -07:00
Stuart Carnie b222dfbe5b
fix(storage): Update predicate key mapping to match 2.x behavior
When a Flux predicate is transformed to a Store.Read / GroupRead request,
the `_measurement` and `_field` keys are remapped to match 2.x internal
tag keys.

This change does not modify the 2.x behavior, but rather updates the
1.x mapping, so merging future updates from the 2.x storage/reads
package should have fewer conflicts.
2019-04-05 12:14:20 -07:00
Ben Johnson 54fc6e2d47
Merge pull request from influxdata/contributing-distribution-1.8
Document process for building distribution files locally
2019-04-04 15:27:11 -06:00
Ben Johnson 093639dc03
Document process for building distribution files locally. 2019-04-04 14:46:51 -06:00
Jonathan A. Sternberg 3406e8c7ff
Merge pull request from influxdata/deps/upgrade-flux
Upgrade flux to the latest version and remove the platform dependency
2019-04-04 11:41:27 -05:00
Jonathan A. Sternberg 31501c9dcf
Upgrade flux to the latest version and remove the platform dependency
This integrates the influxdb 1.x series to the latest version of Flux
and updates the code to use it. It also removes the dependency on
platform and copies the necessary code from storage into the 1.x series
so the dependency is unneeded.

The flux functions specific to 1.x have been moved to the same structure
that flux changed to with having a `stdlib` directory instead of a
`functions` directory. It also adds a `databases()` function that
returns the databases from the meta client.
2019-04-04 10:55:09 -05:00
Hercules Mango Churchill 1bfe54169b Update changelog 2019-04-04 15:18:33 +00:00
Ben Johnson 8f54d5b98d
Merge pull request from influxdata/bj-nil-check-setIDs-1.8
Add nil check for tagKeyValueEntry.setIDs()
2019-04-04 09:18:09 -06:00
David Norton 368e0e3539
Merge pull request from influxdata/dn-fix-blank-secret
Fix security vulnerability when shared secret is blank
2019-04-03 13:14:46 -04:00
David Norton 0ab2a30497 fix(httpd): log when auth enabled & secret blank 2019-04-03 12:32:47 -04:00
Ben Johnson 2edbc907a1
Add nil check for tagKeyValueEntry.setIDs()
Previously it was possible to set IDs on a `nil` entry which would
in turn cause a panic. If this panic was recovered by the server
then it would result in a mutex in the `inmem` index staying locked
indefinitely.
2019-04-02 10:04:39 -06:00
David Norton 3ec2ac43a4 fix(httpd): fail bearerauth if shared secret blank 2019-04-02 11:26:57 -04:00
Jeff Wendling 932521b6ff
Merge pull request from influxdata/jmw-tls-version-problem
tls: fix incorrect tls1.0 version mapping
2019-04-01 17:45:06 -06:00
Stuart Carnie 2c134c4c9e
Merge pull request from influxdata/sgc/issue-11710
Ensure credentials are passed for Flux queries when using influx command
2019-04-01 13:42:40 -07:00
Stuart Carnie 09a9d34430
fix(influx): Ensure credentials are passed for Flux queries
Fixes 
2019-03-29 16:39:34 -07:00
Edd Robinson ba2f72075f
Merge pull request from influxdata/er-prom-inf
Drop all unsupported Prometheus values written to the remote write endpoint
2019-03-25 16:47:59 +00:00
Edd Robinson 1d2be75615 Fixes
This commit extends the Prometheus remote write endpoint to drop
unsupported Prometheus values, rather than reject the entire batch.

InfluxDB does not support NaN, -Inf or +Inf, but Prometheus does. The
remote write endpoint will now drop these and write valid values in the
provided batch.

If the user enabled write trace logging (`[http] write-tracing = true`)
then summaries of any dropped values within a batch will be logged.

If a batch of values contains any values that are subsequently dropped,
the returned status code will be `204`.
2019-03-21 12:20:58 +00:00
Stuart Carnie 2572e3a2be
Merge pull request from influxdata/sgc/18/bp-12710
Back port of data generate improvements
2019-03-20 12:58:49 -07:00
Stuart Carnie a43852958d
chore(gen): Back port improvements and changes from OSS 2.0
Specifically:

* renamed files for consistency between versions
* added `time-interval` schema option
* updated schema example documentation

Back port of improvements from 
2019-03-20 11:01:50 -07:00
Jeff Wendling e67a0242cc tls: fix incorrect tls1.0 version mapping 2019-03-19 11:59:24 -06:00
Stuart Carnie 75ce049571 chore(influx_tools): Remove platform dependency 2019-02-27 09:21:23 -07:00
Stuart Carnie 4ff74ff971 feedback(influx_tools): Add +ve and -ve test cases for processing schema 2019-02-26 16:51:19 -07:00
Stuart Carnie 9b7ffd36ad feat(influx_tools): Add support for describing schema via a TOML file
The `influx_tools generate` command has a new option, `-schema`, for
specifying a TOML file which describes a desired schema.
2019-02-26 16:51:19 -07:00
Ahmed Ashour 926fa7b079 Fix typos () 2019-02-21 08:28:01 -08:00
Jeff Wendling 8e56b3ff1e
Merge pull request from influxdata/jmw-shard-epoch-races
Fix some more shard epoch races
2019-02-19 10:40:09 -07:00
Hercules Mango Churchill c7e43d4cf7 Update changelog 2019-02-19 16:54:57 +00:00
Edd Robinson 67cfa21732
Merge pull request from gpomykala/10540
Fix open/close race in SeriesFile
2019-02-19 16:53:25 +00:00
Jeff Wendling 1d9ce868e2 Fix some more shard epoch races
We're not allowed to access the s.epochs map without holding the
mutex against shard creation and deletion, so create a copy of
all of the epoch trackers we will need while we hold the mutex.
2019-02-19 08:59:13 -07:00
Hercules Mango Churchill 190b7df950 Update changelog 2019-02-18 23:34:42 +00:00
Ben Johnson 89497abd7e
Merge pull request from influxdata/bj-fix-tag-key-value-lock-1.8
Update tagKeyValue mutex to write lock.
2019-02-18 16:34:23 -07:00
Ben Johnson c61db43dc2
Update tagKeyValue mutex to write lock.
This commit changes the read lock to a write lock when calling the
`ids()` function because `ids()` can mutate the underlying series
ids slice.
2019-02-15 09:29:48 -07:00
Hercules Mango Churchill 91ac42815b Update changelog 2019-02-12 23:41:20 +00:00
Jeff Wendling 46dbd94e8a
Merge pull request from influxdata/jmw-clone-cached-ss
Ensure that cached series id sets are Go heap backed
2019-02-12 16:30:15 -07:00