Commit Graph

35274 Commits (8576cad9e5080cf3e57f83b53bb2d97d4fb87bea)

Author SHA1 Message Date
Daniel Moran 401af4b3ae
feat(flux): enable writing to remote hosts via `to()` and `experimental.to()` (#22634) 2021-10-12 09:35:44 -07:00
Stuart Carnie 0700cc8582
chore: Add subquery tests for compatibility checks with Cloud 2 (#22621) 2021-10-12 10:49:01 +11:00
Daniel Moran 7b7d4f3856
fix(upgrade): don't drop shard-group durations when upgrading DBs (#22650)
Add KV migration to repair missing shard-group durations
2021-10-11 14:43:57 -07:00
Cody Shepherd e75d023eba
build: the update-changelog script should not produce side-effects (#22624) 2021-10-11 09:31:30 -07:00
Sam Arnold 2ecbb68fc3
test: fix DiskSizeBytes flakiness (#22639) 2021-10-08 09:46:58 -04:00
Jonathan A. Sternberg 708e808d00
feat(query/stdlib): update window planner rules for location changes to support fixed offsets (#22635)
The pushdown does not support fixed offsets or non-UTC locations, but it
does now correctly compile and pushdown other windows.
2021-10-07 15:29:38 -05:00
Daniel Moran e12e78aa69
fix: change session cookie name used by UI to avoid conflict with incompatible 2.0.x cookie (#22632) 2021-10-07 15:53:55 -04:00
Sam Arnold a02782c63f
feat: return new operator token during backup overwrite (#22629)
* feat: return new operator token during backup overwrite

* chore: update swagger

* test: e2e restore test with new token
2021-10-07 09:07:09 -04:00
Daniel Moran 15a32a0860
refactor: consolidate session-handling code (#22626) 2021-10-06 22:37:02 -04:00
Sam Arnold 1542d2404f
feat: new recovery subcommand allows creating recovery user/token (#22590)
* feat: influxd recovery-cli allows creating recovery user/token

Closes #12051

* test: do not assert order of users or orgs in list

* fix: code review suggestions from dan

Co-authored-by: Daniel Moran <danxmoran@gmail.com>

* fix: more fixes from dan's review

* chore: depend on tabwriter from influx-cli

* chore: revert onboarding refactor

Co-authored-by: Daniel Moran <danxmoran@gmail.com>
2021-10-06 12:37:36 -04:00
Daniel Moran a4ee58e451
build: refactor lint and race-test jobs to use cross-builder executor (#22584) 2021-10-05 16:27:00 -04:00
Daniel Moran 7c19225bed
feat: implement replication validation (#22581) 2021-10-05 14:34:38 -04:00
Sam Arnold 725794ef28
feat: show measurement database and retention policy wildcards (#22396)
* feat: show measurement database and retention policy wildcards

Closes #22390

* chore: formatting

* test: this commit fails tests with empty database

* fix: show measurements with one empty database
2021-10-05 13:20:15 -04:00
Sean Brickley 5432ca67dc
build(flux): update flux to v0.133.0 (#22615) 2021-10-04 15:48:57 -04:00
Daniel Moran 2795c600c1
feat: add `--storage-write-timeout` flag to set write request timeouts (#22617) 2021-10-04 15:38:09 -04:00
Jonathan A. Sternberg a01d42db37
feat(query/stdlib): update push down window logic for location option (#22607) 2021-10-01 14:27:37 -05:00
Sam Arnold 0a6f562a44
fix: do not allow shard creation to create overlapping shards (#22604) 2021-10-01 08:07:34 -04:00
Christopher M. Wolff ea018dfc21
build(flux): update flux to v0.132.0 (#22592)
* build(flux): update flux to v0.132.0

* chore: suppress staticcheck for use of deprecated proto package

This package will be upgraded by this PR:
https://github.com/influxdata/influxdb/pull/22571
2021-09-28 15:52:16 -07:00
Jamie Strandboge 81cf5d76af
chore(Makefile): allow specifying -gcflags via env (#22440)
Various make targets call '$(GO_BUILD)' but there is no facility for
specifying arguments to 'go build'. As a first step, introduce the
GCFLAGS Makefile variable that when unset, operates as always, but when
set, adds '-gcflags "$(GCFLAGS)"' to go build. Eg, when unspecified,
maintain the current behavior:

$ make
...
env GO111MODULE=on go build -tags ... -ldflags ...

When specified, add the specified -gcflags:

$ GCFLAGS="all=-N -l" make
...
env GO111MODULE=on go build -tags ... -gcflags "all=-N -l" -ldflags ...

This could be useful in various situations such as producing unoptimized
builds (like in the above).

In addition, remove the now unused (since cmd/influx was removed)
GO_BUILD_SM environment variable.
2021-09-24 12:38:10 -05:00
Daniel Moran 1e9a31a675
build: add CI jobs to natively test ARM64, Mac, and Windows (#22539) 2021-09-24 11:03:56 -04:00
Daniel Moran d5b6f8e8a4
fix: allow empty reqeust bodies to write API (#22574) 2021-09-24 09:51:39 -04:00
pierwill 22fa31640b
ci: Verify checksum of goreleaser install script (#22570) 2021-09-23 16:32:27 -05:00
Daniel Moran 4de57500a5
test: add ungrouped-agg case to perf test suite (#22567) 2021-09-23 16:24:33 -04:00
Tristan Su 0f6614ffa7
fix(tsdb): sync series segment to disk after writing (#22545)
Co-authored-by: Tristan Su <suqing.sq@alibaba-inc.com>
2021-09-23 12:09:16 -05:00
davidby-influx 47007f6988
fix: for Windows, copy snapshot files being backed up (#22551) (#22562)
On Windows, make copies of files for snapshots, because
Go does not support the FILE_SHARE_DELETE flag which
allows files (and links) to be deleted while open. This
causes temporary directories to be left behind after
backups.

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

(cherry picked from commit 3702fe8e76)

closes https://github.com/influxdata/influxdb/issues/22557
2021-09-22 13:06:28 -07:00
Daniel Moran e06e34aa56
test: sleep between 2nd and 3rd checks of engine last-modified time (#22554)
And rewrite the test to use testify
2021-09-22 14:14:46 -04:00
Daniel Moran 75b9398e1a
fix: suggest setting flux Content-Type when query fails to parse as JSON (#22537) 2021-09-22 09:35:06 -04:00
Sam Arnold 7dfd7de81f
feat: set X-Influxdb-Version and X-Influxdb-Build headers (#22535)
Closes #20224
Also a forward port of #22038 since I saw the same test failing on 2.x
2021-09-22 07:30:45 -04:00
Daniel Moran 233f277c07
test: check post-compaction series file sizes before reopening (#22534) 2021-09-21 16:48:44 -04:00
William Baker 59f0f13fe4
chore: clean up go.mod and go.sum (#22532) 2021-09-21 12:16:26 -06:00
Paul Hummer 13dc0f41e4
build(flux): update flux to v0.131.0 (#22521) 2021-09-20 12:40:01 -06:00
Timmy Luong 8657a48f6d
chore: add check for procstat (#22511) 2021-09-20 09:39:01 -07:00
Daniel Moran 02246a8c3e
test: wait until time.Now changes before checking timing stats in query controller tests (#22479)
This allows the tests to pass on Windows, where time.Now doesn't update as frequently as it does on other systems
2021-09-20 08:26:16 -04:00
Daniel Moran 1291b1a218
test: update various tests to pass on Windows (#22484)
* Generalize checks for no-such-file errors to pass on Windows
* Close temp tombstone file before trying to delete it in test
* Generalize upgrade tests to work on Windows
2021-09-20 08:25:11 -04:00
William Baker 0c59cd79e3
build: series cardinality perf test (#22509)
* build: series cardinality perf test
2021-09-17 15:14:41 -06:00
Cody Shepherd c44931a06e
build: changelog job should use aws domain to avoid CDN caching (#22502) 2021-09-17 10:43:09 -07:00
William Baker 1f66b3110e
fix: upgrade influxql to latest version & fix predicate handling for show tag values metaqueries (#22500)
* feat: Add WITH KEY to show tag keys

* fix: add tests for multi measurement tag value queries

* chore: fix linter problems

* chore: revert influxql changes to keep WITH KEY disabled

* chore: add TODO for moving flux tests to flux repo

Co-authored-by: Sam Arnold <sarnold@influxdata.com>
2021-09-17 11:14:03 -06:00
William Baker 33afff378c
build: run perf test queries only on specific datasets (#22480)
* build: run perf test queries only on specific datasets

* fix: use new aliases to fix group window transpose
2021-09-16 09:41:06 -06:00
Sean Brickley c66a059101
build(flux): update flux to v0.130.0 (#22486) 2021-09-15 11:47:38 -04:00
Timmy Luong 73043f94da
feat: allow new telegraf input plugins and update toml (#22476) 2021-09-14 14:43:59 -07:00
Daniel Moran 140148edfb
test: close temp sfile before running buildtsi compaction test (#22481) 2021-09-14 17:34:55 -04:00
Cody Shepherd b8a3b4ca5c
chore: persist changelog artifacts to workspace for uploading (#22478) 2021-09-14 14:16:36 -07:00
Daniel Moran e2948d875c
test: skip pkger URI test when running on Windows (#22475) 2021-09-14 10:58:35 -04:00
Daniel Moran d307e0a2dc
chore: delete miscellaneous unused code (#22465)
* Delete unused `CreateFileWithReplacement` function
* Delete unused `http/server.go`
2021-09-13 15:48:17 -04:00
Daniel Moran ccd96929c5
test: don't assume unix paths in reporttsi tests (#22461) 2021-09-13 15:24:10 -04:00
William Baker ec7841b355
feat: support for flux cardinality query (#22441)
* feat: works with custom iterator

* feat: works with existing iterators

* chore: cleanup

* test: consistent assertions for tests

* fix: better log message if trying to filter on the value of a field key

* fix: comment for handling boolean literal; handle false boolean as well

* fix: make time range checking inclusive
2021-09-13 13:20:56 -06:00
Sam Arnold 5015297d40
fix: more expressive errors (#22448)
* fix: more expressive errors

Closes #22446

* fix: server only logging for untyped errors

* chore: fix formatting
2021-09-13 15:12:35 -04:00
William Baker 3e275a123d
feat: multi-measurement query optimization (#22301)
* feat: multi-measurement query optimization
2021-09-13 13:00:08 -06:00
Daniel Moran 6f39255fc8
fix: ensure files are closed before they are deleted or moved in `deletetsm` (#22458)
* Close files before deleting parent dir in tests
* Use platform-independent function to rename output
* Close source TSM file before overwriting it
2021-09-13 14:39:50 -04:00
Daniel Moran 3053af7719
test: skip signals test on Windows (#22454)
And use os.Kill instead of syscall.SIGTERM for portability
2021-09-13 12:49:25 -04:00