Commit Graph

14591 Commits (fbfd4b46514062ce8688337a07d64d18d81658d9)

Author SHA1 Message Date
Gunnar Aasen 707d5ed3ca Another try 2019-07-12 09:08:40 -07:00
Gunnar Aasen 80af94b047 Another try at the Jenkinsfile syntax 2019-07-12 08:59:12 -07:00
Gunnar Aasen 893bede37c Add GOCACHE env to Jenkinsfile 2019-07-12 00:42:13 -07:00
Gunnar Aasen 86f78523cc feat(go): Update Go version to 1.12 2019-07-11 12:52:36 -07:00
Jonathan A. Sternberg 2fccaaad24
Remove a debugging println call (#14297) 2019-07-10 11:47:24 -05:00
Edd Robinson 0ff7fb96b1
Merge pull request #14266 from influxdata/er-fix-fields
fix(storage): Fix issue where fields re-appear
2019-07-09 15:47:47 +01:00
Max U c6c0a5d3b1 change log level from info to error 2019-07-08 14:52:53 -04:00
Adam Perlin b8668c325a
Merge pull request #14201 from influxdata/influx-verify-panic-fix
fix(storage): replace panic with error in influx_inspect verify
2019-07-08 09:00:17 -07:00
Mark Rushakoff fdc3a6e5ef
Merge pull request #14270 from influxdata/mr-18-remove-println
Remove stray fmt.Println in tsm1.StringArrayEncodeAll
2019-07-08 08:07:48 -07:00
Mark Rushakoff 2dfafe822c Remove stray fmt.Println in tsm1.StringArrayEncodeAll
It was introduced in #13699.

Updates #14265.
2019-07-05 15:58:53 -07:00
Hercules Mango Churchill c822e2c8e7 Update changelog 2019-07-05 16:27:15 +00:00
Edd Robinson ec882c3ac9
Merge pull request #14232 from influxdata/er-fix-wal
Prevent data from re-appearing on startup in some cases
2019-07-05 17:26:56 +01:00
Edd Robinson f4413d726b test(storage): skip flaky test 2019-07-05 15:07:09 +01:00
Edd Robinson 9bfd1119b9 fix(storage): Fix issue where fields re-appear
Fixes #10052

This commit fixes an issue where field keys would reappear in results
when querying previously dropped measurements.

The issue manifests itself when duplicates of a new series are inserted
into the `inmem` index. In this case, a map that tracks the number of
series belonging to a measurement was incorrectly incremented once for
each duplication of the series. Then, when it came time to drop the
measurement, the index assumed there were several series belonging to
the measurement left in the index (because the counter was higher than
it should be). The result of that was that the `fields.idx` file (which
stores a mapping between measurements and field keys) was not truncated
and rebuilt. This left old field keys in that file, which were then
returned in subsequent queries over all field keys.
2019-07-05 12:24:03 +01:00
Max U 9091d72ba7 initial commit for 1.8 2019-07-02 13:18:20 -04:00
Edd Robinson 43e144a923 fix(storage): ensure WAL size correctly set on startup 2019-06-28 16:20:45 +01:00
Edd Robinson ecff62b9e4 test(storage): add test for reproducing #14229 2019-06-28 16:18:32 +01:00
Jonathan A. Sternberg 7ca4e644f1
Update flux version to v0.33.2 (#14208)
The flux in influxdb has been upgraded to use v0.33.2. A lot of
interfaces for the storage engine were changed during this so code had
to change to accomodate the new interfaces and remove the old ones.

Included in this commit is a patch file for the changes that were made.
A patch was generated for the following packages:

* `flux/stdlib/influxdata/influxdb`
* `storage/reads`
* `tsdb/cursors`

These are the three packages that are in common with version 2 of the
database and the first of these packages contains the specific
implementations that are used for version 1.

It is very possible that the next time we upgrade this, the patch will
not apply cleanly just like it wouldn't have applied cleanly to this
update. The patch is mostly meant to document exactly what changed
during the copy over to help ensure we don't forget things when adapting
the interfaces.

Add a patch file to hopefully make this easier in the future
2019-06-27 13:52:02 -05:00
Adam Perlin 23bb49981a fix(storage): replace panic with error in influx_inspect verify 2019-06-25 12:11:42 -07:00
Stuart Carnie aa7deb48e3
Merge pull request #13699 from influxdata/sgc/bug/13687
Don't panic when encoding string blocks and length of source slice is too large
2019-06-07 12:57:38 -07:00
Stuart Carnie a0f7c15b08
chore: Fix constant for 32-bit architecture 2019-06-07 11:00:13 -07:00
Stuart Carnie 86734e7fcd
fix(storage): Don't panic when length of source slice is too large
StringArrayEncodeAll will panic if the total length of strings
contained in the src slice is > 0xffffffff. This change adds a unit
test to replicate the issue and an associated fix to return an error.

This also raises an issue that compactions will be unable to make
progress under the following condition:

* multiple string blocks are to be merged to a single block and
* the total length of all strings exceeds the maximum block size that
  snappy will encode (0xffffffff)

The observable effect of this is errors in the logs indicating a
compaction failure.

Fixes #13687
2019-06-04 17:05:01 -07:00
Stuart Carnie f1e1164e96
fix(storage): Don't panic when length of source slice is too large
StringArrayEncodeAll will panic if the total length of strings
contained in the src slice is > 0xffffffff. This change adds a unit
test to replicate the issue and an associated fix to return an error.

This also raises an issue that compactions will be unable to make
progress under the following condition:

* multiple string blocks are to be merged to a single block and
* the total length of all strings exceeds the maximum block size that
  snappy will encode (0xffffffff)

The observable effect of this is errors in the logs indicating a
compaction failure.

Fixes #13687
2019-05-30 08:23:58 -07:00
Lorenzo Affetti 37e19677b5
Merge pull request #13949 from influxdata/fix/rpm-verify
fix(releng): update releng to match build.py
2019-05-20 13:58:16 -07:00
Lorenzo Affetti f55d2e8c42 fix(releng): update releng to match build.py 2019-05-17 10:49:57 +02:00
Stuart Carnie 0522e025e1
Merge pull request #13696 from diraol/fix_version_output
Fix version output (v1.8)
2019-05-16 15:34:47 -07:00
Jacob Marble 12a52a0321
fix(series file): Sync series segment after truncate (#13836) 2019-05-09 08:29:25 -07:00
Lorenzo Affetti e10a0fa2d9
Merge pull request #13397 from influxdata/fix/rpm-verify
fix(package): make rpm verify pass after installation
2019-04-30 18:54:34 +02:00
Lorenzo Affetti 83b1f48112 fix(package): make rpm verify pass after installation 2019-04-30 12:10:40 +02:00
Diego Rabatone Oliveira decbf4e62d Remove query language from version command
There is no need to print such messages in the CLI output of the version
flag. Besides being unnecessary, it makes harder to automate some tests
for those installing influxDB CE by themselves and/or automating
dockerfiles.

Fix influxdata/influxdb/issues/10451
2019-04-29 13:51:30 -03:00
Hercules Mango Churchill 8c471993f7 Update changelog 2019-04-23 19:39:48 +00:00
Adam cd3866de98
Merge pull request #13567 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 #13540 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 #13501 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 (#13459) 2019-04-18 10:44:15 -04:00
Jeff Wendling db762e277b
Merge pull request #13458 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 #13442 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 #13340 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 #13205 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 #13169 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