20899 Commits

Author SHA1 Message Date
Marek Siarkowicz
5c311d5cab
Merge pull request #17450 from MadhavJivrajani/check-compaction-prevkv
tests/robustness: check for compaction before prevKV validation
2024-02-20 10:42:26 +01:00
Benjamin Wang
11ff2644f2
Merge pull request #17461 from etcd-io/dependabot/github_actions/github/codeql-action-3.24.3
build(deps): bump github/codeql-action from 3.24.0 to 3.24.3
2024-02-19 19:39:27 +00:00
dependabot[bot]
e43f27b8bc
build(deps): bump github/codeql-action from 3.24.0 to 3.24.3
Bumps [github/codeql-action](https://github.com/github/codeql-action) from 3.24.0 to 3.24.3.
- [Release notes](https://github.com/github/codeql-action/releases)
- [Changelog](https://github.com/github/codeql-action/blob/main/CHANGELOG.md)
- [Commits](e8893c57a1...379614612a)

---
updated-dependencies:
- dependency-name: github/codeql-action
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2024-02-19 17:23:17 +00:00
Madhav Jivrajani
5d7f58d14b tests/robustness: check for compaction before prevKV validation
We can check for the condition that Kubernetes checks for, i.e.
prevKV can be nil iff the event is not a create a event, only if
we know whether compaction has occured or not. If compaction has
occured, prevKV can be nil and that is completely valid.

This commit checks if compaction took place during the test run
by querying the /metrics endpoint. Based on if compaction occured,
we now check the Kubernetes condition in the prevKV robustness test.

Signed-off-by: Madhav Jivrajani <madhav.jiv@gmail.com>
2024-02-19 17:05:59 +05:30
Benjamin Wang
8814e03e33
Merge pull request #17449 from ArkaSaha30/update-changelog-3.4-3.5
Add `Make CGO_ENABLED configurable` to CHANGELOG
2024-02-19 11:35:51 +00:00
Arka Saha
b57a5b575f
Add Make CGO_ENABLED configurable to CHANGELOG
Signed-off-by: ArkaSaha30 <arkasaha30@gmail.com>
2024-02-19 15:57:42 +05:30
Benjamin Wang
97fc1ec7d9
Merge pull request #17366 from halleyshx/add-keepalive-clientParams-to-proxy
Added client keepalive arguments to the grpc-proxy
2024-02-19 09:40:17 +00:00
Benjamin Wang
b601362620
Merge pull request #17445 from vivekpatani/inv-PRISMA-2023-0056
*: update logrus to v1.9.3
2024-02-18 09:30:39 +00:00
vivekpatani
2eda06ac18 *: update logrus to v1.9.3
- update logrus to address PRISMA-2023-0056
- https://github.com/etcd-io/etcd/issues/17268

Signed-off-by: vivekpatani <9080894+vivekpatani@users.noreply.github.com>
2024-02-17 21:35:54 -08:00
Benjamin Wang
7d640a5fb4
Merge pull request #17441 from fuweid/using-retErr
server/verify: use retErr to shadow local err
2024-02-17 13:26:48 +00:00
Wei Fu
0354d39ae8 server/verify: use retErr to shadow local err
validateConsistentIndex function might return err but defer might still
log it's successful.

Signed-off-by: Wei Fu <fuweid89@gmail.com>
2024-02-17 17:21:19 +08:00
Benjamin Wang
e0cb943370
Merge pull request #17429 from jmhbnz/update-membership-process
Update membership process to reflect kubernetes/org automation
2024-02-17 09:20:14 +00:00
Benjamin Wang
484b115977
Merge pull request #16603 from redwrasse/redwrasse/contention-cleanup
cleanup contention.go docs, Observe param name
2024-02-16 09:13:47 +00:00
redwrasse
55fa8c9f56 cleanup contention.go docs, Observe param name
Signed-off-by: redwrasse <mail@redwrasse.io>
2024-02-16 00:06:31 -08:00
James Blair
57f24f5f51
Update org membership process for new members.
To reflect the new sig-etcd process of using the kubernetes/org automation.

Signed-off-by: James Blair <mail@jamesblair.net>
2024-02-16 00:05:18 +13:00
James Blair
9d27d24fe2
Remove defunct org membership request template.
Signed-off-by: James Blair <mail@jamesblair.net>
2024-02-16 00:04:15 +13:00
Marek Siarkowicz
840d486923
Merge pull request #17426 from MadhavJivrajani/robustness-tests-cleanup
tests/robustness: refactors, cleanups and followups
2024-02-15 09:23:05 +01:00
Benjamin Wang
b0d0476731
Merge pull request #17423 from nitishfy/Nitish/error-validation
feat: add `TestNoErrorLogsDuringNormalOperations` e2e test to validate error logs during etcd bootstrap
2024-02-14 14:44:41 +00:00
NitishKumar06
3f98ee77d0 etcdserver: add TestErrorLogs test to check for error logs
Signed-off-by: NitishKumar06 <justnitish06@gmail.com>

fix static analysis check

Signed-off-by: NitishKumar06 <justnitish06@gmail.com>

minor fixes

Signed-off-by: NitishKumar06 <justnitish06@gmail.com>
2024-02-14 18:50:04 +05:30
Benjamin Wang
ccc4318478
Merge pull request #17277 from ivanvc/fixes-etcdutl-memory-allocation-issue
etcdutl: Fix snapshot restore memory alloc issue
2024-02-14 11:41:14 +00:00
Madhav Jivrajani
b51a834645 tests/robustness: allow persisting result reports for successful runs
Signed-off-by: Madhav Jivrajani <madhav.jiv@gmail.com>
2024-02-14 16:28:47 +05:30
Madhav Jivrajani
cdd018ad2a tests/robustness: add a robustness test for validating create events
Split off valdiating create events from the prevKV test.
The added test tests the following two:
- A create event should not exist in our past history
- A non-create event should exist in our past history

Signed-off-by: Madhav Jivrajani <madhav.jiv@gmail.com>
2024-02-14 16:28:44 +05:30
Madhav Jivrajani
4fa07a1c8a tests/robustness: make merging histories work on []PersistedEvent
Event histories after merging serve as an authorotative list of
events that can be seen as ones persisted by etcd, we don't need
PrevValue as part of it.

Signed-off-by: Madhav Jivrajani <madhav.jiv@gmail.com>
2024-02-14 15:44:08 +05:30
Marek Siarkowicz
83817ac786
Merge pull request #17352 from MadhavJivrajani/with-prev-key-robustness-test
tests/robustness: add robustness test for watch with PrevKV()
2024-02-14 09:24:33 +01:00
Ivan Valdes
be28833212
etcdutl: Fix snapshot restore memory alloc issue
When running the snapshot command, allow receiving an initial memory map
allocation for the database, avoiding future memory allocation issues.

Co-authored-by: Benjamin Wang <benjamin.wang@broadcom.com>
Co-authored-by: Fatih USTA <fatihusta86@gmail.com>
Signed-off-by: Ivan Valdes <ivan@vald.es>
2024-02-13 13:36:13 -08:00
Ivan Valdes
d69adf45f9
server: Implement WithMmapSize option for backend config
Accept a third argument for NewDefaultBackend for overrides to the
BackendConfig.
Add a new function, WithMmapSize, which modifies the backend config to
provide a custom InitiamMmapSize.

Signed-off-by: Ivan Valdes <ivan@vald.es>
2024-02-13 13:24:44 -08:00
Madhav Jivrajani
9aad6700d5 tests/robustness: add robustness test for watch with PrevKV()
Kubernetes relies on the PrevKV() option in the watches it opens
against etcd. This commit adds a robustness test to validate the
same.

A watch response returned with PrevKV() is valid if:
The value in current event's prevKV matches the previous
event's value of the same key if this is not a create event.

There are cases where there can be a prevKV for a create event
as well, for example if a watch is opened after the key is creatd.
Since we don't simulate for that, we don't check for that.

Further, this adjusts revision numbers such that we can successfully create
a new replay. Needed now since we will have unit tests with
and without PrevKV co-existing and we requite creation of a
new replay everytime we validate PrevKV.

We also regenerate test data with so that prevKV exists in it

Signed-off-by: Madhav Jivrajani <madhav.jiv@gmail.com>
2024-02-13 22:55:57 +05:30
Benjamin Wang
cb91828f56
Merge pull request #17420 from ahrtr/dependency_20240213
[2024-02-13] Bump dependencies
2024-02-13 10:49:58 +00:00
Benjamin Wang
a7d5a9e42c
Merge pull request #17418 from ArkaSaha30/configure_cgo
Make CGO_ENABLED configurable
2024-02-13 09:36:01 +00:00
Benjamin Wang
dd9dd84a02 dependency: bump github.com/mikefarah/yq/v4 from 4.40.5 to 4.40.7
Signed-off-by: Benjamin Wang <benjamin.ahrtr@gmail.com>
2024-02-13 09:32:55 +00:00
Benjamin Wang
a6d72d5fbc dependency: bump golang.org/x/net from 0.20.0 to 0.21.0
Signed-off-by: Benjamin Wang <benjamin.ahrtr@gmail.com>
2024-02-13 09:32:55 +00:00
Benjamin Wang
dfff80a89e dependency: bump golang.org/x/crypto from 0.18.0 to 0.19.0
Signed-off-by: Benjamin Wang <benjamin.ahrtr@gmail.com>
2024-02-13 09:32:55 +00:00
Benjamin Wang
236e8ca881 dependency: bump go.opentelemetry.io/otel from 1.22.0 to 1.23.1
Signed-off-by: Benjamin Wang <benjamin.ahrtr@gmail.com>
2024-02-13 09:32:55 +00:00
Benjamin Wang
5c1b43c079 Dependency: bump golang.org/x/sys from 0.16.0 to 0.17.0
Signed-off-by: Benjamin Wang <benjamin.ahrtr@gmail.com>
2024-02-13 09:32:55 +00:00
Benjamin Wang
2c80656885
Merge pull request #17406 from etcd-io/dependabot/github_actions/actions/upload-artifact-4.3.1
build(deps): bump actions/upload-artifact from 4.3.0 to 4.3.1
2024-02-13 09:31:52 +00:00
Benjamin Wang
cb42e2264c
Merge pull request #17407 from etcd-io/dependabot/github_actions/golangci/golangci-lint-action-4.0.0
build(deps): bump golangci/golangci-lint-action from 3.7.0 to 4.0.0
2024-02-13 09:17:39 +00:00
Arka Saha
20005e0e84
Make CGO_ENABLED configurable
Signed-off-by: Arka Saha <arkas1@vmware.com>
2024-02-13 13:24:55 +05:30
dependabot[bot]
78a693fc71
build(deps): bump golangci/golangci-lint-action from 3.7.0 to 4.0.0
Bumps [golangci/golangci-lint-action](https://github.com/golangci/golangci-lint-action) from 3.7.0 to 4.0.0.
- [Release notes](https://github.com/golangci/golangci-lint-action/releases)
- [Commits](3a91952989...3cfe3a4abb)

---
updated-dependencies:
- dependency-name: golangci/golangci-lint-action
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
2024-02-12 17:36:21 +00:00
dependabot[bot]
271b9cdbaa
build(deps): bump actions/upload-artifact from 4.3.0 to 4.3.1
Bumps [actions/upload-artifact](https://github.com/actions/upload-artifact) from 4.3.0 to 4.3.1.
- [Release notes](https://github.com/actions/upload-artifact/releases)
- [Commits](26f96dfa69...5d5d22a312)

---
updated-dependencies:
- dependency-name: actions/upload-artifact
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2024-02-12 17:36:19 +00:00
Benjamin Wang
ea89e3fd94
Merge pull request #17403 from ahrtr/cleanup_20240208
Remove the unused AuthTokenTTL parameter from integration test
2024-02-12 14:46:28 +00:00
Benjamin Wang
5b2a9e2ab3 Remove the unused AuthTokenTTL parameter from integration test
Signed-off-by: Benjamin Wang <benjamin.ahrtr@gmail.com>
2024-02-11 14:09:43 +00:00
shihuixing
62cc04ff05 rollback the CHANGELOG-3.5.md
Signed-off-by: shihuixing <shihuixing@jd.com>
2024-02-09 21:13:37 +08:00
shihuixing
3850889442 improve description and update CHANGELOG-3.5.md
Signed-off-by: shihuixing <shihuixing@jd.com>
2024-02-09 15:14:27 +08:00
Benjamin Wang
42f0cb9762
Merge pull request #17395 from ahrtr/update_maintainers_20240208
Add Hitoshi Mitake into the Emeritus Maintainers list
2024-02-08 16:05:07 +00:00
Benjamin Wang
8732f27369 Add Hitoshi Mitake into the Emeritus Maintainers list
Signed-off-by: Benjamin Wang <benjamin.ahrtr@gmail.com>
2024-02-08 15:15:34 +00:00
Benjamin Wang
25f91b4e50
Merge pull request #17384 from mitake/watch-auth-str
Remove string dependent error handling in watch and auth
2024-02-08 13:54:46 +00:00
shihuixing
cf296a0b38 improve description for grpc-proxy keepalive arguments
Signed-off-by: shihuixing <shihuixing@jd.com>
2024-02-08 14:45:51 +08:00
Benjamin Wang
5d45a88ab7
Merge pull request #17380 from dusk125/go1.21-changelog
Add go1.21 update to changelog
2024-02-07 17:57:51 +00:00
Benjamin Wang
88e7c381dd
Merge pull request #17388 from Elbehery/update_changelog_35_34
add OpenBSD support to changelog 3.5
2024-02-07 17:55:30 +00:00
Benjamin Wang
99e7a4cd89
Merge pull request #17392 from sharathsivakumar/shsi/bump_deps_15
Manually bump dependencies
2024-02-07 16:41:54 +00:00