Commit Graph

627 Commits

Author SHA1 Message Date
Benjamin Wang
ac7d3e9335
Merge pull request #19451 from fuweid/add-downgrade-status
*: support DowngradeInfo field in maintenence.Status API
2025-02-21 21:02:20 +00:00
Benjamin Wang
49f34c9751
Merge pull request #19340 from aladesawe/server-apply-unexported-return
Rename `applierMembership` to `ApplierMembership` to fix the `unexported-return` lint error
2025-02-20 09:28:54 +00:00
Wei Fu
8575de3bab v3rpc: add DowngradeInfo in status API
Signed-off-by: Wei Fu <fuweid89@gmail.com>
2025-02-19 17:18:08 -05:00
adeyemi
e37cdc66c4 Rename applierMembership struct to fix unexported-return
Signed-off-by: adeyemi <adeyemi.aladesawe@gmail.com>
2025-02-16 21:35:18 -08:00
adeyemi
6f27da2aee Move AlarmBackend interface to fix unexported-return
Signed-off-by: adeyemi <adeyemi.aladesawe@gmail.com>
2025-02-16 21:22:53 -08:00
Benjamin Wang
a9b8cba602 Migrate experimental distributed tracing flags to non-experimental flags
Signed-off-by: Benjamin Wang <benjamin.ahrtr@gmail.com>
2025-02-11 15:29:16 +00:00
Benjamin Wang
a090db470b
Merge pull request #19356 from siyuanfoundation/lease-checkpoint
migrate experimental-enable-lease-checkpoint and experimental-enable-lease-checkpoint-persist flag to feature gate.
2025-02-07 15:14:40 +00:00
adeyemi
db05deaf02 server: fix unexported-return using interfaces
Signed-off-by: adeyemi <adeyemi.aladesawe@gmail.com>
2025-02-06 15:21:20 -08:00
Siyuan Zhang
2cd8fcce5d migrate experimental-enable-lease-checkpoint and experimental-enable-lease-checkpoint-persist flag to feature gate.
Signed-off-by: Siyuan Zhang <sizhang@google.com>
2025-02-06 14:31:00 -08:00
Benjamin Wang
dfbdd8853c Add learner id into log when being promoted
Signed-off-by: Benjamin Wang <benjamin.ahrtr@gmail.com>
2025-02-04 13:10:42 +00:00
Benjamin Wang
d4173b280d
Merge pull request #18971 from mmorel-35/testifier/server
fix: use testify instead of t.Fatal or t.Error in server package (part 1)
2025-02-03 14:54:11 +00:00
Benjamin Wang
d52bceb2f1
Merge pull request #19192 from wodeyoulai/main
Correct compaction period comments
2025-01-31 18:45:31 +00:00
Davanum Srinivas
3648220e22
incorporate feedback from review
Signed-off-by: Davanum Srinivas <davanum@gmail.com>
2025-01-31 06:44:29 -05:00
Davanum Srinivas
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
Benjamin Wang
037de81526
Merge pull request #19298 from gangli113/experimentalFlag
migrate to use max-learners flag
2025-01-29 18:58:36 +00:00
Benjamin Wang
614640f1c2 format all prometheus metrics to ensure nice indent
Signed-off-by: Benjamin Wang <benjamin.ahrtr@gmail.com>
2025-01-29 13:42:14 +00:00
Gang Li
27d9978c8e migrate to use max-learners flag
Signed-off-by: Gang Li <gangligit@gmail.com>
2025-01-28 17:23:51 -08:00
Benjamin Wang
1036e4e7e5 Update etcdserve apply workflow to process DowngradeVersionTestRequest
Signed-off-by: Benjamin Wang <benjamin.ahrtr@gmail.com>
2025-01-27 09:52:13 +00:00
Gang Li
267020e940 migrate to use bootstrap-defrag-threshold-megabytes flag
Signed-off-by: Gang Li <gangligit@gmail.com>
2025-01-24 13:21:48 -08:00
Marek Siarkowicz
c9045d650e
Merge pull request #19086 from gojoy/readyz-learner
etcdserver: add learner check to readyz
2025-01-22 11:05:42 +01:00
Guo Jix
989c556645
etcdserver: add learner check to readyz
Signed-off-by: GitHub <noreply@github.com>
2025-01-22 02:12:44 +00:00
wodeyoulai
7da675a327
docs: correct compaction period comments for 24-hour window
Update compaction period logic in periodic compactor to consistently
use 24-hour intervals instead of 1-hour. This fixes incorrect time
calculations where:
- Compaction period now correctly uses 24-hour instead of 1-hour
- Revision recording interval updated to 144-minute (1/10 of 24-hour)
  instead of 6-minute
- Retry interval on compaction failure adjusted to 144-minute to
  match the new period

This ensures consistent time-based compaction behavior for 24-hour
windows as originally intended.

Fixes #[issue-19017]

Signed-off-by: wodeyoulai <106662970@qq.com>
2025-01-18 17:39:30 +08:00
Matthieu MOREL
10d7cea552 chore: enable early-return and superfluous-else from revive
Signed-off-by: Matthieu MOREL <matthieu.morel35@gmail.com>

