Commit Graph

34647 Commits (7b2e1228691790b4e2f9e4b53f1a474a10eb428b)

Author SHA1 Message Date
greg linton d32385bac9 chore: define template export by name in swagger 2020-09-21 14:24:43 -06:00
Stuart Carnie a0ce7c38ef fix: Use DeleteDatabase to guarantee all files are closed and removed
A bucket is represented as a single database and retention policy and
therefore `DeleteDatabase` is the appropriate API to remove a bucket
from TSDB.

Fixes #19600
2020-09-21 13:05:50 -07:00
Stuart Carnie b17acf8b31 fix: Ensure temporary bucket and test data is removed after each test
This is required to keep the system resources low when running
the Flux end-to-end tests, which create a bucket for each test. A
bucket creates at least 17 files after the first write:

* 8 for the `_series` segment files
* 8 for the `index` log files
* 1 for the `wal`
2020-09-21 13:05:50 -07:00
Timmy Luong fbe56d7e23
feat: add legendOrientationThreshold (#19584)
* feat: add legendOrientationThreshold

* feat: add legendOpacity

* chore: fix float definition in swagger and use single-value context in Resource float64
2020-09-21 11:02:51 -07:00
Jacob Marble f144d8d614
chore(storage): remove storage-team from CODEOWNERS (#19574)
The cloud 2 storage team doesn't "own" OSS code any more. We are still
happy to review storage PRs, but we don't need to review all of them.
2020-09-21 09:32:05 -07:00
Roger Peppe c25d0dde65 fix: chronograf/organizations: avoid nil context with WithValue 2020-09-21 12:08:03 +01:00
Pavel Zavora e1591077cd feat(pkg/csv2lp): use LineReader to report actual line numbers that go's csv.Reader cannot 2020-09-21 07:54:17 +02:00
Pavel Zavora 94d2cb3518 feat(pkg/csv2lp): add LineReader to report correct line numbers 2020-09-20 12:59:27 +02:00
Pavel Zavora 8e2d2ce77b chore(pkg/csv2lp): test csv2lp.CsvToLineProtocol.Comma 2020-09-20 11:24:56 +02:00
Stuart Carnie 46db75d9a9 fix: ShardGroupDuration is updated for retention period updates
Fixes #19518
2020-09-18 07:31:48 -07:00
Jonathan A. Sternberg 025319c387
fix(services/storage): multi measurement queries return all applicable series (#19566)
This fixes multi measurement queries that go through the storage service
to correctly pick up all series that apply with the filter. Previously,
negative queries such as `!=`, `!~`, and predicates attempting to match
empty tags did not work correctly with the storage service when multiple
measurements or `OR` conditions were included.

This was because these predicates would be categorized as "multiple
measurements" and then it would attempt to use the field keys iterator
to find the fields for each measurement. The meta queries for these did
not correctly account for negative equality operators or empty tags when
finding appropriate measurements and those could not be changed because
it would cause a breaking change to influxql too.

This modifies the storage service to use new methods that correctly
account for the above situations rather than the field keys iterator.

Some queries that appeared to be single measurement queries also get
considered as multiple measurement queries. Any query with an `OR`
condition will be considered a multiple measurement query.

This bug did not apply to single measurement queries where one
measurement was selected and all of the logical operators were `AND`
values. This is because it used a different code path that correctly
handled these situations.
2020-09-17 14:28:24 -05:00
Christopher M. Wolff e7cbbaa722
feat: upgrade Flux to v0.83.2 (#19569) 2020-09-16 17:59:15 -07:00
Gershon Shif af0c328095
chore(packaging): build rpm and deb packages (#19567)
- Update CIrcleCI configuration to start release process on an RC build
- Update .goreleaser.yml:
   - Start building armel and armhf binaries and rpm and debian packages.
   - Generate sha256 checksum file.
- launcher.go: do not use `max` module to escape integeroverflow problem for armel and armhf builds
- Start using `v0.142.0` of goreleaser
- Added pre and post install/uninstall scripts for rpm amd deb packages
2020-09-16 12:36:44 -07:00
Stuart Carnie 8753a7fd08 chore: Fix invalid string casts from integers
Newer Go versions generate a compile time error
2020-09-16 11:55:20 -07:00
Stuart Carnie 14c664daa4 chore: Format of url.Error message has changed
Provide a function to generate the error programmatically,
which is resilient to changes in Go versions.
2020-09-16 11:55:20 -07:00
Ayan George ca2055c16c
refactor: Replace ctx.Done() with ctx.Err() (#19546)
* refactor: Replace ctx.Done() with ctx.Err()

Prior to this commit we checked for context cancellation with a select
block and context.Context.Done() without multiplexing over any other
channel like:

  select {
    case <-ctx.Done():
      // handle cancellation
    default:
      // fallthrough
  }

This commit replaces those type of blocks with a simple check of
ctx.Err().  This has the following benefits:

* Calling ctx.Err() is much faster than entering a select block.

* ctx.Done() allocates a channel when called for the first time.

* Testing the result of ctx.Err() is a reliable way of determininging if
  a context.Context value has been canceled.

* fix: Fix data race in execDeleteTagValueEntry()
2020-09-16 12:20:09 -04:00
Roger Peppe f1c5c75369
Merge pull request #19544 from influxdata/rogpeppe-002-label-create-requires-name
fix: http: add required name to LabelCreateRequest
2020-09-15 17:59:26 +01:00
greg linton 6dc785e894 chore: address feedback 2020-09-15 09:33:44 -06:00
Russ Savage 7c76efd6ea
fix(cli): update annotation order to match UI (#19503) 2020-09-14 10:18:29 -07:00
Yoofi Quansah 99bb1bba4d
Merge pull request #19548 from influxdata/yq-issue-19547
chore: remove hardcoded constants for ids
2020-09-14 09:20:45 -07:00
Pavel Závora 2c32938a78
Merge pull request #19466 from influxdata/19452/csv2lp
fix(pkg/csv2lp): do not override existing line part in group annotation
2020-09-12 12:10:14 +02:00
Pavel Závora be8b2a9c9f
Merge pull request #18779 from influxdata/18744/csv2lp
feat(cmd/influx/write): add new processing options and enhancements
2020-09-12 11:47:49 +02:00
Pavel Zavora 1629655a55 chore: update changelog 2020-09-12 11:43:50 +02:00
Pavel Zavora 13a801b830 fix(pkg/csv2lp): do not override existing line part in group annotation #19452 2020-09-12 11:40:54 +02:00
Pavel Zavora 2c25044a8c chore: apply review comments 2020-09-12 11:29:05 +02:00
Pavel Zavora 78fe5c61f9 chore: update changelog 2020-09-12 11:15:58 +02:00
Pavel Zavora 60c4984f51 chore: apply review comments 2020-09-12 11:13:27 +02:00
Pavel Zavora 7fc590fb6f chore: doc only 2020-09-12 11:13:27 +02:00
Pavel Zavora fe2c7dfae0 chore(pkg/csv2lp): improve Test_CsvToLineProtocol_RowSkipped 2020-09-12 11:13:27 +02:00
Pavel Zavora b21b4014e6 feat(pkg/csv2lp): document concat annotation 2020-09-12 11:13:27 +02:00
Pavel Zavora c5d841efdf feat(pkg/csv2lp): add concat annotation 2020-09-12 11:13:27 +02:00
Pavel Zavora 0718c9a53f chore(cmd/influx/write): update option description 2020-09-12 11:13:27 +02:00
Pavel Zavora 90a3a7c8d8 feat(cmd/influx/write): add --errors-file option #18742 2020-09-12 11:13:27 +02:00
Pavel Zavora 05c8a00b8d feat(pkg/csv2lp): add RowSkippedListener to inform about rejected records #18742 2020-09-12 11:13:27 +02:00
Pavel Zavora b51866e7be chore(pkg/csv2lp): improve doc 2020-09-12 11:13:27 +02:00
Pavel Zavora ff96ef04f9 feat(pkg/csv2lp): enhance documentation with strict parsing #18744 2020-09-12 11:13:27 +02:00
Pavel Zavora c2643243f3 feat(pkg/csv2lp): add possibility to parse long and unsignedLong values strictly #18744 2020-09-12 11:13:27 +02:00
Pavel Zavora 14718c9dfc feat(pkg/csv2lp): pass a line number to custom parsing fn #18744 2020-09-12 11:13:27 +02:00
Pavel Zavora 001343d958 feat(pkg/csv2lp): log a warning when loosing precision #18744 2020-09-12 11:13:27 +02:00
Pavel Závora cbc640bc46
Merge pull request #19467 from influxdata/19453/csv2lp
fix(pkg/csv2lp): warn about duplicate tag names #19453
2020-09-12 11:13:01 +02:00
Pavel Zavora e749b8cedf chore: update changelog 2020-09-12 10:36:54 +02:00
Pavel Zavora 238ba1990e fix(pkg/csv2lp): don't allow duplicate tags #19453 2020-09-12 10:34:01 +02:00
greg linton 53b325c7d0 Merge branch 'master' into feat/18733 2020-09-11 14:23:24 -06:00
Alirie Gray 127d894960
Merge pull request #19527 from influxdata/fix-put-variable
fix(variables): use Update function for Put Variable
2020-09-11 12:53:11 -07:00
Yoofi Quansah 2099b64578 chore: total removal of references to hardcoded IDs 2020-09-11 12:29:00 -07:00
Alirie Gray 12039918e4 fix(variables): use Update function for Put Variable 2020-09-11 11:48:11 -07:00
Stuart Carnie 8576d1df99 feat: Implement DELETE FROM and DROP MEASUREMENT
Closes #19416
2020-09-11 11:37:43 -07:00
Stuart Carnie 7e16da8f74 chore: Consolidate `v1/internal` to `internal`
Take the opportunity to combines duplicated types in both packages
under the root `internal` package
2020-09-11 11:37:43 -07:00
Timmy Luong f4c0259906 feat: update BandViewProperties 2020-09-11 10:47:24 -07:00
greg linton 0eb53e0e0b chore: revert notificationEndpoints to be name unique 2020-09-10 17:55:22 -06:00