new-dream
7b8de8194b
pkg: add a verification on the pagebytes which must be > 0
...
Signed-off-by: n00607095 <niechangxu1@huawei.com>
2023-08-25 22:02:45 +08:00
Benjamin Wang
6186538c0c
Merge pull request #16444 from jmhbnz/deflake-testpagewriterrandom
...
[3.5] tests: Backport recent test flake fixes
2023-08-21 15:48:46 +08:00
James Blair
b9e5d9666a
tests: Backport deflake for TestWatchDelay
...
Signed-off-by: James Blair <mail@jamesblair.net>
2023-08-19 21:41:56 +12:00
James Blair
778f2260b1
tests: Backport deflake for TestPageWriterRandom
...
The PageWriter has cache buffer so that it doesn't call the Writer until
the cache is almost full. Since the data's length is random, the pending
bytes should be always less than cache buffer size, instead of page
size.
Signed-off-by: James Blair <mail@jamesblair.net>
2023-08-19 21:41:18 +12:00
Benjamin Wang
0b598c4538
Merge pull request #16435 from jmhbnz/backport-expose-socket-options
...
[3.5] Backport expose socket options
2023-08-18 17:13:05 +08:00
James Blair
164175dfe3
Backport adding unit test for socket options.
...
Co-authored-by: Shawn Gerrard <shawn.gerrard@gmail.com>
Signed-off-by: James Blair <mail@jamesblair.net>
2023-08-18 19:14:57 +12:00
James Blair
2a7bffc63e
Backport export reuse-port and reuse-address
...
so that they cabn be configured via config file.
Co-authored-by: Shawn Gerrard <shawn.gerrard@gmail.com>
Signed-off-by: James Blair <mail@jamesblair.net>
2023-08-18 12:05:19 +12:00
Benjamin Wang
2d2e75dd8e
Merge pull request #16401 from jmhbnz/update-to-go-1.20
...
[3.5] Backport update to golang 1.20 minor release
2023-08-17 19:11:43 +08:00
James Blair
f62a894ae7
Fix goword failure in rafthttp/transport.go.
...
Signed-off-by: James Blair <mail@jamesblair.net>
2023-08-11 21:47:30 +12:00
James Blair
9c7c8c6b3f
Backport update to golang 1.20 minor release.
...
Signed-off-by: James Blair <mail@jamesblair.net>
2023-08-11 21:16:01 +12:00
Benjamin Wang
5d7c457873
Merge pull request #16262 from CaojiamingAlan/add_UnsafeReadScheduledCompact_and_UnsafeReadFinishedCompact
...
[3.5] Add UnsafeReadScheduledCompact and UnsafeReadFinishedCompact
2023-08-03 13:16:15 +01:00
Marek Siarkowicz
81ed2b3cf7
Merge pull request #16340 from jmhbnz/streamline-test-commands
...
[3.5] Backport Makefile recipes for common test commands
2023-08-02 15:54:21 +02:00
Benjamin Wang
d3df4d5365
Merge pull request #16352 from z764969689/release-3.5
...
Backport "bump go version to 1.19.12" to release-3.5
2023-08-02 09:39:33 +01:00
Luke Zhang
de0df43c42
bump go version to 1.19.12
...
Signed-off-by: Luke Zhang <z764969689@163.com>
2023-08-02 15:33:10 +08:00
James Blair
0d829e4bcd
Update workflows to use makefile recipes for unit, integration & e2e-release.
...
Signed-off-by: James Blair <mail@jamesblair.net>
2023-08-02 14:43:40 +12:00
James Blair
84b85a0f0d
Backport Makefile recipes for common test commands.
...
Signed-off-by: James Blair <mail@jamesblair.net>
2023-08-02 09:12:36 +12:00
Benjamin Wang
b9248914cf
Merge pull request #16311 from gocurr/release-3.5
...
[3.5] Backport #16272 to 3.5
2023-07-27 09:03:09 +01:00
Jes Cok
5df43d9730
pkg/flags: fix UniqueURLs'Set to remove duplicates in UniqueURLs'uss
...
From the name of func 'UniqueURLsFromFlag', we can tell that UniqueURLs'uss
should not have duplicates. The current implemention of UniqueURLs'Set
has a bug to make it unique.
Fixes : #16307 .
Signed-off-by: Jes Cok <xigua67damn@gmail.com>
2023-07-26 21:37:32 +08:00
Marek Siarkowicz
7ba4addd87
Merge pull request #16280 from jmhbnz/backport-e2e-release-fix
...
Backport fix to e2e release version identifcation
2023-07-24 12:04:55 +02:00
James Blair
f9ae5f8023
Backport fix to e2e release version identifcation.
...
Signed-off-by: James Blair <mail@jamesblair.net>
2023-07-22 11:00:45 +12:00
Benjamin Wang
679820aa0e
Merge pull request #16270 from CaojiamingAlan/init_client_error
...
Backport #14368 to v3.5
2023-07-19 19:57:30 +01:00
caojiamingalan
a4fa4d3d34
Backport #14368 to v3.5
...
Signed-off-by: caojiamingalan <alan.c.19971111@gmail.com>
2023-07-18 14:53:08 -05:00
caojiamingalan
eb9bfaa983
Follow up https://github.com/etcd-io/etcd/pull/16068#discussion_r1263667496
...
Add a UnsafeReadScheduledCompact and UnsafeReadFinishedCompact
Signed-off-by: caojiamingalan <alan.c.19971111@gmail.com>
2023-07-18 10:54:16 -05:00
Benjamin Wang
8f4b6c9ed2
Merge pull request #16068 from CaojiamingAlan/release-3.5
...
[3.5] etcdserver: backport check scheduledCompactKeyName and finishedCompac…
2023-07-15 10:11:34 +01:00
caojiamingalan
6ac9d94d67
etcdserver: backport check scheduledCompactKeyName and finishedCompactKeyName before writing hash to release-3.5.
...
Fix #15919 .
Check ScheduledCompactKeyName and FinishedCompactKeyName
before writing hash to hashstore.
If they do not match, then it means this compaction has once been interrupted and its hash value is invalid. In such cases, we won't write the hash values to the hashstore, and avoids the incorrect corruption alarm.
Signed-off-by: caojiamingalan <alan.c.19971111@gmail.com>
2023-07-14 19:22:38 -05:00
Benjamin Wang
9ac1d7378a
Merge pull request #16241 from liangyuanpeng/backport_13577_3.5
...
[3.5] Backport #13577 to 3.5
2023-07-14 16:08:51 +01:00
Benjamin Wang
c7d9708387
Merge pull request #16204 from kensou97/release-3.5
...
[3.5] clientv3: create keepAliveCtxCloser goroutine only if ctx can be canc…
2023-07-14 13:46:38 +01:00
Benjamin Wang
f3e1156a21
Merge pull request #16227 from ahrtr/go_3.5_20230712
...
[3.5] Bump go version to 1.19.11 to fix CVE GO-2023-1878
2023-07-14 11:13:52 +01:00
Lan Liang
960cd26bef
Backport #13577
...
Disable auth gracefully without impacting existing watchers.
Signed-off-by: Lan Liang <gcslyp@gmail.com>
2023-07-14 12:50:21 +08:00
Benjamin Wang
9fa58bfc0e
bump go version to 1.19.11 to fix CVE GO-2023-1878
...
Signed-off-by: Benjamin Wang <wachao@vmware.com>
2023-07-12 16:54:34 +01:00
zhangwenkang
4d7b7e5fcd
clientv3: create keepAliveCtxCloser goroutine only if ctx can be canceled
...
Signed-off-by: zhangwenkang <zwenkang@vmware.com>
2023-07-10 23:17:05 +08:00
Benjamin Wang
d4f779a643
Merge pull request #16201 from Tachone/release-3.5
...
[Backport 3.5] etcdutl: fix db double closed
2023-07-10 11:15:05 +01:00
shitao.lst
2921992cbd
[3.5] etcdutl: fix db double closed
...
Signed-off-by: shitao.lst <acm_tach@163.com>
2023-07-10 15:13:13 +08:00
Benjamin Wang
e5bd8f4b7c
Merge pull request #16188 from kensou97/release-3.5
...
[3.5] clientv3: remove v3.WithFirstKey() in Barrier.Wait()
2023-07-06 18:59:22 +01:00
zhangwenkang
6be3ad36be
clientv3: remove v3.WithFirstKey() in Barrier.Wait()
...
fix the unexpected blocking when using Barrier.Wait(), e.g.
NewBarrier(client, "a").Wait() will block if key "a" is not existed but "a0" is existed, but it should return immediately.
Signed-off-by: zhangwenkang <zwenkang@vmware.com>
2023-07-06 16:18:52 +08:00
Benjamin Wang
f3f37299e6
Merge pull request #16151 from jmhbnz/revert-workflow-backport
...
Revert backport of arm64 scheduled workflows
2023-07-04 14:09:24 +01:00
Benjamin Wang
a233b2eef3
Merge pull request #16165 from tjungblu/revbump_3.5
...
[3.5] Adding optional revision bump and mark compacted to snapshot restore
2023-07-04 10:06:30 +01:00
Thomas Jungblut
d0a56c0071
update etcdctl flag description for snapshot restores
...
Signed-off-by: Thomas Jungblut <tjungblu@redhat.com>
2023-07-03 15:33:01 +02:00
Benjamin Wang
f6668e0b78
etcdutl: update description for --mark-compacted and --bump-revision flags in snapshot restore command
...
Signed-off-by: Benjamin Wang <wachao@vmware.com>
2023-07-03 15:31:39 +02:00
Thomas Jungblut
4425ef572e
Adding optional revision bump and mark compacted to snapshot restore
...
Signed-off-by: Allen Ray <alray@redhat.com>
Signed-off-by: Thomas Jungblut <tjungblu@redhat.com>
2023-07-03 12:57:12 +02:00
James Blair
6c1f883638
Revert "Merge pull request #16119 from natusameer/release-3.5"
...
This reverts commit cb38980e2012ecff5e525e7d61cf23ee843b305d, reversing
changes made to f565a94844576391beed88a31403d796c31b84e3.
Changes reversed as scheduled github actions must exist in default branch.
Signed-off-by: James Blair <mail@jamesblair.net>
2023-06-28 17:11:26 +12:00
Marek Siarkowicz
cb38980e20
Merge pull request #16119 from natusameer/release-3.5
...
Add e2e-arm64.yaml and Tests-arm64.yaml to release-3.5
2023-06-27 09:21:50 +02:00
Sameer Natu
c31f282766
Add e2e-arm64.yaml and tests-arm64.yaml to release-3.5 scheduled at 1.30
...
Signed-off-by: Sameer Natu <sameer.natu@gmail.com>
2023-06-25 02:00:24 +00:00
Benjamin Wang
f565a94844
Merge pull request #16019 from tjungblu/putauthshort_3.5
...
[3.5] Early exit auth check on lease puts
2023-06-21 11:04:51 +01:00
Benjamin Wang
306c60a083
Merge pull request #16048 from kkkkun/cp-14457-to-3.5
...
[3.5] etcdserver: fix corruption check when server has just been compacted
2023-06-19 09:33:57 +01:00
Marek Siarkowicz
2c04d51eaa
Merge pull request #16088 from jmhbnz/backport-gover-simplification
...
[3.5] Backport .github/workflows: Read .go-version as a step and not separate workflow
2023-06-16 21:11:54 +02:00
James Blair
b5f07c9b7d
Backport .github/workflows: Read .go-version as a step and not separate workflow.
...
Signed-off-by: James Blair <mail@jamesblair.net>
2023-06-16 20:37:38 +12:00
Thomas Jungblut
423f951409
Add first unit test for authApplierV3
...
This contains a slight refactoring to expose enough information
to write meaningful tests for auth applier v3.
Signed-off-by: Thomas Jungblut <tjungblu@redhat.com>
2023-06-16 09:42:09 +02:00
Thomas Jungblut
b2fb75d147
Early exit auth check on lease puts
...
Mitigates etcd-io#15993 by not checking each key individually for permission
when auth is entirely disabled or admin user is calling the method.
Signed-off-by: Thomas Jungblut <tjungblu@redhat.com>
2023-06-16 09:14:41 +02:00
kkkkun
620a623630
remove stack log when etcdutl restore
...
Signed-off-by: kkkkun <scuzk373x@gmail.com>
2023-06-13 16:45:41 +08:00