Co-authored-by: Iván Valdés Castillo <iv@nvald.es>
2025-01-18 09:44:58 +01:00
Benjamin Wang
8d0f165fd5 Minor refactor on RaftCluster.Recover()
Signed-off-by: Benjamin Wang <benjamin.ahrtr@gmail.com>
2025-01-15 16:26:47 +00:00
Matthieu MOREL
c3fb7954ee fix: use testify instead of t.Fatal or t.Error in server package
Signed-off-by: Matthieu MOREL <matthieu.morel35@gmail.com>
2025-01-14 08:12:46 +01:00
Chun-Hung Tseng
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
Benjamin Wang
9db8dcb44b
Merge pull request #19112 from aladesawe/rafthttp-error-messaging
rafthttp: Improve warn message in checkClusterCompatibilityFromHeader
2025-01-10 09:49:01 +00:00
Benjamin Wang
75f2ae1b62
Merge pull request #19139 from joshuazh-x/fix-embed-close-deadlock
Avoid deadlock in etcd.Close when stopping during bootstrapping
2025-01-09 10:50:26 +00:00
Joshua Zhang
f9ce13e7ee Avoid deadlock in etcd.Close when stopping during bootstrapping
Signed-off-by: Joshua Zhang <joshua.x.zhang@gmail.com>
2025-01-09 05:31:35 +00:00
adeyemi
a1a9149bbb Fix typo in typo fix
Signed-off-by: adeyemi <adeyemi.aladesawe@gmail.com>
2025-01-08 10:54:00 -08:00
Benjamin Wang
3ee0d4f2e9 Fix mixVersion test case: ensure a snapshot to be sent out
Signed-off-by: Benjamin Wang <benjamin.ahrtr@gmail.com>
2025-01-07 16:21:56 +00:00
adeyemi
05ff6333a9 Rephrase warn messaging
Signed-off-by: adeyemi <adeyemi.aladesawe@gmail.com>
2024-12-27 21:15:14 -08:00
adeyemi
7577a56c1f Update misleading warn message when versions mismatch
Signed-off-by: adeyemi <adeyemi.aladesawe@gmail.com>
2024-12-27 09:49:22 -08:00
Ishan Tyagi
c73b3d1e8f migrate experimental-txn-mode-write-with-shared-buffer flag to feature gate.
Signed-off-by: ishan16696 <ishan.tyagi@sap.com>
2024-12-21 23:46:11 +05:30
Siyuan Zhang
85363bda32 migrate experimental-compact-hash-check-enabled to feature gate.
Signed-off-by: Siyuan Zhang <sizhang@google.com>
2024-12-17 09:44:53 -08:00
Marek Siarkowicz
e7df5bf830 Wait for cluster version to non-default value to remove errors when cluster is bootstrapping.
Signed-off-by: Marek Siarkowicz <siarkowicz@google.com>
2024-12-16 13:27:06 +01:00
Matthieu MOREL
647f1621d6 fix: enable gosimple linter
Signed-off-by: Matthieu MOREL <matthieu.morel35@gmail.com>
2024-12-03 07:32:22 +01:00
Marek Siarkowicz
c77ea65979 Reuse grpcOverheadBytes calculation by creating a function for that
Signed-off-by: Marek Siarkowicz <siarkowicz@google.com>
2024-12-02 19:04:38 +01:00
Marek Siarkowicz
093df6f4d2 Fix gofump error due to merge race
Signed-off-by: Marek Siarkowicz <siarkowicz@google.com>
2024-12-01 20:03:34 +01:00
James Blair
46127e7ea5
Merge pull request #18961 from ArkaSaha30/deps_mgmt_25_11_24
[2024-11-25] Manual Dependency Bump
2024-11-29 20:09:47 -07:00
Marek Siarkowicz
4989834049 Use assert in TestSnapshot tests
Signed-off-by: Marek Siarkowicz <siarkowicz@google.com>
2024-11-29 20:49:55 +01:00
Marek Siarkowicz
6cebf973a1 Run a separate in memory snapshot to reduce number of entries stored in raft memory storage
Signed-off-by: Marek Siarkowicz <siarkowicz@google.com>
2024-11-29 20:40:02 +01:00
Marek Siarkowicz
cfe958de6a Cleanup triggerSnapshot function and rename it to snapshotIfNeededAndCompactRaftLog
Signed-off-by: Marek Siarkowicz <siarkowicz@google.com>
2024-11-29 20:39:09 +01:00
Marek Siarkowicz
d907ecdffd Separate memory and disk snapshot indexes
Signed-off-by: Marek Siarkowicz <siarkowicz@google.com>
2024-11-29 20:39:07 +01:00
Marek Siarkowicz
9d55044494 Move updating snapshot index just after we safe snapshot to disk
Signed-off-by: Marek Siarkowicz <siarkowicz@google.com>
2024-11-29 20:38:20 +01:00
Marek Siarkowicz
152973425a Rename snapshot variables to explicitly mention using disk
Signed-off-by: Marek Siarkowicz <siarkowicz@google.com>
2024-11-29 14:18:31 +01:00
ArkaSaha30
4cce12a724
Fix genproto annotations
* Please add etcd_version annotation in *.proto file with next etcd version
* Run ./scripts/genproto.sh
push_pin
* Run ./scripts/update_proto_annotations.sh

Signed-off-by: ArkaSaha30 <arkasaha30@gmail.com>
2024-11-29 16:39:53 +05:30
Benjamin Wang
8f91eb1627
Merge pull request #18954 from mmorel-35/gofumpt/server
fix: enable gofumpt instead of gofmt linter in server
2024-11-29 09:24:38 +00:00
Matthieu MOREL
69efe31ea0 fix: enable gofumpt instead of gofmt linter in server
Signed-off-by: Matthieu MOREL <matthieu.morel35@gmail.com>
2024-11-27 07:22:36 +01:00
Marek Siarkowicz
b7812513ce Translate v2 requests into v3 ClusterMemberAttrSetRequest and ClusterVersionSetRequest
Signed-off-by: Marek Siarkowicz <siarkowicz@google.com>
2024-11-11 17:30:41 +01:00