Commit Graph

35273 Commits (master)

Author SHA1 Message Date
Jeffrey Smith II 77081081b5
feat: port check-schema and merge-schema from 1.x (#23921)
* feat: add check-schema and merge-schema commands to influx inspect

* chore: fix linting

* fix: add warning if fields.idxl is encountered
2022-11-21 10:39:50 -05:00
Jeffrey Smith II 9bf8840a63
fix: update me and users routes to match cloud/documentation (#23837)
* fix: update me and users routes to match cloud/documentation

* fix: handle errors in user routes properly
2022-11-21 10:39:30 -05:00
Jeffrey Smith II f026d7bdaf
fix: Fixes migrating when a remote already exists (#23912)
* fix: handle migrating with already defined remotes

* test: add test to verify migrating already defined remotes

* fix: properly handle Up
2022-11-17 14:23:10 -05:00
Ole Kristian (Zee) 666cabb1f4
fix: fix wrong max age transformation from seconds (#23684)
* fix: fix wrong max age transformation from seconds

* refactor: clarify max age intent

* refactor: remove unnecessary duration
2022-11-16 16:18:43 -05:00
davidby-influx 7ad8fbad22
chore: fix trace message text (#23918) 2022-11-16 08:40:26 -05:00
Nathaniel Cook 07e6ef2839
build(flux): update flux to v0.191.0 (#23913) 2022-11-15 12:57:16 -07:00
Sam Arnold 4de89afd37
refactor: remove dead iterator code (#23887)
* fix: codegen without needing goimports

* refactor: remove dead code
2022-11-09 19:26:12 -05:00
Jeffrey Smith II 46464f409c
fix: Optimize SHOW FIELD KEY CARDINALITY (#23886)
Use the _fieldKeys system iterator
2022-11-09 14:51:41 -05:00
Jeffrey Smith II 8f936e9e6a
Revert "fix: set limited permissions on package installs (#23683)" (#23855)
This reverts commit 8d5f0b52f3.
2022-11-04 15:56:56 -04:00
Jeffrey Smith II 61870e5202
chore: update 2.5 changelog (#23848)
* chore: update 2.5 changelog

* chore: release 2.5.1 influxdb
2022-11-04 15:56:07 -04:00
Christopher M. Wolff 86207fe46a
build(flux): update flux to v0.189.0 (#23853) 2022-11-03 11:03:33 -07:00
Jamie Strandboge e62c8abaa9
chore: upgrade to Go 1.18.8 (#23852) 2022-11-02 17:18:42 -05:00
Dane Strandboge 6fc66acb0a
fix: do not require remoteOrgID in remote config/creation request (#23838) 2022-11-01 09:47:45 -05:00
Christopher M. Wolff 8c23f927b5
build(flux): update flux to v0.188.1 (#23844) 2022-10-31 10:37:46 -07:00
Jeffrey Smith II 9582826b3f
fix: handle a potential nil iterator leading to a panic (#23520)
* fix: handle a potential nil iterator leading to a panic

* chore: cleanup
2022-10-31 08:54:57 -04:00
Sunil Kartikey 1033334482
build(flux): update flux to v0.188.0 (#23836) 2022-10-25 17:56:52 +01:00
Jeffrey Smith II e61485a847
fix: only the latest scraper being run (#23813)
* fix: only the latest scraper being run

This is due to the Golang for-loop variable problem.

* chore: improve code readability
2022-10-20 13:33:41 -04:00
Cyril Bonté 81e2ec617d
fix: enable gzipped responses with the legacy handler (#23805) (#23806)
re-enable gzip compression on the legacy handler, as it was supported in
influxdb 1.x.

Co-authored-by: Cyril Bonté <cyril.bonte@fr.clara.net>
2022-10-20 09:24:05 -04:00
charlesmahler fa393ccb59
chore(readme): add resource links and logo (#23735) 2022-10-20 09:04:22 -04:00
Dane Strandboge 55b7d29e4f
fix: sql scan error on remote bucket id when replication to 1.x (#23826) 2022-10-19 14:51:48 -05:00
Jeffrey Smith II 3ac7a10aa9
fix: downgrading to 2.3 was broken (#23814) 2022-10-19 15:13:39 -04:00
Jamie Strandboge 0389d51429
chore: upgrade to Go 1.18.7 (#23818) 2022-10-18 14:28:33 -05:00
Brandon Pfeifer 89d9207761
chore: update to use scheduled pipeline (2.x) (#23811)
* chore: update to use scheduled pipeline

* chore: add documentation to scheduled pipelines
2022-10-18 12:21:47 -04:00
Sean Brickley a0c3703a49
build(flux): update flux to v0.187.0 (#23812) 2022-10-17 13:46:35 -04:00
Jeffrey Smith II 2ad8995355
fix: improve delete speed when a measurement is part of the predicate (#23786)
* fix: improve delete speed when a measurement is part of the predicate

* test: add test for deleting measurement by predicate

* chore: improve error messaging and capturing

* chore: set goland to use the right formatting style
2022-10-14 15:09:32 -04:00
Jeffrey Smith II 4ed184dd82
fix: fixes an error querying virtual dbrps (#23731)
* fix: fixes an error querying virtual dbrps

When the virtual pointer was set to false, the mappings were being ignored.

* fix: missed part in a rebase

* test: add test for shard mapping virtual dbrps

* fix: do not create virtual mappings for equivalent physical mappings
2022-10-13 14:58:07 -04:00
Jeffrey Smith II a0f1184bb3
fix: manually scheduled task runs now run when expected (#23664)
* fix: run manually scheduled tasks at their scheduled time

* fix: actually use it

* fix: get tests building

* fix: fix tests

* fix: lint
2022-10-13 14:57:57 -04:00
Jonathan A. Sternberg 34254ee040
build(flux): update flux to v0.186.0 (#23784) 2022-10-11 14:38:54 -05:00
Owen Nelson d8553c002e
test(flux): use vanilla flagger for fluxtest (#23762)
* test(flux): set flux flagger in launcher

* test(flux): use default flagger from vanilla

* test(flux): unskip vectorized float tests

* test(flux): remove redundant skips for already-tagged integration tests

* test(flux): remove skips requiring `removeRedundantSortNodes` flag

* test(flux): remove skips requiring `labelPolymorphism` flag
2022-10-05 13:42:38 -07:00
Nathaniel Cook a321e72d15
build(flux): update flux to v0.185.0 (#23775) 2022-10-05 08:25:58 -06:00
Jason Stirnaman aa5c1c0bae
docs: cleanup CONTRIBUTING.md - clarify instructions and output. (#23743)
* docs(contributing): cleanup CONTRIBUTING.md, clarify instructions and output.

* docs(contributing): add more explanation in sequence.

* docs(CONTRIBUTING): revise pull request section

* docs: CONTRIBUTING.md - cleanup.
2022-09-27 14:21:40 -05:00
Jeffrey Smith II f36646d68d
feat: bump to latest UI (#23733) 2022-09-27 15:19:34 -04:00
Owen Nelson eada36bd97
test: remove group skips (#23720)
* test: remove group skips

* test: inline previously extended testcases that broke with added sort

Some tests had a sort added so they'd pass in cloud, vanilla, and OSS.
This also broke some extended testcases here in OSS since pushdown rules
no longer match the plan.

This diff "inlines" the testcase body for each of these so we get our
coverage back, but leaves a FIXME to note that it would be better if we
could somehow thread the needle and retain the extension.
2022-09-27 12:04:36 -07:00
Christopher M. Wolff 635f8d80d5
build(flux): update flux to v0.184.2 (#23758)
* build(flux): update flux to v0.184.2

* chore: skip more Flux acceptance tests

There are issues for each skip detailed in test-flux.sh.
2022-09-27 07:29:43 -07:00
Brandon Pfeifer 43c2e08cf5
chore: upgrade to Go 1.18.6 (#23750) 2022-09-26 10:11:18 -04:00
Jeffrey Smith II 663d43d210
fix: allow backup of all buckets (#23719)
* fix: allow backup of all buckets

* Revert "fix: allow backup of all buckets"

This reverts commit 256ec2f591a36b946f5c46014f378b2b76c9a8de.

* fix: remove 20 item limit in several of the data stores

* test: add a test for 20 item limit
2022-09-20 10:30:38 -04:00
Jamie Strandboge c40ad64604
feat(security): set SameSite=strict on session cookie (#23723)
* feat(security): set SameSite=strict on session cookie

Use SameSite=Strict as a hardening measure against cross-origin attacks.
While browsers have been moving to default to SameSite=Lax, explicitly
setting SameSite ensures that all browsers enforce it consistently.
While 'lax' is a reasonable hardening choice, the cookie is only
required for requests to '/api/...' and we don't expect 3rd party links
into '/api/...', so this stricter setting should be safe in terms of
usability. Furthermore, while our GET APIs are not state-changing, using
'strict' future-proofs us in case we add a state-changing GET API ('lax'
allows cross-origin 'GET' requests for increased usability for read-only
requests).

Also add a comment to SetCORS() lack of Access-Control-Allow-Credentials
as a reminder that its omission is intentional for defense in depth on
when to attach the cookie to a request.

* chore: mention that Lax sends the cookie with other safe HTTP methods
2022-09-15 15:30:19 -05:00
davidby-influx b72848d436
feat: optimize saving changes to fields.idx (#23701) (#23728)
Instead of writing out the complete fields.idx
file when it changes, write out incremental
changes that will be applied to the file on
close and startup.

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

(cherry picked from commit 80c10c8c04)

closes https://github.com/influxdata/influxdb/issues/23703
2022-09-15 12:15:14 -07:00
Cemre Mengu 91623ddc21
docs(logger): fix incorrect doc string (#23442)
Co-authored-by: Jeffrey Smith II <jsmith@influxdata.com>
2022-09-13 11:00:52 -05:00
Abirdcfly c433342830
chore: remove duplicate word in comments (#23685)
Signed-off-by: Abirdcfly <fp544037857@gmail.com>

Signed-off-by: Abirdcfly <fp544037857@gmail.com>
2022-09-13 11:00:52 -05:00
Brandon Pfeifer 1c6fbf9b2c
chore: add protoc-gen script to releng (2.x) (#23697)
* chore: add protoc-gen script to releng

* chore: break cross-container-tag into separate variable

* fix: call GNUMakefile "generate-sources" target instead

This also does a better job at mounting the root directory
in the docker container.
2022-09-13 11:00:51 -05:00
Jeffrey Smith II b51fefdf6d
fix: set limited permissions on package installs (#23683)
* fix: set limited permissions on package installs

* fix: set umask in systemd service to create files as 0750
2022-09-13 11:00:51 -05:00
Jeffrey Smith II 485968cce4
feat: unpin ui to point at latest (#23704) 2022-09-13 11:00:51 -05:00
Jeffrey Smith II b87deb49e5
fix: don't allow creating an auth with instance resources (#23674) 2022-09-13 11:00:51 -05:00
Dane Strandboge 11019d2aa7
fix: check that user IDs are not in use in user create (#23705) 2022-09-13 11:00:51 -05:00
Jonathan A. Sternberg 8f156205bf
build(flux): update flux to v0.181.0 (#23682) 2022-09-13 11:00:48 -05:00
Christopher M. Wolff aa9c49e9f5
build(flux): update flux to v0.180.1 (#23666)
* chore: make tests robust to Flux formatter changes
2022-08-24 11:59:16 -07:00
Renato Costa ee8ca451c4
fix: use copy of loop variable in parallel test (#23669)
This fixes an occurrence of a loop variable being captured in a
parallel test. With the previous code, only the last test case is
actually exercised. To work around this problem, we create a local
copy of the range variable before the parallel test, as suggested in
the Go documentation for the `testing` package:

https://pkg.go.dev/testing#hdr-Subtests_and_Sub_benchmarks

Issue was found automatically using the `loopvarcapture` linter.
2022-08-24 13:22:09 -04:00
Brandon Pfeifer 728070e115
chore: upgrade Rust to 1.63.0 (#23660) 2022-08-24 10:50:57 -04:00
Jeffrey Smith II daaf8665bb
fix: several minor quality issues (#23667)
* fix: invalid assign to nil pointer

* fix: close some files that were being left open

* fix: lint
2022-08-23 15:54:46 -04:00