Commit Graph

35094 Commits (a40e12b615ed0e0181d0efc7bbd71585ef6d5e0c)

Author SHA1 Message Date
Bucky Schwarz de1bd90f3f
chore: remove annotations and rangeAnnotations flags (#22146) 2021-08-11 11:48:23 -07:00
Paul Hummer 3b4a1e1873
build(flux): update flux to v0.125.0 (#22158) 2021-08-11 09:59:54 -06:00
William Baker 53d2d7c3ef
build: add perf test for fast query (#22148)
* build: add fast iot query perf test
2021-08-10 15:38:08 -06:00
Dane Strandboge c2f6705008
chore: remove some flaky checks from `dump_tsm_test` (#22144)
* comment out and link to issue #22145
2021-08-10 14:43:52 -05:00
Greg 7aaba338b2
feat: add route to return platform known resources (#22135) 2021-08-10 09:18:06 -06:00
Daniel Moran 43f5aefe6c
build: include query-format in EC2 perftest instance names (#22134) 2021-08-09 15:42:27 -04:00
Dane Strandboge c960e11dc7
chore: fix dump_tsm test failing (#22130)
* chore: fix dump_tsm test missing flag
* chore: flush written data with multiple tested keys
2021-08-09 14:24:06 -05:00
Daniel Moran b4170a9d34
build: parallelize flux and influxql perf tests (#22118) 2021-08-09 14:07:01 -04:00
Daniel Moran 34d73cfd88
build: remove file_tag from perf-test telegraf config (#22122) 2021-08-09 14:05:11 -04:00
Daniel Moran 817fae2a9a
build: replace general perf tests with aggregate tests, refactor script (#22068) 2021-08-09 10:23:06 -04:00
Daniel Moran 22c6b78c62
build: fix generation when vendoring dependencies (#22089) 2021-08-06 15:06:36 -04:00
Daniel Moran 8282fbac77
build: revert renaming of influxd-only release artifacts (#22086) 2021-08-06 14:45:29 -04:00
Daniel Moran e15b15b9c2
build: re-add branch as a tag in perftest results (#22050) 2021-08-05 11:59:45 -04:00
William Baker 886dfee91b
chore: add metaquery perf tests (#22008)
* build: metaquery perf tests

* fix: add scale string and seed to data file name

* fix: adjust telegraf outputs

* fix: fix force_compaction func

* fix: dont overwrite existing result files
2021-08-05 09:03:39 -06:00
davidby-influx 16b737dea4
fix: copy names from mmapped memory before closing iterator (#22040) (#22059)
This fix ensures that memory-mapped files are not released
before pointers into them are copied into heap memory.
MeasurementNamesByExpr() and MeasurementNamesByPredicate() can
cause panics by copying memory from mmapped files that have been
released. The functions they call use iterators to files which
are closed (releasing the mmapped files) before the memory is
safely copied to the heap.

closes https://github.com/influxdata/influxdb/issues/22000

(cherry picked from commit a989f8f8b6)

closes https://github.com/influxdata/influxdb/issues/22002
2021-08-04 15:58:20 -07:00
William Baker 2339432132
chore: remove duplicate flux test (#22035)
* chore: remove duplicate flux test

* test: convert to a pushdown test
2021-08-04 08:38:43 -06:00
Paul Hummer b6966de6c3
build(flux): update flux to v0.124.0 (#22023) 2021-08-03 11:47:56 -06:00
Cody Shepherd 693f3212d3
chore: set rust version to the same as latest tag from flux (#21996)
* chore: set rust version to the same as latest tag from flux

* chore: parse rust version from flux tag targeted by go.mod
2021-08-03 07:23:01 -07:00
William Baker 3f7b996a10
chore: delete the rest of chronograf (#21998)
* chore: deleted the rest of chronograf

* chore: tidy
2021-08-02 09:02:54 -06:00
mcfarlm3 3c1d841df6
chore: add unit test coverage to inspect dump-wal (#21994)
* chore: add unit test coverage to inspect dump-wal

* chore: ran make fmt

* refactor: small styling change in conditional statement

* refactor: passed cobra cmd as pointer instead of an object

Co-authored-by: Michelle McFarland <michellemcfarland@Michelles-MacBook-Pro.local>
2021-07-30 15:32:46 -07:00
Daniel Moran 568c564182
build: update name of new CLI deb/rpm package (#21975) 2021-07-30 10:06:57 -04:00
William Baker 11e5ce0dd3
feat: enable notebooks and annotations (#21972)
* feat: remove notebooks feature flags

* feat: turn on annotations feature flag

* chore: removed unused UI feature flags

* docs: add line to CHANGELOG about notebooks and annotations

* chore: update CHANGELOG
2021-07-29 16:32:12 -06:00
Dane Strandboge 09f5f48aeb
chore: add test cases for `inspect dump-tsm` (#21956) 2021-07-29 16:35:01 -05:00
Jonathan A. Sternberg d0b1f5a80e
feat: update flux components to use flux/array instead of arrow/array (#21971)
This updates the flux integration to use the `flux/array` package rather
than directly using the `arrow/array` package.

Flux recently switched to wrapping the array types from arrow and
creating its own array package to be used for table columns instead of
directly referencing the arrow package. This allows us to keep a
consistent interface, but potentially change internal implementations
without changing downstream consumers. Most recently, the
`*array.String` type has some of its own optimizations for certain array
patterns.

This change updates the flux integration to use the new API.
2021-07-29 15:31:31 -05:00
William Baker 8e80798c33
fix: field metaqueries take fast path if predicate is only on `_measurement` (#21962)
* fix: field metaqueries take fast path if predicate is only on `_measurement`

* chore: update CHANGELOG

* test: add test for fields with measurement predicate
2021-07-29 13:57:06 -06:00
Dane Strandboge 52ccb238af
chore: deletetsm command tests (#21949) 2021-07-29 13:32:06 -05:00
William Baker 4db7978b32
feat(telemetry): Do not record telemetry data for invalid requests; replace invalid static asset paths with a slug (#21958)
* feat: record telemetry data only on successful response codes

* feat: re-write request path in file handler

* fix: use a slug for the replacement path

* chore: update CHANGELOG

* fix: report for 5XX also

* fix: address review comments
2021-07-29 10:22:11 -06:00
Daniel Moran 5d84c602c8
build: upgrade staticcheck, fix new linter warnings (#21957) 2021-07-27 20:37:23 -04:00
William Baker 096a478ff6
fix: return 404 instead of links page on bad /api/v2 requests (#21950)
* fix: return 404 instead of links page on bad /api/v2 requests

* chore: update CHANGELOG
2021-07-27 11:35:29 -06:00
Daniel Moran 9d81f4a096
fix: prevent silently dropped writes with overlapping shards (#21946)
Co-authored-by: Geoffrey Wossum <gwossum@influxdata.com>
2021-07-27 12:15:08 -04:00
mcfarlm3 9f13f1c309
feat: port influxd inspect build-tsi (#21936)
* feat: port influxd inspect build-tsi

* refactor: changes based on code review, not including logging changes

* refactor: improved logging based on code review

* chore: updated CHANGELOG.md

Co-authored-by: Michelle McFarland <michellemcfarland@Michelles-MacBook-Pro.local>
2021-07-27 08:26:22 -07:00
Jamie Strandboge bf5965d22b
chore: upgrade to golang-jwt 3.2.1 to fix CVE-2020-26160 (#21925)
CVE-2020-26160[0] is an access restriction bypass under certain
circumstances when validating audience checks. The original
dgrijalva/jwt-go project is no longer maintained[1] and will not be
issuing a fix for this CVE[2]. Instead, they have transferred ownership
to golang-jwt/jwt[2][3][4].

The following was performed:

1. update chronograf and jsonweb to import golang-jwt/jwt
2. go mod edit -require github.com/golang-jwt/jwt@v3.2.1+incompatible
3. go mod edit -droprequire github.com/dgrijalva/jwt-go
4. go mod tidy
5. make
6. make test

References:
[0] https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2020-26160
[1] dgrijalva/jwt-go#462
[2] dgrijalva/jwt-go#463
[3] https://github.com/dgrijalva/jwt-go/blob/master/README.md
[4] https://github.com/golang-jwt/jwt
2021-07-23 15:19:11 -05:00
Daniel Moran 8dc74f1132
build: update deb and rpm names to match 2.0.8 (#21940) 2021-07-23 15:01:25 -04:00
Greg f9914e8908
chore: add route to delete individual secret (#21938) 2021-07-23 12:44:41 -06:00
Daniel Moran eeeb886d65
build: recommend influx-cli in packaging, add section to README (#21875) 2021-07-23 12:05:02 -04:00
Cody Shepherd 035e11e3ca
chore: perftests should use API instead of influx cli (#21909) 2021-07-22 11:04:47 -07:00
pierwill d8611bfcd9
build: verify checksum of Go download in CI (#21911) 2021-07-22 11:47:59 -05:00
William Baker e7685fff01
feat: add `ui-disabled` flag to run server with UI disabled (#21910)
* feat: add `ui-disabled` flag to run server with UI disabled

* chore: update CHANGELOG
2021-07-21 19:52:57 -06:00
davidby-influx a78729b2ff
chore: add logging to compaction (#21707) (#21900)
Compaction logging will generate intermediate information on
volume of data written and output files created, as well as
improve some of the anti-entropy messages related to compaction.

Closes https://github.com/influxdata/influxdb/issues/21704

(cherry picked from commit 73bdb2860e)

Closes https://github.com/influxdata/influxdb/issues/21706
2021-07-21 09:43:21 -07:00
mcfarlm3 3b86c32468
feat: port `influxd inspect dump-wal` (#21888)
* feat: porting influxd inspect dump-wal from 1.x

* refactor: adapted 1.x logic to cobra command syntax

* refactor: improved clarity of printed output and help documentation

* chore: ran make fmt

* chore: updated CHANGELOG.md

* refactor: made small changes suggested in code review
2021-07-21 09:15:37 -07:00
Daniel Moran 858be90139
fix: regenerate protos using gogo 1.3.2 (#21880)
* Regenerate protos using gogo 1.3.2
* Add protos to generate, add checkgenerate to CI
* Address proto warning
* Add generator tooling to Makefile
* Delete recursive Makefiles, simplify generation run by goreleaser
* Use env bash for fetch-ui-assets
* Add static-data to clean target
2021-07-20 15:11:46 -04:00
davidby-influx dd34f5fd9d
chore: add more logging
tsdb.Engine.IsIdle and tsdb.Engine.Digest now return a reason string for why the engine & shard are not idle.
Callers can then use this string for logging, if desired. The returned reason does not allocate memory, so the
caller may want to add the shard ID and path for more information in the log. This is intended to be used in
calls from the anti-entropy service in Enterprise.

(cherry picked from commit bf45841359)

fixes https://github.com/influxdata/influxdb/issues/21448

(cherry picked from commit c8da9bafbf)

closes https://github.com/influxdata/influxdb/issues/21894
2021-07-20 11:57:52 -07:00
Dane Strandboge 0136c7e63d
feat: port `influx inspect report-tsm` to 2.x (#21814) 2021-07-20 12:08:30 -05:00
Daniel Moran 4d76491746
chore: delete as many files from chronograf/ as we can to still build (#21893) 2021-07-20 12:33:22 -04:00
Cody Shepherd 7ea348db35
chore: enable query performance tests (#21892) 2021-07-20 09:05:06 -07:00
Daniel Moran abc337a07c
chore: delete more unused chronograf code (#21889) 2021-07-20 11:13:56 -04:00
William Baker 19047b95b7
fix: task scheduler test uses a fixed time (#21884)
* fix: task scheduler test uses a fixed time

* fix: use a string constant for time format
2021-07-20 08:35:06 -06:00
Daniel Moran 94738dbf34
chore: delete more unused chronograf code (#21881) 2021-07-19 16:48:37 -04:00
Faith Chikwekwe 9ff953c400
build(flux): update flux to v0.123.0 (#21879)
* build(flux): update flux to v0.123.0

* fix(cmd/influxd/launcher): modify selector aggregate tests to use create empty false

Co-authored-by: Jonathan A. Sternberg <jonathan@influxdata.com>
2021-07-19 13:20:32 -07:00
mcfarlm3 5d8c0b4b17
feat: port `influxd inspect report-tsi` to 2.x (#21788)
* feat: port influxd inspect report-tsi

* chore: restored tsi1.IsIndexDir() functionality

* refactor: changed inspect report-tsi to work with 2.x file system structure

* chore: fixed output tab alignment

* chore: ran make fmt

* chore: ran make fmt on changed file after resolving merge conflicts

* refactor: made changes based on code review

* refactor: avoiding defer build-up in loop

* refactor: replaced path with filepath and added shardIdx closures

* chore: updated changelog

* refactor: handled shardIdx closures in error case

Co-authored-by: Michelle McFarland <michellemcfarland@Michelles-MacBook-Pro.local>
2021-07-19 08:37:28 -07:00