1ea4f435cc
Merge pull request #19381 from henrybear327/dependency/2025_02_10
...
[2025-02-10] Bump dependency updates identified by dependabot
2025-02-11 07:50:59 +00:00
ad3301099a
Merge pull request #19350 from aladesawe/server-wal-version-unexported-return
...
Migrate WALVersion to fix unexported-return of walVersion
2025-02-10 21:42:13 +00:00
04cce9759b
dependency: bump github.com/grpc-ecosystem/grpc-gateway/v2 from 2.26.0 to 2.26.1, bump google.golang.org/genproto/googleapis/rpc from v0.0.0-20250115164207-1a7da9e5054f to v0.0.0-20250204164813-702378808489, and google.golang.org/protobuf from v1.36.4 to v1.36.5
...
Reference:
- https://github.com/etcd-io/etcd/pull/19374
- https://github.com/etcd-io/etcd/pull/19380
Signed-off-by: Chun-Hung Tseng <henrytseng@google.com >
2025-02-10 21:20:45 +00:00
b31311ebb0
dependency: bump golang.org/x/crypto from 0.32.0 to 0.33.0 and bump golang.org/x/text from 0.21.0 to 0.22.0
...
Reference:
- https://github.com/etcd-io/etcd/pull/19378
- https://github.com/etcd-io/etcd/pull/19379
Signed-off-by: Chun-Hung Tseng <henrytseng@google.com >
2025-02-10 21:20:45 +00:00
2cffac9916
dependency: bump golang.org/x/time from 0.9.0 to 0.10.0
...
Reference:
- https://github.com/etcd-io/etcd/pull/19377
Signed-off-by: Chun-Hung Tseng <henrytseng@google.com >
2025-02-10 21:20:45 +00:00
ab88026649
dependency: bump golang.org/x/sys from 0.29.0 to 0.30.0
...
Reference:
- https://github.com/etcd-io/etcd/pull/19376
Signed-off-by: Chun-Hung Tseng <henrytseng@google.com >
2025-02-10 21:20:45 +00:00
94758c1760
Migrate WALVersion, and reuse in schema.go
...
Signed-off-by: adeyemi <adeyemi.aladesawe@gmail.com >
2025-02-07 17:48:10 -08:00
a747fdebbc
Merge pull request #19344 from jxustc/fix/etcdutl-key-count
...
etcdutl: use map to count unique user keys in snapshot status
2025-02-07 15:15:18 +00:00
2d377000ff
etcdutl: use map to count unique user keys in snapshot status
...
The new implementation:
- Uses map to track unique keys for accurate counting
- Excludes internal built-in keys from total count
- Improves code maintainability
Although this approach uses additional memory for the map, the trade-off
is acceptable since:
- Status() is not in hot path
- Correctness takes priority over performance optimization
- Simpler code is easier to maintain
Fixes #19253
Signed-off-by: Xiang Ji <johnsmith.jix@gmail.com >
2025-02-07 19:56:06 +08:00
70ef8a549f
Bump raft to v3.6.0
...
Signed-off-by: Benjamin Wang <benjamin.ahrtr@gmail.com >
2025-02-05 18:53:09 +00:00
60a83e2330
Bump bbolt to v1.4.0
...
Signed-off-by: Benjamin Wang <benjamin.ahrtr@gmail.com >
2025-02-05 18:50:37 +00:00
0108677e86
dependency: bump github.com/spf13/pflag from 1.0.5 to 1.0.6
...
Reference:
- https://github.com/etcd-io/etcd/pull/19321
Signed-off-by: Chun-Hung Tseng <henrytseng@google.com >
2025-02-05 14:34:36 +00:00
7f8d40d568
bumping go to version 1.23.6
...
Signed-off-by: Marcel Franca <marcel@marcelfranca.com >
2025-02-04 19:15:39 -03:00
b197332b13
Merge pull request #19313 from fuweid/deflaky-TestSnapshotStatus
...
deflaky: TestSnapshotStatus
2025-01-31 21:14:58 +00:00
12bbee7c1c
deflaky: TestSnapshotStatus
...
Root Cause
The backend commits pending changes into boltdb per 100 ms by default.
When brand-new member starts, that member will save member into
backend by `MustSaveMemberToBackend`. However, it doesn't force change
into boltdb. It depends on backend's auto-commit per 100ms.
If auto-commit happens after `UpdateStorageVersion`, the `UpdateStorageVersion`
will fail on `missing confstate information`. The confstate information
is handled by commit-prehook. Once `UpdateStorageVersion` fails,
`TestSnapshotStatus` won't have another chance to do that because that
server has been closed. So without storage version information, hash of boltdb
data is not expected.
How to reproduce it?
```diff
diff --git a/etcdutl/snapshot/v3_snapshot_test.go b/etcdutl/snapshot/v3_snapshot_test.go
index c2b3d5202..cd88ff995 100644
--- a/etcdutl/snapshot/v3_snapshot_test.go
+++ b/etcdutl/snapshot/v3_snapshot_test.go
@@ -141,6 +141,7 @@ func createDB(t *testing.T, generateContent func(*etcdserver.EtcdServer)) string
t.Helper()
cfg := embed.NewConfig()
+ cfg.BackendBatchInterval = 5 * time.Second
cfg.LogLevel = "fatal"
cfg.Dir = t.TempDir()
```
```bash
➜ snapshot git:(deflaky-TestSnapshotStatus) ✗ go test -v -run "^TestSnapshotStatus$" -count 1 ./
=== RUN TestSnapshotStatus
v3_snapshot_test.go:47:
Error Trace: /home/weifu/workspace/etcd/etcdutl/snapshot/v3_snapshot_test.go:47
Error: Not equal:
expected: 0x62132b4d
actual : 0x6bf96324
Test: TestSnapshotStatus
--- FAIL: TestSnapshotStatus (0.14s)
FAIL
FAIL go.etcd.io/etcd/etcdutl/v3/snapshot 0.154s
FAIL
```
How to fix?
Change `BackendBatchLimit` to `1` so that we can force-commit during
`MustSaveMemberToBackend`.
Signed-off-by: Wei Fu <fuweid89@gmail.com >
2025-01-31 15:06:14 -05:00
c3e4df6de1
Switch from grpc-ecosystem/go-grpc-prometheus to grpc-ecosystem/go-grpc-middleware/providers/prometheus
...
Signed-off-by: Davanum Srinivas <davanum@gmail.com >
2025-01-30 08:43:53 -05:00
ff76d1800a
dependency: bump github.com/prometheus/common from 0.61.0 to 0.62.0
...
Reference:
- https://github.com/etcd-io/etcd/pull/19283
Signed-off-by: Chun-Hung Tseng <henrytseng@google.com >
2025-01-28 16:40:58 +00:00
c5544044b3
dependency: bump google.golang.org/grpc from 1.69.4 to 1.70.0
...
Reference:
- https://github.com/etcd-io/etcd/pull/19284
Signed-off-by: Chun-Hung Tseng <henrytseng@google.com >
2025-01-28 16:40:58 +00:00
70c2e17031
dependency: bump google.golang.org/protobuf from 1.36.3 to 1.36.4
...
Reference:
- https://github.com/etcd-io/etcd/pull/19287
Signed-off-by: Chun-Hung Tseng <henrytseng@google.com >
2025-01-28 16:40:58 +00:00
60e8485b48
dependency: bump github.com/grpc-ecosystem/grpc-gateway/v2 from 2.25.1 to 2.26.0
...
Reference:
- https://github.com/etcd-io/etcd/pull/19288
- https://github.com/etcd-io/etcd/pull/19285
Signed-off-by: Chun-Hung Tseng <henrytseng@google.com >
2025-01-28 16:40:35 +00:00
32cfd45182
Merge pull request #19232 from mmorel-35/gomodguard/jwt/v5
...
build(deps): bump github.com/golang-jwt/jwt from v4 to v5
2025-01-23 16:29:39 +00:00
1106969a48
dependency: bump go.opentelemetry.io/contrib/instrumentation/google.golang.org/grpc/otelgrpc from 0.58.0 to 0.59.0
...
Reference:
- https://github.com/etcd-io/etcd/pull/19235
Signed-off-by: Chun-Hung Tseng <henrytseng@google.com >
2025-01-21 20:38:33 +00:00
7166571b57
dependency: bump go.opentelemetry.io/otel/exporters/otlp/otlptrace/otlptracegrpc from 1.33.0 to 1.34.0, and other related ones
...
Also bumped:
- go.opentelemetry.io/otel from v1.33.0 to v1.34.0
- go.opentelemetry.io/otel/exporters/otlp/otlptrace from v1.33.0 to v1.34.0
- go.opentelemetry.io/otel/exporters/otlp/otlptrace/otlptracegrpc from v1.33.0 to v1.34.0
- go.opentelemetry.io/otel/metric from v1.33.0 to v1.34.0
- go.opentelemetry.io/otel/sdk from v1.33.0 to v1.34.0
- go.opentelemetry.io/otel/trace from v1.33.0 to v1.34.0
- google.golang.org/genproto/googleapis/api from v0.0.0-20250102185135-69823020774d to v0.0.0-20250115164207-1a7da9e5054f
- google.golang.org/genproto/googleapis/rpc from v0.0.0-20250102185135-69823020774d to v0.0.0-20250115164207-1a7da9e5054f
Reference:
- https://github.com/etcd-io/etcd/pull/19234
- https://github.com/etcd-io/etcd/pull/19236
- https://github.com/etcd-io/etcd/pull/19237
Signed-off-by: Chun-Hung Tseng <henrytseng@google.com >
2025-01-21 20:37:43 +00:00
dd1d3ad435
dependency: bump google.golang.org/protobuf from 1.36.2 to 1.36.3
...
Reference:
- https://github.com/etcd-io/etcd/pull/19227
Signed-off-by: Chun-Hung Tseng <henrytseng@google.com >
2025-01-21 20:37:32 +00:00
52061becca
build(deps): bump github.com/golang-jwt/jwt from v4 to v5
...
Signed-off-by: Matthieu MOREL <matthieu.morel35@gmail.com >
Co-authored-by: Benjamin Wang <benjamin.wang@broadcom.com >
2025-01-20 11:42:40 +00:00
74ffe2e783
etcd: update golang toolchain to 1.23.5
...
Signed-off-by: ajaysundar.k <ajaysundar.k@gmail.com >
2025-01-18 00:08:48 +00:00
b33855055a
dependency: bump go.opentelemetry.io/proto/otlp from 1.4.0 to 1.5.0, google.golang.org/genproto/googleapis/api from v0.0.0-20241219192143-6b3ec007d9bb to v0.0.0-20250102185135-69823020774d, and google.golang.org/genproto/googleapis/rpc from v0.0.0-20241219192143-6b3ec007d9bb to v0.0.0-20250102185135-69823020774d
...
Reference:
- https://github.com/etcd-io/etcd/pull/19182
Signed-off-by: Chun-Hung Tseng <henrybear327@gmail.com >
2025-01-16 22:27:52 +01:00
ca1b6560ff
dependency: bump google.golang.org/protobuf from 1.36.1 to 1.36.2
...
Reference:
- https://github.com/etcd-io/etcd/pull/19184
Signed-off-by: Chun-Hung Tseng <henrybear327@gmail.com >
2025-01-16 22:27:52 +01:00
9b30e122e5
dependency: bump google.golang.org/grpc from 1.69.2 to 1.69.4
...
Reference:
- https://github.com/etcd-io/etcd/pull/19185
Signed-off-by: Chun-Hung Tseng <henrybear327@gmail.com >
2025-01-16 22:27:52 +01:00
39ccd99efb
Minor refactor on the etcdutl migrate command
...
Signed-off-by: Benjamin Wang <benjamin.ahrtr@gmail.com >
2025-01-16 13:24:38 +00:00
a908d35544
Rename migrate_command_test.go to common_test.go
...
Signed-off-by: Benjamin Wang <benjamin.ahrtr@gmail.com >
2025-01-15 16:21:29 +00:00
9eb85ee6d5
Merge pull request #19165 from henrybear327/dependencies/25_01_10
...
[2025-01-10] Bump dependency updates identified by dependabot
2025-01-13 09:26:24 +00:00
1430c1d8c1
dependency: bump github.com/jonboulle/clockwork from 0.4.0 to 0.5.0
...
Bumping this dependency also require fixing func newFakeClock() to
return a pointer to the struct (*clockwork.FakeClock)
Reference:
- https://github.com/etcd-io/etcd/pull/19131
Signed-off-by: Chun-Hung Tseng <henrybear327@gmail.com >
2025-01-12 21:20:16 +01:00
bc16650c10
dependency: bump golang.org/x/time from 0.8.0 to 0.9.0
...
Reference:
- https://github.com/etcd-io/etcd/pull/19129
Signed-off-by: Chun-Hung Tseng <henrybear327@gmail.com >
2025-01-12 21:19:19 +01:00
d3e4a4e2f2
dependency: bump golang.org/x/net from 0.33.0 to 0.34.0, golang.org/x/sys from 0.28.0 to 0.29.0, and golang.org/x/crypto from 0.31.0 to 0.32.0
...
These 3 bumps need to be performed together.
Reference:
- https://github.com/etcd-io/etcd/pull/19130
- https://github.com/etcd-io/etcd/pull/19132
- https://github.com/etcd-io/etcd/pull/19133
Signed-off-by: Chun-Hung Tseng <henrybear327@gmail.com >
2025-01-12 21:19:19 +01:00
83749666fe
Move getLatestWALSnap into etcdutl/common.go
...
Signed-off-by: Benjamin Wang <benjamin.ahrtr@gmail.com >
2025-01-11 17:52:10 +00:00
ec52e35871
Update etcdutl migrate command: load wal records from the latest snapshot
...
Signed-off-by: Benjamin Wang <benjamin.ahrtr@gmail.com >
2025-01-09 14:39:27 +00:00
c551be9ef5
dependency: bump go.opentelemetry.io/contrib/instrumentation/google.golang.org/grpc/otelgrpc from 0.57.0 to 0.58.0
...
This commit will bump dependency go.opentelemetry.io/contrib/instrumentation/google.golang.org/grpc/otelgrpc from 0.57.0 to 0.58.0
Signed-off-by: ArkaSaha30 <arkasaha30@gmail.com >
2025-01-02 15:44:49 +05:30
d76cdc2141
dependency: bump go.opentelemetry.io/otel/exporters/otlp/otlptrace/otlptracegrpc from 1.32.0 to 1.33.0
...
This commit will bump dependency go.opentelemetry.io/otel/exporters/otlp/otlptrace/otlptracegrpc from 1.32.0 to 1.33.0
Signed-off-by: ArkaSaha30 <arkasaha30@gmail.com >
2024-12-27 15:33:46 +05:30
d0f78d0442
dependency: bump github.com/grpc-ecosystem/grpc-gateway/v2 from 2.24.0 to 2.25.1
...
This commit will bump dependency github.com/grpc-ecosystem/grpc-gateway/v2 from 2.24.0 to 2.25.1
Signed-off-by: ArkaSaha30 <arkasaha30@gmail.com >
2024-12-27 15:31:45 +05:30
63ff2e37ed
dependency: bump google.golang.org/protobuf from 1.36.0 to 1.36.1
...
This commit will bump dependency google.golang.org/protobuf from 1.36.0 to 1.36.1
Signed-off-by: ArkaSaha30 <arkasaha30@gmail.com >
2024-12-27 15:23:38 +05:30
a869bdf8e6
dependency: bump google.golang.org/grpc from 1.69.0 to 1.69.2
...
This commit will bump dependency google.golang.org/grpc from 1.69.0 to 1.69.2
Signed-off-by: ArkaSaha30 <arkasaha30@gmail.com >
2024-12-27 15:17:56 +05:30
bf3bb6d8be
dependency: bump golang.org/x/net from 0.32.0 to 0.33.0
...
This commit will bump dependency golang.org/x/net from 0.32.0 to 0.33.0
Signed-off-by: ArkaSaha30 <arkasaha30@gmail.com >
2024-12-27 15:01:04 +05:30
ce511f6ce8
dependency: bump google.golang.org/protobuf from 1.35.2 to 1.36.0
...
This commit will bump dependency google.golang.org/protobuf from 1.35.2 to 1.36.0
Signed-off-by: ArkaSaha30 <arkasaha30@gmail.com >
2024-12-19 14:12:22 +05:30
8359b320d1
dependency: bump go.opentelemetry.io/otel from 1.32.0 to 1.33.0
...
This commit will bump dependency go.opentelemetry.io/otel from 1.32.0 to 1.33.0
Signed-off-by: ArkaSaha30 <arkasaha30@gmail.com >
2024-12-19 14:11:12 +05:30
e9bc263eec
dependency: bump google.golang.org/grpc from 1.68.1 to 1.69.0
...
This commit will bump dependency google.golang.org/grpc from 1.68.1 to 1.69.0
Signed-off-by: ArkaSaha30 <arkasaha30@gmail.com >
2024-12-14 21:32:38 +05:30
3262da49d8
dependency: bump github.com/golangci/golangci-lint from 1.61.0 to 1.62.2
...
This commit will bump dependency github.com/golangci/golangci-lint from 1.61.0 to 1.62.2
Signed-off-by: ArkaSaha30 <arkasaha30@gmail.com >
2024-12-12 20:34:12 +05:30
5c976cfed7
dependency: bump github.com/prometheus/common from 0.60.1 to 0.61.0
...
This commit will bump dependency github.com/prometheus/common from 0.60.1 to 0.61.0
Signed-off-by: ArkaSaha30 <arkasaha30@gmail.com >
2024-12-12 20:34:12 +05:30
cd06ddd03b
dependency: bump google.golang.org/grpc from 1.68.0 to 1.68.1
...
This commit will bump dependency google.golang.org/grpc from 1.68.0 to 1.68.1
Signed-off-by: ArkaSaha30 <arkasaha30@gmail.com >
2024-12-12 20:34:12 +05:30
bc9239a189
dependency: bump golang.org/x/net from 0.31.0 to 0.32.0
...
This commit will bump dependency golang.org/x/net from 0.31.0 to 0.32.0
Signed-off-by: ArkaSaha30 <arkasaha30@gmail.com >
2024-12-12 20:34:11 +05:30