36 Commits

Author SHA1 Message Date
06edd83d28 server: remove ExperimentalMaxLearners
ExperimentalMaxLearners was introduced in v3.6, so there's no need to
worry about deprecating, it can be migrated straight into a FeatureGate.

Signed-off-by: Ivan Valdes <ivan@vald.es>
2025-03-07 22:22:43 -08:00
a8d8c1887f chore: use usetesting instead of tenv
Signed-off-by: Matthieu MOREL <matthieu.morel35@gmail.com>
2025-02-26 07:54:22 +01:00
5802231328 migrate experimental-snapshot-catchup-entries flag to snapshot-catchup-entries
Signed-off-by: Ajay Sundar Karuppasamy <ajaysundar@google.com>
2025-02-11 19:17:17 +00:00
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
a3a467bf39 migrate experimental-peer-skip-client-san-verification flag to peer-skip-client-san-verification
Co-authored-by: wodeyoulai <106662970@qq.com>

Signed-off-by: Siyuan Zhang <sizhang@google.com>
2025-02-07 10:35:03 -08:00
e5b39f85a4 migrate experimental-compaction-sleep-interval flag to compaction-sleep-interval
Signed-off-by: Ajay Sundar Karuppasamy <ajaysundar@google.com>
2025-02-06 18:54:32 +00:00
80a8a82bbd migrate experimental-downgrade-check-time to downgrade-check-time
Signed-off-by: Ajay Sundar Karuppasamy <ajaysundar@google.com>
2025-02-06 00:05:04 +00:00
3cc3dafded Merge pull request #19282 from jmao-dd/jmao/19061-migrate-mlock3
migrate experimental-memory-mlock flag to memory-mlock
2025-02-03 18:13:18 +00:00
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
0795f6b957 migrate experimental-memory-mlock flag to memory-mlock
Signed-off-by: Jiayin Mao <jiayin.mao@datadoghq.com>
2025-02-01 22:57:54 +00:00
27d9978c8e migrate to use max-learners flag
Signed-off-by: Gang Li <gangligit@gmail.com>
2025-01-28 17:23:51 -08:00
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
7f1d3b017b migrate to use warning-apply-duration flag
Signed-off-by: Gang Li <gangligit@gmail.com>
2025-01-24 10:23:29 -08:00
b16b8dc6f3 migrate flag experimental-watch-progress-notify-interval to use watch-progress-notify-interval (#19248)
migrate flag experimental-watch-progress-notify-interval to use watch-progress-notify-interval

Signed-off-by: Gang Li <gangligit@gmail.com>
2025-01-23 21:08:30 +00:00
1ef973c27e fix lint error
Signed-off-by: Gang Li <gangligit@gmail.com>
2025-01-15 15:10:12 -08:00
33d65fc90b TestConfigFileDeprecatedOptions
Signed-off-by: Gang Li <gangligit@gmail.com>
2025-01-14 16:26:50 -08:00
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
c6f817eb66 add experimental-corrupt-check-time into testcase TestConfigFileDeprecatedOptions
Signed-off-by: Gang Li <gangligit@gmail.com>
2025-01-13 12:04:39 -08:00
f4e7157ff1 migrate to use corrupt-check-time flag
Signed-off-by: Gang Li <gangligit@gmail.com>

add entry for --corrupt-check-time in help.go

Signed-off-by: Gang Li <gangligit@gmail.com>

remove a space

Signed-off-by: Gang Li <gangligit@gmail.com>

fix format

Signed-off-by: Gang Li <gangligit@gmail.com>

fix cluster.go

Signed-off-by: Gang Li <gangligit@gmail.com>

Add test in e2e for experimental corrupt check time flag

Signed-off-by: Gang Li <gangligit@gmail.com>

fix comment

Signed-off-by: Gang Li <gangligit@gmail.com>

fix comment

Signed-off-by: Gang Li <gangligit@gmail.com>
2025-01-13 11:58:40 -08:00
5c0f709c82 test: fix TestConfigFileDeprecatedOptions
Use minimal config struct for YAML marshaling.
Replace custom mapToSortedSlice with standard library functions.
Fix flag verification for deprecated experimental options.

Fixes etcd-io#19066

Signed-off-by: mansoora <syed.mansoor_a@nokia.com>
2025-01-13 15:13:26 +05:30
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
0739142ee3 server: errors.Is conversions
Signed-off-by: redwrasse <mail@redwrasse.io>
2024-09-29 05:23:47 -07:00
bd228cf6d1 migrate experimental-stop-grpc-service-on-defrag flag to feature gate.
Signed-off-by: Siyuan Zhang <sizhang@google.com>
2024-08-05 13:46:51 -07:00
7b355141d9 Add "server-feature-gates" flag.
Signed-off-by: Siyuan Zhang <sizhang@google.com>
2024-07-18 13:20:30 -07:00
2e5188f618 server/embed: address golangci var-naming issues
Addresses issues in ListenPeerUrls, ListenClientUrls,
ListenClientHttpUrls, AdvertisePeerUrls, AdvertiseClientUrls.

Signed-off-by: Ivan Valdes <ivan@vald.es>
2024-04-18 08:30:39 -06:00
0a1bc1208f server/embed: address golangci var-naming issues
Addresses issues in TLSMinVersion, TLSMaxVersion, WALDir, and
MaxWALFiles.

Signed-off-by: Ivan Valdes <ivan@vald.es>
2024-04-17 16:33:28 -06:00
63e614fb0b Add unit test for CLI flags and missing flags
Signed-off-by: John Riendeau <riendeau@us.ibm.com>
2023-08-23 08:33:39 -05:00
bf12179a5a server: Add --listen-client-http-urls flag to allow running grpc server separate from http server
Difference in load configuration for watch delay tests show how huge the
impact is. Even with random write scheduler grpc under http
server can only handle 500 KB with 2 seconds delay. On the other hand,
separate grpc server easily hits 10, 100 or even 1000 MB within 100 miliseconds.

Priority write scheduler that was used in most previous releases
is far worse than random one.

Tests configured to only 5 MB to avoid flakes and taking too long to fill
etcd.

Signed-off-by: Marek Siarkowicz <siarkowicz@google.com>
2023-03-30 09:49:45 +02:00
f6ebff1557 Refactor: Use proper variable names for urls.
Signed-off-by: James Blair <mail@jamesblair.net>
2023-03-14 18:37:52 +13:00
372042c374 refactor: Use proper variable names for urls
Signed-off-by: Marek Siarkowicz <siarkowicz@google.com>
2023-03-13 14:48:01 +01:00
2c46b2b299 externalize snapshot catchup entries to etcd flag
Signed-off-by: Chao Chen <chaochn@amazon.com>
2023-01-04 19:01:07 -08:00
9abc895122 Goimports: Apply automated fixing to test files as well.
Signed-off-by: Piotr Tabor <ptab@google.com>
2022-12-29 13:04:45 +01:00
1e6163ba27 remove v2 http proxy in 3.6 2022-05-13 17:44:58 +08:00
2a151c8982 *: move from io/ioutil to io and os packages
The io/ioutil package has been deprecated as of Go 1.16, see
https://golang.org/doc/go1.16#ioutil. This commit replaces the existing
io/ioutil functions with their new definitions in io and os packages.

Signed-off-by: Eng Zer Jun <engzerjun@gmail.com>
2021-10-28 00:05:28 +08:00
aaf423e962 server: Update imports.
find -name '*.go' | xargs sed -i --follow-symlinks 's|etcd/v3/|etcd/server/v3/|g'
2020-10-26 13:02:32 +01:00
4a5e9d1261 server: Move server files to 'server' directory.
26  git mv mvcc wal auth etcdserver etcdmain proxy embed/ lease/ server
   36  git mv go.mod go.sum server
2020-10-26 12:57:19 +01:00