Benjamin Wang
61c8888440
Merge pull request #14602 from ahrtr/enhance_functional_test_20221020
...
functional_test: code cleanup and minor enhancements
2022-10-23 11:00:25 +08:00
Benjamin Wang
655865fd09
Merge pull request #14609 from ZoeShaw101/remove-duplicate-letter
...
raft: remove duplicate letter in comment.
2022-10-22 22:52:55 +08:00
王霄霄
aac5feec94
raft: remove duplicate letter in comment.
...
Signed-off-by: Wang Xiaoxiao 1141195807@qq.com
Signed-off-by: 王霄霄 <1141195807@qq.com>
2022-10-22 19:13:40 +08:00
Benjamin Wang
3b4c255444
Merge pull request #14608 from veshij/auth
...
[e2e] Fix AuthEnable/Disable e2e test implementations
2022-10-22 08:19:05 +08:00
Oleg Guba
44bc007494
Update tests/framework/e2e/etcdctl.go
...
address comment
Co-authored-by: Benjamin Wang <wachao@vmware.com>
Signed-off-by: Oleg Guba <oleg@dropbox.com>
2022-10-21 10:44:09 -07:00
Oleg Guba
24831a0242
Update tests/framework/e2e/etcdctl.go
...
address comment
Co-authored-by: Benjamin Wang <wachao@vmware.com>
Signed-off-by: Oleg Guba <oleg@dropbox.com>
2022-10-21 10:44:09 -07:00
Marek Siarkowicz
023e3409e9
Merge pull request #14600 from qsyqian/refactor/expireExists
...
lessor: simplify expireExists to make it more clear
2022-10-21 09:46:57 +02:00
Oleg Guba
a39374f33a
[e2e] Fix AuthEnable/Disable e2e test implementations
...
Signed-off-by: Oleg Guba <oleg@dropbox.com>
2022-10-20 19:15:31 -04:00
Benjamin Wang
b5751636e3
Merge pull request #14607 from veshij/hashkv
...
[e2e] Fix bug in EtcdctlV3.HashKV() e2e implementation.
2022-10-21 06:02:01 +08:00
Oleg Guba
a466d5cc2e
[e2e] Fix bug in EtcdctlV3.HashKV()
...
Signed-off-by: Oleg Guba <oleg@dropbox.com>
2022-10-20 17:37:16 -04:00
Benjamin Wang
62167d1f1f
clientv3: fix the design & implementation of double barrier
...
Check the client count before creating the ephemeral key, do not
create the key if there are already too many clients. Check the
count after creating the key again, if the total kvs is bigger
than the expected count, then check the rev of the current key,
and take action accordingly based on its rev. If its rev is in
the first ${count}, then it's valid client, otherwise, it should
fail.
Signed-off-by: Benjamin Wang <wachao@vmware.com>
2022-10-20 16:24:20 +08:00
Benjamin Wang
bbda1daecf
functional_test: code cleanup and minor enhancements
...
Cleaned up some useless or dead code;
Remove some unnecessary methods.
Signed-off-by: Benjamin Wang <wachao@vmware.com>
2022-10-20 10:35:30 +08:00
qsyqian
1771cec23d
lessor: refactor expireExists to make it more clear
...
Signed-off-by: qsyqian <qsyqian@gmail.com>
2022-10-20 09:26:04 +08:00
Benjamin Wang
e24402d39f
Merge pull request #14596 from serathius/simplify-e2e-coverage
...
Simplify e2e coverage code
2022-10-18 17:47:16 +08:00
Benjamin Wang
5e791a0a59
Merge pull request #14588 from serathius/downgrade-proceed
...
server: Handle cluster version equal downgrade version
2022-10-18 06:58:25 +08:00
Marek Siarkowicz
e3dca5ed2f
Merge pull request #14590 from katul979/main
...
etcdmain: Corrects the link to supported-platform.md docs
2022-10-17 17:51:50 +02:00
Atul Kumar
97c14d6a80
Merge branch 'etcd-io:main' into main
2022-10-17 18:59:07 +05:30
Marek Siarkowicz
1b3f301cc2
tests: Share SpawnCmdWithLogger between coverage and no coverage scenarios
...
Signed-off-by: Marek Siarkowicz <siarkowicz@google.com>
2022-10-17 14:10:11 +02:00
Marek Siarkowicz
574b3d33d1
test: Remove BinDir global variable
...
Signed-off-by: Marek Siarkowicz <siarkowicz@google.com>
2022-10-17 14:09:51 +02:00
Marek Siarkowicz
9bba38e51f
tests: Include etcd-last-release in BinPath
...
Signed-off-by: Marek Siarkowicz <siarkowicz@google.com>
2022-10-17 14:09:51 +02:00
Marek Siarkowicz
0f9e15fc37
test: Remove accessing etcd via BinDir
...
Signed-off-by: Marek Siarkowicz <siarkowicz@google.com>
2022-10-17 14:09:51 +02:00
Marek Siarkowicz
89a1e7978c
tests: Configure coverage binary paths via init
...
Signed-off-by: Marek Siarkowicz <siarkowicz@google.com>
2022-10-17 14:09:51 +02:00
Marek Siarkowicz
d3b9951126
tests: Refactor BinPath into struct
...
Signed-off-by: Marek Siarkowicz <siarkowicz@google.com>
2022-10-17 14:09:49 +02:00
Marek Siarkowicz
de0efc9aa4
tests: Move global e2e configuration into one file
...
Signed-off-by: Marek Siarkowicz <siarkowicz@google.com>
2022-10-17 14:09:28 +02:00
Marek Siarkowicz
0ff632c004
Merge pull request #14597 from serathius/MustAbsPath
...
tests: Move MustAbsPath function to testutils
2022-10-17 14:05:03 +02:00
Atul Kumar
24bd276915
Version parameter for the doc link.
...
Co-authored-by: Benjamin Wang <wachao@vmware.com>
Signed-off-by: Atul Kumar <atul.kumar@swiggy.in>
2022-10-17 17:07:51 +05:30
Atul Kumar
55df4e6ef3
etcdmain: Updates v3.5 supported platform docs
...
Signed-off-by: Atul Kumar (katul979@gmail.com )
Signed-off-by: Atul Kumar <atul.kumar@swiggy.in>
2022-10-17 17:07:51 +05:30
Marek Siarkowicz
07ca384753
tests: Move MustAbsPath function to testutils
...
Signed-off-by: Marek Siarkowicz <siarkowicz@google.com>
2022-10-17 13:37:14 +02:00
Marek Siarkowicz
2b178fdd96
server: Handle cluster version equal downgrade version
...
Signed-off-by: Marek Siarkowicz <siarkowicz@google.com>
2022-10-17 12:05:57 +02:00
Benjamin Wang
bf6a1d7264
Merge pull request #14591 from ZoeShaw101/dev
...
Tests: Check Watch response error not nil to avoid runtime panic.
2022-10-16 17:00:18 +08:00
Benjamin Wang
0fb4130815
Merge pull request #14589 from ahrtr/add_new_member
...
[test] Support dynamically adding & starting new member
2022-10-16 16:01:16 +08:00
王霄霄
2751ec6479
integration: check Watch response error not nil to avoid runtime panic.
...
Fixes issue: #14259
Signed-off-by: 王霄霄 <1141195807@qq.com>
2022-10-16 11:41:11 +08:00
Benjamin Wang
24ad49091e
test: resolve review comment for the feature of dynamically adding new member
...
Signed-off-by: Benjamin Wang <wachao@vmware.com>
2022-10-15 06:09:58 +08:00
Vitalii Levitskii
11e23f1ef7
Added member interaction into EtcdProcessCluster
...
Rebased this PR. There is no response from the original author,
so Benjamin (ahrtr@) continue to work on this PR.
Signed-off-by: Vitalii Levitskii <vitalii@uber.com>
Signed-off-by: Benjamin Wang <wachao@vmware.com>
2022-10-15 05:53:07 +08:00
Benjamin Wang
f97aac9d61
Merge pull request #14570 from ahrtr/changelog_rules
...
Update changelog readme to add rules on how to add changelog items
2022-10-14 16:12:54 +08:00
Marek Siarkowicz
a861bfed03
Merge pull request #14585 from tjungblu/testport
...
Test port allocating using net.Listen
2022-10-14 10:00:40 +02:00
Thomas Jungblut
20dccfa484
Test port allocating using net.Listen
...
To avoid port clashes during integration tests, we let the OS give us a
free port.
Signed-off-by: Thomas Jungblut <tjungblu@redhat.com>
2022-10-14 09:40:04 +02:00
Benjamin Wang
e913a55f11
Update changelog readme to add rules on how to add changelog items
...
Signed-off-by: Benjamin Wang <wachao@vmware.com>
2022-10-14 10:40:50 +08:00
Benjamin Wang
a5fb57b485
Merge pull request #14586 from serathius/pattern
...
tests: Use bash like patterns in TestAuthority instead of string fo…
2022-10-14 06:11:36 +08:00
Marek Siarkowicz
fdce1b38fb
tests: Use bash like patterns in TestAuthority instead of string formating
...
Signed-off-by: Marek Siarkowicz <siarkowicz@google.com>
2022-10-13 16:45:27 +02:00
Marek Siarkowicz
81bd3fb9f9
tests: Pass only etcd related environment variables during e2e tests
...
Signed-off-by: Marek Siarkowicz <siarkowicz@google.com>
2022-10-13 16:44:22 +02:00
Benjamin Wang
39e3c39a1b
Merge pull request #14583 from ahrtr/changelog_20221013
...
Update both 3.4 and 3.5 changelog to cover two fixes
2022-10-13 19:21:11 +08:00
happlins
8a587447d2
clientv3: fix errors init client RejectOldCluster
...
Signed-off-by: happlins <happlins@foxmail.com>
2022-10-13 17:24:24 +08:00
Benjamin Wang
e19bb869c7
Merge pull request #14584 from ahrtr/functional_test_check_logoutput
...
functional-test: move the check on log-outputs out of the 'if clientTLS' branch
2022-10-13 17:16:35 +08:00
Benjamin Wang
78380ae6b8
functional-test: move the check on log-outputs out of the 'if clientTLS' branch
...
Signed-off-by: Benjamin Wang <wachao@vmware.com>
2022-10-13 16:33:02 +08:00
Benjamin Wang
d15a9d0edc
Merge pull request #14457 from jbml/hashbyrev_compact_main
...
etcdserver: fix corruption check when server has just been compacted
2022-10-13 15:17:38 +08:00
Benjamin Wang
e4cfa07d09
Update both 3.4 and 3.5 changelog to cover two fixes
...
Two fixes:
1. netutil: add url comparison without resolver to URLStringsEqual
2. client/v3: Add backoff before retry when watch stream returns unavailable
Signed-off-by: Benjamin Wang <wachao@vmware.com>
2022-10-13 08:29:45 +08:00
Benjamin Wang
b48641e5f2
Merge pull request #14348 from VinozzZ/add-integration-test-for-tracing
...
embed: add integration test for distributed tracing
2022-10-13 02:11:59 +08:00
Benjamin Wang
1d77b4bd32
Merge pull request #14556 from tomari/tomari/watch-backoff
...
client/v3: Add backoff before retry when watch stream returns unavailable
2022-10-13 02:10:25 +08:00
Benjamin Wang
3b29811dd8
Merge pull request #14565 from ahrtr/functional_test_cleanup_data
...
functional_test: stop etcd and cleanup data when test is successful
2022-10-13 02:07:59 +08:00