Commit Graph

496 Commits (db/which-way-lock)

Author SHA1 Message Date
WeblWabl 769049bef5
chore: upgrade to influxdata/influxql v1.2.0 (#24764) (#26155) 2025-03-17 18:52:30 -05:00
Martin Hilton a48adbbad7
build(flux): update flux to v0.196.1 (#26037) 2025-02-21 12:48:46 -06:00
WeblWabl 73722a5b66
feat: upgrade go to 1.23.5 (#25925)
* feat: This PR updates the go toolchain from 1.22.11 to 1.23.5
2025-01-28 12:58:28 -06:00
Jamie Strandboge df178f74d3
chore: upgrade go toolchain to 1.22.11 (#25920) 2025-01-27 11:39:09 -06:00
WeblWabl 06ab224516
fix(influxd): update xxhash, avoid stringtoslicebyte in cache (#578) (#25622)
* fix(influxd): update xxhash, avoid stringtoslicebyte in cache (#578)

* fix(influxd): update xxhash, avoid stringtoslicebyte in cache

This commit does 3 things:

* it updates xxhash from v1 to v2; v2 includes a assembly arm version of
  Sum64
* it changes the cache storer to write with a string key instead of a
  byte slice. The cache only reads the key which WriteMulti already has
as a string so we can avoid a host of allocations when converting back
and forth from immutable strings to mutable byte slices. This includes
updating the cache ring and ring partition to write with a string key
* it updates the xxhash for finding the cache ring partition to use
Sum64String which uses unsafe pointers to directly use a string as a
byte slice since it only reads the string. Note: this now uses an
assembly version because of the v2 xxhash update. Go 1.22 included new
compiler ability to recognize calls of Method([]byte(myString)) and not
make a copy but from looking at the call sites, I'm not sure the
compiler would recognize it as the conversion to a byte slice was
happening several calls earlier.

That's what this change set does. If we are uncomfortable with any of
these, we can do fewer of them (for example, not upgrade xxhash; and/or
not use the specialized Sum64String, etc).

For the performance issue in maz-rr, I see converting string keys to
byte slices taking between 3-5% of cpu usage on both the primary and
secondary. So while this pr doesn't address directly the increased cpu
usage on the secondary, it makes cpu usage less on both which still
feels like a win. I believe these changes are easier to review that
switching to a byte slice pool that is likely needed in other places as
the compiler provides nearly all of the correctness checks we need (we
are relying also on xxhash v2 being correct).

* helps #550

* chore: fix tests/lint

* chore: don't use assembly version; should inline

This 2 line change causes xxhash to use a purego Sum64 implementation
which allows the compiler to see that Sum64 only read the byte slice
input which them means is can skip the string to byte slice allocation
and since it can skip that, it should inline all the calls to
getPartitionStringKey and Sum64 avoiding 1 call to Sum64String which
isn't inlined.

* chore: update ci build file

the ci build doesn't use the make file!!!

* chore: revert "chore: update ci build file"

This reverts commit 94be66fde03e0bbe18004aab25c0e19051406de2.

* chore: revert "chore: don't use assembly version; should inline"

This reverts commit 67d8d06c02e17e91ba643a2991e30a49308a5283.

(cherry picked from commit 1d334c679ca025645ed93518b7832ae676499cd2)

* feat: need to update go sum

---------

Co-authored-by: Phil Bracikowski <13472206+philjb@users.noreply.github.com>
2024-12-05 16:57:26 -06:00
WeblWabl 514e24752c
feat: Upgrade go to 1.22.7 (#25586)
* feat: Upgrade go to 1.22.7
2024-11-22 16:47:31 -06:00
Martin Hilton 9b19ca7714
build(flux): update flux to v0.195.2 (#25244) 2024-08-14 14:30:32 -05:00
Martin Hilton f4ef091f50
build(flux): update flux to v0.195.1 (#25052) 2024-06-12 05:52:17 +01:00
Martin Hilton fd0531761c
feat: update flux to latest head (#25051)
* feat: update flux to latest head

Flux has updated some dependencies, including prometheus. Prometheus
has changed in some incompatible ways. Update the flux dependency
to a newer version with the updated prometheus dependency and apply
some small fixes to make everything build. This is in preparation
for a flux release later in the week.

The biggest change is in some tests that were using runtime.DeepEqual
to check the correctness of prometheus metrics. The internals of
these types have changed such that this is not a safe thing to do
anymore. The test now verifies the string representations, as
produced by String(), match.

* fix: update CI script

The scripts/ci/check-system-go-matches-go-mod.sh is failing because
newer go toolchains include the bugfix version in go.mod's go
directive. Update the script to check the major and minor versions
reported by both tools match.
2024-06-11 05:49:52 +01:00
davidby-influx 73f694ac3c
chore: update google.golang.org/protobuf to 1.33.0 (#24940)
* chore: update google.golang.org/protobuf to 1.33.0

closes https://github.com/influxdata/edge/issues/627

* chore: update protoc
2024-05-01 10:16:23 -04:00
Jamie Strandboge 4a5c1cf52c
chore: update golang.org/x/net to v0.23.0 (#24928)
Performed:
$ go mod edit golang.org/x/net@v0.23.0
$ go mod tidy
2024-04-19 12:12:37 -05:00
Brandon Pfeifer 88345c3e9d
chore: upgrade to go 1.21.6 (main-2.x) (#24709)
* chore: upgrade to go1.21.6

* fix: update deprecated test apparatus
2024-03-05 12:58:59 -05:00
Jamie Strandboge 02156eaf3f
fix: update logrus to 1.9.3 (#24716)
Closes #24708
2024-02-29 14:23:01 -06:00
davidby-influx 0dc48b1260
fix: prevent retention service creating orphaned shard files (#24530) (#24547)
Under certain circumstances, the retention service can fail to delete shards from
the store in a timely manner. When the shard groups are pruned based on age, this
leaves orphaned shard files on the disk. The retention service will then not attempt
to remove the obsolete shard files because the meta store does not know about them.
This can cause excessive disk space usage for some users.

This corrects that by requiring shards files be deleted before they can be removed
from the meta store.

fixes: #24529
(cherry picked from commit 7bd3f89d18)
closes https://github.com/influxdata/influxdb/issues/24545

Co-authored-by: Geoffrey Wossum <gwossum@influxdata.com>
2024-01-04 16:56:56 -08:00
Martin Hilton 924735a96d
build(flux): update flux to v0.194.5 (#24477) 2023-12-04 08:35:13 +00:00
Martin Hilton 08b4361b36
build(deps): upgrade flux to v0.194.4 (#24431)
Update the flux version to v0.194.4.
2023-10-26 18:16:15 +01:00
Brandon Pfeifer 39012a8ed5
chore: upgrade golang 1.20.5 -> 1.20.10 (#24415) 2023-10-12 12:46:44 -04:00
Christopher M. Wolff 4acc733019
build(flux): update flux to v0.194.3 (#24252) 2023-05-30 14:21:20 -07:00
dependabot[bot] 398660438f
build(deps): bump github.com/docker/distribution (#24230)
Bumps [github.com/docker/distribution](https://github.com/docker/distribution) from 2.8.1+incompatible to 2.8.2+incompatible.
- [Release notes](https://github.com/docker/distribution/releases)
- [Commits](https://github.com/docker/distribution/compare/v2.8.1...v2.8.2)

---
updated-dependencies:
- dependency-name: github.com/docker/distribution
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-05-15 15:03:30 -05:00
Christopher M. Wolff 3eb091d2e7
build(flux): update flux to v0.194.1 (#24203) 2023-04-17 15:09:43 -07:00
Martin Hilton e237d01fc8
build(flux): update flux to v0.194.0 (#24186) 2023-04-11 10:56:17 +01:00
dependabot[bot] 85f725f8b9
build(deps): bump github.com/docker/docker (#24179)
Bumps [github.com/docker/docker](https://github.com/docker/docker) from 23.0.0+incompatible to 23.0.3+incompatible.
- [Release notes](https://github.com/docker/docker/releases)
- [Commits](https://github.com/docker/docker/compare/v23.0.0...v23.0.3)

---
updated-dependencies:
- dependency-name: github.com/docker/docker
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-04-05 10:03:06 -04:00
dependabot[bot] eac0ee0acc
build(deps): bump github.com/opencontainers/runc from 1.1.3 to 1.1.5 (#24163)
Bumps [github.com/opencontainers/runc](https://github.com/opencontainers/runc) from 1.1.3 to 1.1.5.
- [Release notes](https://github.com/opencontainers/runc/releases)
- [Changelog](https://github.com/opencontainers/runc/blob/v1.1.5/CHANGELOG.md)
- [Commits](https://github.com/opencontainers/runc/compare/v1.1.3...v1.1.5)

---
updated-dependencies:
- dependency-name: github.com/opencontainers/runc
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-03-29 14:36:44 -04:00
fuyou 22d698bd7e
fix(sec): upgrade containerd to 1.6.18 (#24129) 2023-03-09 12:39:30 -05:00
dependabot[bot] 23446cc371
build(deps): bump golang.org/x/net from 0.5.0 to 0.7.0 (#24112)
Bumps [golang.org/x/net](https://github.com/golang/net) from 0.5.0 to 0.7.0.
- [Release notes](https://github.com/golang/net/releases)
- [Commits](https://github.com/golang/net/compare/v0.5.0...v0.7.0)

---
updated-dependencies:
- dependency-name: golang.org/x/net
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-02-28 12:30:15 -05:00
Christopher M. Wolff a035bcfb6e
build(flux): update flux to v0.193.0 (#24103) 2023-02-23 10:18:46 -08:00
Manuel de la Peña 260d88b45d
chore: bump testcontainers-go to 0.18.0 (#24097) 2023-02-21 10:07:17 -05:00
Jeffrey Smith II f74c69c5e4
chore: update to go 1.20 (#24088)
* build: upgrade to go 1.19

* chore: bump go.mod

* chore: `gofmt` changes for doc comments

https://tip.golang.org/doc/comment

* test: update tests for new sort order

* chore: make generate-sources

* chore: make generate-sources

* chore: go 1.20

* chore: handle rand.Seed deprecation

* chore: handle rand.Seed deprecation in tests

---------

Co-authored-by: DStrand1 <dstrandboge@influxdata.com>
2023-02-09 14:14:35 -05:00
dependabot[bot] e2f835bb0f
build(deps): bump github.com/aws/aws-sdk-go from 1.30.12 to 1.33.0 (#24070)
Bumps [github.com/aws/aws-sdk-go](https://github.com/aws/aws-sdk-go) from 1.30.12 to 1.33.0.
- [Release notes](https://github.com/aws/aws-sdk-go/releases)
- [Changelog](https://github.com/aws/aws-sdk-go/blob/v1.33.0/CHANGELOG.md)
- [Commits](https://github.com/aws/aws-sdk-go/compare/v1.30.12...v1.33.0)

---
updated-dependencies:
- dependency-name: github.com/aws/aws-sdk-go
  dependency-type: indirect
...

closes https://github.com/influxdata/edge/issues/371

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-01-30 15:08:33 -08:00
Chunchun Ye 8ed55e72b8
build(flux): update flux to v0.192.0 (#24028) 2023-01-13 10:22:57 -06:00
Manuel de la Peña 26daa86648
chore: bump testcontainers to latest released version (#23858)
* chore: bump testcontainers to v0.15.0

* chore: run go mod tidy

* chore: update test to latest version of testcontainers

* chore: update package

* fix: use collectors.NewGoCollector instead

SA1019 detected by staticcheck
2022-11-23 13:18:10 -05:00
Nathaniel Cook 07e6ef2839
build(flux): update flux to v0.191.0 (#23913) 2022-11-15 12:57:16 -07:00
Christopher M. Wolff 86207fe46a
build(flux): update flux to v0.189.0 (#23853) 2022-11-03 11:03:33 -07: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
Sunil Kartikey 1033334482
build(flux): update flux to v0.188.0 (#23836) 2022-10-25 17:56:52 +01:00
Sean Brickley a0c3703a49
build(flux): update flux to v0.187.0 (#23812) 2022-10-17 13:46:35 -04:00
Jonathan A. Sternberg 34254ee040
build(flux): update flux to v0.186.0 (#23784) 2022-10-11 14:38:54 -05:00
Nathaniel Cook a321e72d15
build(flux): update flux to v0.185.0 (#23775) 2022-10-05 08:25:58 -06: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
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
Jonathan A. Sternberg c2c9d17d71
build(flux): update flux to v0.179.0 (#23627) 2022-08-16 09:37:28 -05:00
Christopher M. Wolff 78c969e510
build(flux): update flux to v0.178.0 (#23615) 2022-08-09 13:53:22 -07:00
Sean Brickley cd4f93b22d
build(flux): update flux to v0.177.1 (#23612) 2022-08-08 16:06:12 -04:00
Christopher M. Wolff 7e7d1dbf4a
build(flux): update flux to v0.177.0 (#23597) 2022-08-01 14:05:06 -07:00
Jonathan A. Sternberg c58bbabc98
build(flux): update flux to v0.176.0 (#23585) 2022-07-26 10:59:05 -05:00
Sunil Kartikey 4da4d03fe2
build(flux): update flux to v0.174.1 (#23531) 2022-07-12 19:03:30 +01:00
Sean Brickley 4d33c702e8
build(flux): update flux to v0.174.0 (#23518) 2022-07-05 18:46:53 -04:00
Nathaniel Cook 07bab31fe6
build(flux): update flux to v0.173.0 (#23505)
* build(flux): update flux to v0.173.0

* fix(fluxfmt): update tests for newline in Flux fmt

Flux fmt now explicitly adds a newline to the end of a file, updating
tests accordingly.
2022-06-30 11:39:07 -06:00