1594 Commits

Author SHA1 Message Date
Ivan Valdes
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
Ivan Valdes
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
Marek Siarkowicz
e37a67e40b
Merge pull request #17787 from callthingsoff/eliminate_tls.Config.NameToCertificate
server/etcdmain: eliminate deprecated tlsConfig.BuildNameToCertificate()
2024-04-17 10:19:45 +02:00
Benjamin Wang
9420f27ea9
Merge pull request #17762 from Fube/better-prevote-doc
etcdserver: updated pre-vote flag description
2024-04-13 08:31:58 +01:00
Jes Cok
ecb52d7d48 server/etcdmain: eliminate deprecated tlsConfig.BuildNameToCertificate()
As the doc is saying:

Deprecated: NameToCertificate only allows associating a single certificate
with a given name. Leave that field nil to let the library select the first
compatible chain from Certificates.

Signed-off-by: Jes Cok <xigua67damn@gmail.com>
2024-04-13 11:46:58 +08:00
Fube
cf66d0f64f etcdserver: updated pre-vote flag description
To better communicate what the pre-vote phase in Raft is.

Signed-off-by: Fube <fubeitch@gmail.com>
2024-04-12 17:14:19 -04:00
Chun-Hung Tseng
ecfc139f06
dependency: bump go.opentelemetry.io/otel/exporters/otlp/otlptrace/otlptracegrpc from 1.24.0 to 1.25.0
Reference:
- https://github.com/etcd-io/etcd/pull/17748

Signed-off-by: Chun-Hung Tseng <henrybear327@gmail.com>
2024-04-11 07:49:18 +02:00
Chun-Hung Tseng
c8628919bb
dependency: bump google.golang.org/grpc from 1.63.0 to 1.63.2
Reference:
- https://github.com/etcd-io/etcd/pull/17766
- https://github.com/etcd-io/etcd/pull/17765

Signed-off-by: Chun-Hung Tseng <henrybear327@gmail.com>
2024-04-10 09:55:21 +02:00
Chun-Hung Tseng
ebeb5bb80e
dependency: bump go.opentelemetry.io/proto/otlp from v1.1.0 to v1.2.0
References:
- https://github.com/etcd-io/etcd/pull/17750

Signed-off-by: Chun-Hung Tseng <henrybear327@gmail.com>
2024-04-09 12:24:57 +02:00
Chun-Hung Tseng
caf21a94c6
dependency: bump golang.org/x/crypto from 0.21.0 to 0.22.0
References:
- https://github.com/etcd-io/etcd/pull/17746

Signed-off-by: Chun-Hung Tseng <henrybear327@gmail.com>
2024-04-09 12:24:57 +02:00
Chun-Hung Tseng
519b2c06e1
dependency: bump google.golang.org/grpc from 1.62.1 to 1.63.0
References:
- https://github.com/etcd-io/etcd/pull/17748
- https://github.com/etcd-io/etcd/pull/17749
- https://github.com/etcd-io/etcd/pull/17750

