5e3910d96c
*: fix govet-shadow lint
...
Signed-off-by: Wei Fu <fuweid89@gmail.com >
2023-09-19 20:24:01 +08:00
0c919dc212
use the more efficient strings.Builder
...
Signed-off-by: cui fliter <imcusg@gmail.com >
2023-05-19 10:44:58 +08:00
007858dc97
etcd-dump-logs: Migrate from zap to log for raw
...
Signed-off-by: Piotr Tabor <ptab@google.com >
2022-12-30 09:22:39 +01:00
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
bb6e892763
tools/etcd-dump-logs: update tool to use the new raft module go.etcd.io/raft/v3
...
Just replaced all go.etcd.io/etcd/raft/v3 with go.etcd.io/raft/v3
under tools/etcd-dump-logs.
Signed-off-by: Benjamin Wang <wachao@vmware.com >
2022-12-02 13:12:19 +08:00
2c9c209eb6
all: Changing Printf and friends to Print if there is no formatting
...
Signed-off-by: Sasha Melentyev <sasha@melentyev.io >
2022-11-15 22:11:23 +03:00
0a08fa2b43
golangci: add import order check
...
Signed-off-by: demoManito <1430482733@qq.com >
2022-09-29 11:30:04 +08:00
7f10dccbaf
Bump go 1.19: update all the dependencies and go.sum files
...
1. run ./scripts/fix.sh;
2. cd tools/mod; gofmt -w . & go mod tidy;
Signed-off-by: Benjamin Wang <wachao@vmware.com >
2022-09-22 08:47:46 +08:00
f8b65d53ba
Add revive to the list of linters.
...
Part of "Enhance the static-analysis workflow" issue. #14164
Signed-off-by: Cenk Alti <cenkalti@gmail.com >
2022-08-27 13:41:14 -04:00
543c87cc38
etcd-dump-logs will panic if there is no WAL entry after the snapshot
2022-04-04 18:58:18 +08:00
b6a2d2d48a
tools: Add -wal-dir flag on etcd-dump-logs to make it compatible with ETCD_WAL_DIR variable ( #13672 )
2022-03-07 21:29:20 -08:00
4032d4f66a
Remove CodeQL errors
2022-01-13 14:29:09 +01:00
44b8ae145b
etcdserver: Move datadir and wal to storage package
2021-08-03 12:47:37 +02:00
aa6597384b
etcd-dump-logs: Print full confState as json for debugging purposes.
2021-04-27 17:17:31 +02:00
3bb7acc8cf
Migrate dependencies pkg/foo -> client/pkg/foo
2021-04-07 00:38:47 +02:00
aaf423e962
server: Update imports.
...
find -name '*.go' | xargs sed -i --follow-symlinks 's|etcd/v3/|etcd/server/v3/|g'
2020-10-26 13:02:32 +01:00
e62417297d
*: Rename of imports of raft (as its now a module)
...
% find -name '*.go' -o -name '*.md' -o -name '*.sh' | xargs sed -i --follow-symlinks 's|etcd/v3/raft|etcd/raft/v3|g'
2020-10-16 13:58:18 +02:00
de55bb6331
pkg: Rename imports after making 'pkg' a module
...
find -name '*.go' | xargs sed --follow-symlinks -i 's|go.etcd.io/etcd/v3/pkg/|go.etcd.io/etcd/pkg/v3/|g'
go fmt ./...
2020-10-13 00:09:27 +02:00
28f2b07623
*: Update references to code moved to the api/ dir.
...
Follow up to file-moves done in the previous commit.
The commit contains purely mechanical consequences of execution (apart
of scripts/genproto.sh):
% find ./ -name '*.go' | xargs sed --follow-symlinks -i 's|v3/etcdserver/api/v3rpc/rpctypes|v3/api/v3rpc/rpctypes|g'
% find ./ -name '*.go' | xargs sed --follow-symlinks -i 's|v3/version|v3/api/version|g'
% find ./ -name '*.go' | xargs sed --follow-symlinks -i 's|v3/mvcc/mvccpb|v3/api/mvccpb|g'
% find ./ -name '*.go' | xargs sed --follow-symlinks -i 's|v3/etcdserver/etcdserverpb|v3/api/etcdserverpb|g'
% find ./ -name '*.go' | xargs sed --follow-symlinks -i 's|v3/etcdserver/api/membership/membershippb|v3/api/membershippb|g'
% find ./ -name '*.go' | xargs sed --follow-symlinks -i 's|v3/auth/authpb|v3/api/authpb|g'
% find ./ -name '*.proto' -o -name '*.md' | xargs -L 1 sed --follow-symlinks -i 's|/mvcc/mvccpb/kv.proto|/api/mvccpb/kv.proto|g'
% find ./ -name '*.proto' -o -name '*.md' | xargs -L 1 sed --follow-symlinks -i 's|/auth/authpb/auth.proto|/api/authpb/auth.proto|g'
% find ./ -name '*.proto' -o -name '*.md' | xargs -L 1 sed --follow-symlinks -i 's|/etcdserver/api/membership/membershippb/membership.proto|/api/membershippb/membership.proto|g'
I also modified manually paths in scripts/genproto.sh.
% go fmt ./...
2020-10-06 11:56:16 +02:00
205a656cc5
Merge pull request #11853 from viviyww/dev1
...
tools: fix test case errors in etcd-dump-logs
2020-09-21 09:13:31 -07:00
c88d1497ee
tools: fix test case errors in etcd-dump-logs
...
Fix test case errors in etcd-dump-logs and the error is the time zone.
When the GOST time zone is CST or PST and the test case will be failed.
So we should set UTC as the standard time zone.
2020-09-21 15:54:47 +08:00
96cce208c2
go.mod: use go.etcd.io/etcd/v3 versioning
...
This change makes the etcd package compatible with the existing Go
ecosystem for module versioning.
Used this tool to update package imports:
https://github.com/KSubedi/gomove
2020-04-28 00:57:35 +00:00
4e551d06ed
tools/etcd-dump-logs: Fixed default values for -entry-type flag
...
The tool takes default values but it was not visible which default
values were taken. Added default values in proper place, and added a
newline at the end of output.
2019-09-06 20:11:41 +01:00
867b31e01a
etcd-dump-logs: correct logging message word
...
Signed-off-by: Guangming Wang <guangming.wang@daocloud.io >
2019-08-10 17:01:57 +08:00
b9c051e7a7
raftpb: clean up naming in ConfChange
2019-07-23 10:40:03 +02:00
34bd797e67
*: revert module import paths
...
Signed-off-by: Gyuho Lee <leegyuho@amazon.com >
2019-05-28 15:39:35 -07:00
9150bf52d6
go modules: Fix module path version to include version number
2019-04-26 15:29:50 -07:00
d37f1521b7
*: update import paths to "go.etcd.io/etcd"
...
Signed-off-by: Gyuho Lee <leegyuho@amazon.com >
2018-08-28 17:47:55 -07:00
2edb954bce
lease: Checkpoint lease TTLs to prevent indefinite auto-renewal of long lived leases
2018-07-23 16:12:34 -07:00
29121a8cee
etcd-dump-logs: add decoder support
2018-05-31 14:29:46 -07:00
7dabd6c255
*: rename internal packages in tools/testing
...
Signed-off-by: Gyuho Lee <gyuhox@gmail.com >
2018-05-21 07:45:34 -07:00
f523b0b33f
tools/etcd-dump-logs: pass zap logger to raftsnap
...
Signed-off-by: Gyuho Lee <gyuhox@gmail.com >
2018-05-17 13:59:29 -07:00
553325721a
etcd-dump-logs: add entry-type flag to list entries of specific types and add test
2018-04-26 18:59:51 -07:00
9063805180
contrib/tools: support structured logger
...
Signed-off-by: Gyuho Lee <gyuhox@gmail.com >
2018-04-16 17:36:00 -07:00
9b5d6edc4b
*: revert "internal/raftsnap"
...
Signed-off-by: Gyuho Lee <gyuhox@gmail.com >
2018-02-26 17:11:40 -08:00
dee39bf786
internal/raftsnap: move "raftsnap" to internal
...
Signed-off-by: Gyuho Lee <gyuhox@gmail.com >
2018-01-24 10:36:04 -08:00
2b6fd3094f
*: rename "snap" to "raftsnap" package
...
Signed-off-by: Gyuho Lee <gyuhox@gmail.com >
2018-01-24 10:26:07 -08:00
931dfd7da8
etcd-dump-logs: take data-dir as argument, add TODO
...
Signed-off-by: Gyuho Lee <gyuhox@gmail.com >
2017-12-18 14:20:56 -08:00
75110dd839
*: fix naked returns
...
Signed-off-by: Gyu-Ho Lee <gyuhox@gmail.com >
2017-11-10 18:46:15 -08:00
2f1542c06d
*: use filepath.Join for files
2017-03-16 07:46:06 -07:00
3d523e34b1
tools: update LICENSE header
2016-05-12 20:50:17 -07:00
7fffd6ffd2
etcd-dump-logs: don't try to acquire wal file locks
...
can now dump logs from a running etcd instance
2016-03-31 21:51:20 -07:00
3611a9ad2e
tools/etcd-dump-logs: support parsing v3 log
2016-02-10 13:52:02 -08:00
d6f8a30f7c
tool: dump tool supports index
2015-02-18 09:13:47 -08:00
161b1d2e2e
tools: etcd-dump-logs tool support dump from a given snapshot file
2015-02-11 10:50:04 -08:00
f1ed69e883
*: switch to line comments for copyright
...
Build tags are not compatible with block comments.
Also adds copyright header to a few places it was missing.
2015-01-26 09:53:30 -08:00
84f62f21ee
wal: record and check snapshot
2015-01-06 16:27:40 -08:00
8b0c7bf652
tools: add etcd-dump-logs
...
The tool can dump the log from data directory.
It helps develop and debug.
2014-12-30 16:14:27 -08:00