Commit Graph

34166 Commits (239331c1ae26ed5a65b28cf8c94a3b6afb1b3a33)

Author SHA1 Message Date
Roger Peppe 239331c1ae chore: kit/io: improve LimitedReadCloser
A fairly minor change, but this saves two allocations every time
points are written to the API (one allocation for the embedded io.LimitReader,
and one allocation to create the `close` closure).

Also fix the code so that it actually limits to the exact requested number of bytes
rather than one more. We don't really need to layer on top of io.LimitReader,
as that code is fairly minimal.
2020-09-28 18:39:45 +01:00
Russ Savage bc4bae3738
fix(middleware): adding PATCH to access control allow methods (#19637)
* fix(middleware): adding PATCH to access control allow methods

* chore(changelog): added PATCH change
2020-09-24 11:49:00 -07:00
Stuart Carnie e405398ac1 chore: Update changelog 2020-09-24 11:11:46 -07:00
Stuart Carnie 78d0262217 fix: Remove incorrect implementation of delete APIs and disable HTTP API
This commit removes incorrect implementations of the `DeleteBucket`
and `DeleteBucketRangePredicate` APIs from the storage package,
which remained after the transition to the tsdb 1.x storage engine.

Secondly, this PR utilizes the `ENotImplemented` error code to inform
users which call the `/api/v2/delete`
2020-09-24 11:11:46 -07:00
Stuart Carnie 9c4dfed391 feat: Add ENotImplemented error code
This is more explicit that EInternal, allowing APIs to indicate
a potentially temporary status of "501 Not implemented"
2020-09-24 11:11:46 -07:00
Bucky Schwarz 9b61d7efc5 chore: update eslint to force curly braces 2020-09-23 16:02:55 -07:00
Gershon Shif d8a10e5311
chore: update circleci config to use golang:1.15 images (#19624)
* chore: update circleci config to use golang:1.15 images

* fix: Update Go version and use temporary override for Arrow

The Arrow override is to fix race detection problem. Once the
Arrow PR merges, this override can be removed.

Co-authored-by: Stuart Carnie <stuart.carnie@gmail.com>
2020-09-23 14:07:13 -07:00
pierwill b9fae88159
Merge pull request #19625 from influxdata/pierwill-patch-strict
docs: Edit csv2lp README
2020-09-23 10:48:55 -07:00
pierwill feacde0dca
docs: Edit csv2lp README
s/prepend/append in `:strict`
2020-09-23 10:25:32 -07:00
Greg 85d75e3d4e
feat(pkger): add ability to export resources by name from cli (#19457)
* feat(pkger): add ability to export dashboards by name

* chore: cleanup types

* chore: actually restrict exported dashboards to specified name

* feat: export buckets by name

* feat: export checks by name

* feat: export labels by name

* feat: export notification endpoints by name

* feat: export notification rules by name

* feat: export tasks by name

* feat: export telegraf configs by name

* feat: export variables by name

* chore: remove name from service clone org resources

these functions are not hit by the cli

* chore: update old tests and add new tests

* chore: revert notificationEndpoints to be name unique

* chore: address feedback

* chore: define template export by name in swagger

* chore: proper swagger syntax

* chore: remove crufty comments

* chore: fix typo in cli flag

* chore: update changelog
2020-09-23 11:01:09 -06:00
Gershon Shif d56066cc9e
chore(build): packages signing (#19619)
- add `signs` section to goreleaser to sigh all of the artifacts
- add importing of the provate key that is needed to sign p ackages
2020-09-23 09:58:08 -07:00
Greg c29dfc1590
fix: update chromedriver version (#19618)
nightly selenium tests were failing to run due to chromedriver only supporting chrome 83. somewhere a docker image was updated where that version got bumped. this update allows the tests to run.
2020-09-22 16:49:56 -06:00
Bucky Schwarz a837d45e2f chore(community-templates): update telegraf linking behavior 2020-09-22 15:33:30 -07:00
Bucky Schwarz 1e080e0440 test(community-templates): update e2e tests to be less coupled to real templates
this is a reproduction of: d6c9186999
2020-09-22 15:33:30 -07:00
greg linton 9c9863051f chore: update changelog 2020-09-22 11:51:38 -06:00
greg linton 724de9d0d1 chore: fix typo in cli flag 2020-09-22 11:49:26 -06:00
greg linton 214625e7c0 chore: remove crufty comments 2020-09-22 10:22:55 -06:00
greg linton bd834ac74d chore: proper swagger syntax 2020-09-22 09:50:25 -06:00
Roger Peppe 62af80f418
Merge pull request #19597 from influxdata/rogpeppe-004-avoid-nil-context
fix: chronograf/organizations: avoid nil context with WithValue
2020-09-22 16:16:26 +01:00
Roger Peppe 1bc54c7bfd
Merge pull request #19598 from influxdata/rogpeppe-005-storage-close-pointswriter
fix: storage: close PointsWriter when Engine is closed
2020-09-22 16:16:07 +01:00
Roger Peppe 3803bd8e26 fix: storage: close PointsWriter when Engine is closed
The PointsWriter has a Close method which seems like it should
be called when the Engine is shut down.
2020-09-22 15:42:50 +01:00
greg linton 13cb2927bb Merge branch 'master' into feat/18733 2020-09-21 17:21:06 -06:00
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
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