Signed-off-by: Chun-Hung Tseng <henrybear327@gmail.com>
2024-04-09 12:24:57 +02:00
Ivan Valdes
41baca8a95
dependency: bump golang.org/x/net from 0.22.0 to 0.23.0
Signed-off-by: Ivan Valdes <ivan@vald.es>
2024-04-05 12:00:51 -07:00
idnandre
12fa1bb940 server/storage: change deprecated bolt error to new error package
Signed-off-by: idnandre <andre@idntimes.com>
2024-04-03 19:21:22 +07:00
Marek Siarkowicz
09769c4be7
Merge pull request #17642 from fuweid/fix-17506
*: LeaseTimeToLive returns error if leader changed
2024-04-02 14:55:41 +02:00
Edwin Xie
fc8568a435 nit: Fix trailing whitespace in etcdmain/help.go
Signed-off-by: Edwin Xie <edwin.xie@broadcom.com>
2024-04-01 22:25:05 +00:00
Benjamin Wang
cc32fa8559
Merge pull request #17618 from Akiqqqqqqq/feature-wal-write-metric
feat: add wal write system call metrics observation (main)
2024-03-31 16:54:20 +01:00
Marek Siarkowicz
a25497e97d
Merge pull request #17660 from ivanvc/address-server-storage-var-naming-lint-rule
server/storage: address golangci var-naming issues
2024-03-29 10:02:25 +01:00
Marek Siarkowicz
a22ae624ef
Merge pull request #17263 from siyuanfoundation/txBuf1
Fix tx buffer inconsistency if there are unordered key writes in one tx.
2024-03-28 12:08:18 +01:00
Ivan Valdes
d43738a49b
server/storage: address golangci var-naming issues
Signed-off-by: Ivan Valdes <ivan@vald.es>
2024-03-27 10:12:42 -07:00
Siyuan Zhang
0a54362cca add key dedupe when a write buffer writeback to an empty read buffer bucket.
Signed-off-by: Siyuan Zhang <sizhang@google.com>
2024-03-27 17:03:31 +00:00
Siyuan Zhang
7be3606841 Add tx buffer test case of unordered key writes.
Signed-off-by: Siyuan Zhang <sizhang@google.com>
2024-03-27 17:03:31 +00:00
Siyuan Zhang
4346a43cee Add benchmark tests for buffer writeback function.
Signed-off-by: Siyuan Zhang <sizhang@google.com>
2024-03-27 17:03:26 +00:00
Wei Fu
d3bb6f688b *: LeaseTimeToLive returns error if leader changed
The old leader demotes lessor and all the leases' expire time will be
updated. Instead of returning incorrect remaining TTL, we should return
errors to force client retry.

Signed-off-by: Wei Fu <fuweid89@gmail.com>
2024-03-26 18:55:01 +08:00
Qiuyu Wu
97efc2ade4 feat: observe wal write at one time
Signed-off-by: Qiuyu Wu <qiuyu.wu@shopee.com>
2024-03-26 17:26:02 +08:00
Ivan Valdes
139d9c28bd
dependency: bump github.com/prometheus/common from 0.50.0 to 0.51.1
Signed-off-by: Ivan Valdes <ivan@vald.es>
2024-03-25 14:42:13 -07:00
Benjamin Wang
e4448c4744
Merge pull request #17634 from callthingsoff/httpresponse_close_after_read
all: call Close() after reading http.Response.Body
2024-03-25 07:03:54 +00:00
Jes Cok
bc31162cc2 all: call Close() after reading http.Response.Body
As the doc of http.Response.Body says:

// The http Client and Transport guarantee that Body is always
// non-nil, even on responses without a body or responses with
// a zero-length body. It is the caller's responsibility to
// close Body.

