Piotr Tabor
8ec3cbc551
fixup! Add --raw mode to ./etcd-dump-log
...
Signed-off-by: Piotr Tabor <ptab@google.com>
2022-12-30 09:22:39 +01:00
Piotr Tabor
d79bc3fa7e
etcd-dump-logs: Fix order of imports..
...
Signed-off-by: Piotr Tabor <ptab@google.com>
2022-12-30 09:22:39 +01:00
Piotr Tabor
e571fb7baa
Add --raw mode to ./etcd-dump-log
...
This mode allows to look at RAW protos for all entries in WAL logs in the given directory.
Signed-off-by: Piotr Tabor <ptab@google.com>
2022-12-30 09:22:34 +01:00
Piotr Tabor
58681d3feb
Expose types of entries within the WAL log for access from the tools.
...
Signed-off-by: Piotr Tabor <ptab@google.com>
2022-12-30 09:19:23 +01:00
Piotr Tabor
0d8aad54ba
wal: Expose Decoder as package visible interface.
...
Such that can be used by tools.
Signed-off-by: Piotr Tabor <ptab@google.com>
2022-12-30 09:19:23 +01:00
Piotr Tabor
bee2a08968
wal decoding: Add optional mode to ignore CRC errors.
...
Signed-off-by: Piotr Tabor <ptab@google.com>
2022-12-30 09:19:23 +01:00
Piotr Tabor
498619bdda
wal decoder: report file & offset in case of CRC mismatch.
...
Signed-off-by: Piotr Tabor <ptab@google.com>
2022-12-30 09:19:23 +01:00
Piotr Tabor
bcd5b54e7f
Merge pull request #15055 from ptabor/20221228-fix-dump-logs-tests
...
etcd-dump-logs: Make the tests work again.
2022-12-30 09:17:34 +01:00
Benjamin Wang
9d6b49ed16
Merge pull request #15056 from ptabor/20221218-goimport-tests
...
Goimports: Apply automated fixing to test files as well.
2022-12-30 10:18:05 +08:00
Marek Siarkowicz
18a5dc417b
Merge pull request #14924 from serathius/linearizability-multiple-keys
...
tests: Support multiple keys in linearizability tests
2022-12-29 22:47:52 +01:00
Piotr Tabor
14a1bf1d26
etcd-dump-logs: Make the tests work again.
...
The tests are subtle as they skip if the binary is not generated in the local directory.
$ go build . && go test
PASS
ok go.etcd.io/etcd/v3/tools/etcd-dump-logs 0.769s
Signed-off-by: Piotr Tabor <ptab@google.com>
2022-12-29 13:08:24 +01:00
Piotr Tabor
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
Piotr Tabor
6f899a7b40
Merge pull request #15052 from ptabor/20221228-goimports-fix
...
./scripts/fix.sh: Takes care of goimports across the whole project.
2022-12-29 11:31:22 +01:00
Marek Siarkowicz
d4c8611be9
tests: Add comments to linearizability functions
...
Signed-off-by: Marek Siarkowicz <siarkowicz@google.com>
Co-authored-by: Benjamin Wang <wachao@vmware.com>
2022-12-29 10:02:21 +01:00
Piotr Tabor
cf22f60e8b
Merge pull request #15053 from wafuwafu13/show-as-learner
...
enhancement(ctlv3): display `as learner` when member add as learner
2022-12-29 09:44:26 +01:00
Piotr Tabor
9e1abbab6e
Fix goimports in all existing files. Execution of ./scripts/fix.sh
...
Signed-off-by: Piotr Tabor <ptab@google.com>
2022-12-29 09:41:31 +01:00
Benjamin Wang
d0cfee180d
Merge pull request #15054 from fuweid/cleanup-old-build-tags
...
chore: delete // +build buildtag by `go fix`
2022-12-29 15:00:27 +08:00
Wei Fu
4d0b91947e
chore: delete // +build buildtag by go fix
...
Signed-off-by: Wei Fu <fuweid89@gmail.com>
2022-12-29 14:17:05 +08:00
wafuwafu13
4e8761b200
go fmt
...
Signed-off-by: wafuwafu13 <mariobaske@i.softbank.jp>
2022-12-29 13:18:23 +09:00
wafuwafu13
0c67e318d7
enhancement(ctlv3): display as learner when member add as learner
...
Signed-off-by: wafuwafu13 <mariobaske@i.softbank.jp>
2022-12-29 13:18:23 +09:00
Marek Siarkowicz
ff71f34368
tests: Support multiple keys in linearizability tests
...
Signed-off-by: Marek Siarkowicz <siarkowicz@google.com>
2022-12-28 20:03:36 +01:00
Marek Siarkowicz
a4c1b3a9e2
Merge pull request #15045 from serathius/linearizability-model
...
tests: Refactor etcd model
2022-12-28 20:01:00 +01:00
Piotr Tabor
5a28a02b97
./scripts/fix.sh: Takes care of goimports across the whole project.
...
Signed-off-by: Piotr Tabor <ptab@google.com>
2022-12-28 16:37:55 +01:00
Piotr Tabor
abf80a8e10
Merge pull request #15051 from JOJO0527/patch-2
...
etcdserver: fix typo in comment
2022-12-28 14:14:09 +01:00
KiloG
101a2a61ea
etcdserver: fix typo in comment
...
etcdserver: fix typo in comment
2022-12-28 18:41:08 +08:00
Benjamin Wang
ff71968046
Merge pull request #15050 from ahrtr/fix_rate_limit_20221228
...
Added 'secrets.GITHUB_TOKEN' for the static-analysis workflow
2022-12-28 16:15:08 +08:00
Benjamin Wang
a60db1192d
Added 'secrets.GITHUB_TOKEN' for the static-analysis workflow
...
Refer to: https://github.com/arduino/setup-protoc/issues/63
Signed-off-by: Benjamin Wang <wachao@vmware.com>
2022-12-28 15:43:44 +08:00
Benjamin Wang
1866fa6f3d
Merge pull request #15047 from etcd-io/dependabot/github_actions/ossf/scorecard-action-2.1.2
...
build(deps): bump ossf/scorecard-action from 2.1.0 to 2.1.2
2022-12-27 07:12:12 +08:00
dependabot[bot]
0fcd828de9
build(deps): bump ossf/scorecard-action from 2.1.0 to 2.1.2
...
Bumps [ossf/scorecard-action](https://github.com/ossf/scorecard-action ) from 2.1.0 to 2.1.2.
- [Release notes](https://github.com/ossf/scorecard-action/releases )
- [Changelog](https://github.com/ossf/scorecard-action/blob/main/RELEASE.md )
- [Commits](937ffa90d7...e38b1902ae
)
---
updated-dependencies:
- dependency-name: ossf/scorecard-action
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com>
2022-12-26 17:18:42 +00:00
Benjamin Wang
9169522d72
Merge pull request #15021 from ramil600/em_manager
...
clientv3/naming/endpoints: fix endpoints prefix bug
2022-12-26 10:19:26 +08:00
Marek Siarkowicz
de8b914eb0
Merge pull request #14909 from serathius/linearizability-issue14685-real
...
tests: Reproduce issue 14685
2022-12-25 06:48:22 +01:00
Marek Siarkowicz
b108fabf86
tests: Reproduce issue 14685
...
Signed-off-by: Marek Siarkowicz <siarkowicz@google.com>
2022-12-24 21:26:57 +01:00
Marek Siarkowicz
922bed1ae6
tests: Refactor etcd model
...
Signed-off-by: Marek Siarkowicz <siarkowicz@google.com>
2022-12-24 21:12:32 +01:00
Piotr Tabor
683a7e8c6b
Merge pull request #15040 from ahrtr/update_nsswitch
...
Update nsswitch.conf file
2022-12-23 15:20:54 +01:00
Benjamin Wang
f01cfda7c9
update nsswitch.conf file
...
Signed-off-by: Benjamin Wang <wachao@vmware.com>
2022-12-23 20:27:53 +08:00
Benjamin Wang
7d5151532c
Merge pull request #15039 from ahrtr/changelog_remove_busybox_20221223
...
Changelog: update base image to static-debian11 and removd dependency on busybox
2022-12-23 20:12:51 +08:00
Benjamin Wang
e06cff4d5d
update changelog to update base image to static-debian11 and removd dependency on busybox
...
Signed-off-by: Benjamin Wang <wachao@vmware.com>
2022-12-23 19:26:17 +08:00
Benjamin Wang
1e14a0e31d
Merge pull request #15036 from ahrtr/remove_busybox_20221223
...
remove the dependency on busybox
2022-12-23 18:09:28 +08:00
Benjamin Wang
27ca4d5488
remove the dependency on busybox
...
Signed-off-by: Benjamin Wang <wachao@vmware.com>
2022-12-23 17:28:24 +08:00
Ramil Mirhasanov
f0153222f1
clientv3/naming/endpoints: fix endpoints prefix bug
...
fixes bug with multiple endpoints with same prefix
Signed-off-by: Ramil Mirhasanov <ramil600@yahoo.com>
2022-12-22 13:36:16 +03:00
Benjamin Wang
16e1fff519
changelog: update the release date of etcd v3.4.23
...
Signed-off-by: Benjamin Wang <wachao@vmware.com>
2022-12-21 14:36:51 +08:00
Benjamin Wang
054b24b425
Merge pull request #15031 from ahrtr/SnapshotWithVersion_nil_panic_20221220
...
clientv3: add protection code to prevent SnapshotWithVersion from panicking
2022-12-21 06:45:31 +08:00
Benjamin Wang
4d9b709ce0
Merge pull request #15024 from wafuwafu13/client-isunavailableerr-test
...
test(client): add `TestIsUnavailableErr`
2022-12-21 06:42:44 +08:00
wafuwafu13
2041d5f245
fix: change error message
...
Signed-off-by: wafuwafu13 <mariobaske@i.softbank.jp>
2022-12-20 21:54:52 +09:00
wafuwafu13
57413851b6
fix(client): change error message
...
Signed-off-by: wafuwafu13 <mariobaske@i.softbank.jp>
2022-12-20 21:52:59 +09:00
wafuwafu13
dc88d90763
test: add TestIsUnavailableErr
...
Signed-off-by: wafuwafu13 <mariobaske@i.softbank.jp>
2022-12-20 21:52:59 +09:00
wafuwafu13
77e4e87ee7
refactor: use assert
...
Signed-off-by: wafuwafu13 <mariobaske@i.softbank.jp>
2022-12-20 21:52:58 +09:00
Benjamin Wang
dc680e3580
Merge pull request #15023 from unai-ttxu/task/fix_etcdctl_member_list_hex_consistency
...
Improve memberList output consistency
2022-12-20 12:52:40 +08:00
Benjamin Wang
39d96b2557
clientv3: add protection code to prevent SnapshotWithVersion from panicking
...
Signed-off-by: Benjamin Wang <wachao@vmware.com>
2022-12-20 12:51:08 +08:00
Benjamin Wang
d3619e9332
Merge pull request #15012 from wafuwafu13/credentials-test
...
test(client): add `credentials_test.go`
2022-12-20 10:25:00 +08:00