Signed-off-by: Jes Cok <xigua67damn@gmail.com>
2024-03-25 12:17:47 +08:00
thirdkeyword
fbda591866 fix some typos
Signed-off-by: thirdkeyword <fliterdashen@gmail.com>
2024-03-25 10:34:44 +08:00
Benjamin Wang
9359aef3e3
Merge pull request #17620 from jmhbnz/weekly-dependency-update
[2023-03-18] Weekly dependency update
2024-03-21 14:24:45 +01:00
James Blair
7b7e2e29da
dependency: bump go.uber.org/zap from 1.26.0 to 1.27.0.
Signed-off-by: James Blair <mail@jamesblair.net>
2024-03-22 01:41:57 +13:00
James Blair
0cf5da62c9
dependency: bump go.opentelemetry.io/contrib/instrumentation/google.golang.org/grpc/otelgrpc from 0.48.0 to 0.49.0.
Signed-off-by: James Blair <mail@jamesblair.net>
2024-03-22 01:22:58 +13:00
Ivan Valdes
66f56d71e4
server: address golangci var-naming issues
Signed-off-by: Ivan Valdes <ivan@vald.es>
2024-03-20 21:12:12 -07:00
Benjamin Wang
97029d768a
Merge pull request #17614 from ivanvc/address-etcdserver-var-naming-lint-rule
etcdserver: address var naming lint rule
2024-03-19 22:40:03 +01:00
Ivan Valdes
14523bdc21
etcdserver: rename MemberId() to MemberID() to address var-naming
Signed-off-by: Ivan Valdes <ivan@vald.es>
2024-03-18 17:18:29 -07:00
Ivan Valdes
c613b78e6c
etcdserver: address golangci var-naming issues
Signed-off-by: Ivan Valdes <ivan@vald.es>
2024-03-18 17:17:07 -07:00
Benjamin Wang
8b9909e20d
Merge pull request #17585 from ivanvc/address-api-var-naming-lint-rule
api: address golangci var-naming issues
2024-03-16 11:23:46 +00:00
Ivan Valdes
2190b0f1c6
api: address golangci var-naming issues
Signed-off-by: Ivan Valdes <ivan@vald.es>
2024-03-15 20:37:53 -07:00
Chao Chen
405862e807 Fix event loss after compaction
Signed-off-by: Chao Chen <chaochn@amazon.com>
2024-03-15 14:22:37 -07:00
Ivan Valdes
0024569c7c
dependency: bump github.com/stretchr/testify from 1.8.4 to 1.9.0
Signed-off-by: Ivan Valdes <ivan@vald.es>
2024-03-11 11:50:27 -07:00
Ivan Valdes
3996eb5a3c
dependency: bump google.golang.org/grpc from 1.62.0 to 1.62.1
Signed-off-by: Ivan Valdes <ivan@vald.es>
2024-03-11 11:41:17 -07:00
Ivan Valdes
7fae54b302
dependency: bump github.com/prometheus/common from 0.49.0 to 0.50.0
Signed-off-by: Ivan Valdes <ivan@vald.es>
2024-03-11 11:32:03 -07:00
Marek Siarkowicz
ddf54715bf
Merge pull request #17557 from serathius/progressrequest-new-watch
Fix progress notification for watch that doesn't get any events
2024-03-11 15:42:13 +01:00
Marek Siarkowicz
6103504d4b Fix progress notification for watch that doesn't get any events
When implementing the fix for progress notifications
(https://github.com/etcd-io/etcd/pull/15237) we made a incorrect
assumption that that unsynched watches will always get at least one event.

Unsynched watches include not only slow watchers, but also newly created
watches that requested current or older revision. In case that non of the events
match watch filter, those newly created watches might become synched
without any event going through.

Signed-off-by: Marek Siarkowicz <siarkowicz@google.com>
2024-03-11 12:11:09 +01:00
Ivan Valdes
0c6b6ac951
dependency: bump google.golang.org/protobuf from 1.32.0 to 1.33.0
Addresses CVE-2024-24786 (https://pkg.go.dev/vuln/GO-2024-2611)

Signed-off-by: Ivan Valdes <ivan@vald.es>
2024-03-07 09:13:28 -08:00
Ivan Valdes
04ef9dcef8
dependency: bump github.com/prometheus/common from 0.47.0 to 0.49.0
Signed-off-by: Ivan Valdes <ivan@vald.es>
2024-03-07 09:13:28 -08:00
Ivan Valdes
60da279da4
dependency: bump go.opentelemetry.io/otel/sdk from 1.23.1 to 1.24.0
Signed-off-by: Ivan Valdes <ivan@vald.es>
2024-03-07 09:13:28 -08:00
Allen Ray
bb4b70bbb2 Migrate to go1.22
Signed-off-by: Allen Ray <alray@redhat.com>
2024-03-06 17:15:36 -05:00
Dat Tien Nguyen
46d59a2e68
etcdserver: skip when detect a removed peer
Signed-off-by: Dat Tien Nguyen <phongtomfapp@gmail.com>
2024-03-04 21:22:19 +07:00
James Blair
e0955afa40
depdendency: bump google.golang.org/grpc from 1.61.1 to 1.62.0.
Signed-off-by: James Blair <mail@jamesblair.net>
2024-02-28 21:08:42 +13:00
James Blair
170948f681
depdendency: bump go.opentelemetry.io/otel from 1.23.1 to 1.24.0.
Signed-off-by: James Blair <mail@jamesblair.net>
2024-02-28 21:03:45 +13:00