193e60ebd9
Merge pull request #11670 from tangcong/optimize-auth-store-log
...
*: optimize auth/etcdserver logs to facilitate troubleshooting data inconsistency
2020-03-16 00:15:14 +08:00
5a17367923
etcdserver: print warn log when failed to apply request
2020-03-10 23:13:53 +08:00
15eeb2c4ae
etcdserver: add auth revision to AuthStatus to improve observability and testability
2020-03-04 22:37:24 +08:00
c94782cd55
etcdserver: remove capnslog ( #11611 )
...
remove capnslog from etcdserver pkg, except etcdserver/api.
2020-02-11 08:54:14 -08:00
fda8d38bd4
etcdserver: mark AuthStatus as no side effect request
2020-02-11 23:26:50 +09:00
071e70cdc4
*: add a new API and command for checking auth status ( #11536 )
...
This changes have started at etcdctl under auth.go, and make changes to stub out everything down into the internal raft. Made changes to the .proto files and regenerated them so that the local version would build successfully.
2020-02-05 19:27:42 -08:00
5cd2502ab1
etcdserver: use v3 to publish member attr
2019-12-05 16:25:13 -08:00
0c3401fa76
etcdserver: use V3 to update cluster version
2019-12-05 16:25:13 -08:00
57aa68af5a
etcdserver: trace compaction request; add return parameter 'trace' to applierV3.Compaction()
...
mvcc: trace compaction request; add input parameter 'trace' to KV.Compact()
2019-10-07 09:55:27 -07:00
3a3eb24c69
etcdserver: trace raft requests.
2019-10-01 15:38:52 -07:00
401df4bb8e
etcdserver: add put request steps.
...
mvcc: add put request steps; add trace to KV.Write() as input parameter.
2019-10-01 14:08:06 -07:00
1d6ef8370e
pkg: use zap logger to format the structure log output.
2019-09-30 13:11:21 -07:00
3830b3ef11
pkg: add field to record additional detail of trace; add stepThreshold
...
to reduce log volume.
2019-09-30 13:11:21 -07:00
f4e7fc56a7
pkg: create package traceutil for tracing. mvcc: add tracing
...
steps:range from the in-memory index tree; range from boltdb.
etcdserver: add tracing steps: agreement among raft nodes before
linerized reading; authentication; filter and sort kv pairs; assemble
the response.
2019-09-30 13:06:02 -07: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
1399bc69ce
etcdserver: 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
b47e148d5d
etcdserver: Add response byte size and range response count to took too long warning
2018-06-11 10:02:30 -07:00
a9225c164a
etcdserver: not print password in the warning message of expensive request
...
Fix https://github.com/coreos/etcd/issues/9635
2018-04-30 13:44:27 -07:00
bdbed26f64
etcdserver: support structured logging
...
Signed-off-by: Gyuho Lee <gyuhox@gmail.com >
2018-04-16 17:36:00 -07:00
8a518b01c4
*: revert "internal/mvcc" change
...
Signed-off-by: Gyuho Lee <gyuhox@gmail.com >
2018-02-26 17:11:40 -08:00
dd2f3b0de8
*: revert "internal/lease" change
...
Signed-off-by: Gyuho Lee <gyuhox@gmail.com >
2018-02-26 17:11:40 -08:00
bb95d190c1
*: revert "internal/auth" change
...
Signed-off-by: Gyuho Lee <gyuhox@gmail.com >
2018-02-26 17:11:40 -08:00
b83244bd35
etcdserver: improve request took too long warning
2018-02-06 12:15:52 -08:00
6c91766490
*: move "auth" to "internal/auth"
2018-01-29 14:57:35 +09:00
80d15948bc
*: move "mvcc" to "internal/mvcc"
...
Signed-off-by: Gyuho Lee <gyuhox@gmail.com >
2018-01-26 11:14:41 -08:00
349a377a67
*: move "lease" to "internal/lease"
...
Signed-off-by: Gyuho Lee <gyuhox@gmail.com >
2018-01-26 11:09:29 -08:00
f649132a5a
auth, etcdserver: follow the correct usage of context
...
The keys of context shouldn't be string. They should be a struct of
their own type.
Fix https://github.com/coreos/etcd/issues/8826
2017-11-21 15:31:19 +09:00
ba233e2f4d
etcdserver: preallocate slice in apply
...
Signed-off-by: Gyu-Ho Lee <gyuhox@gmail.com >
2017-11-06 09:13:12 -08:00
0b2d8a6c96
*: fix minor typos
...
Signed-off-by: Gyu-Ho Lee <gyuhox@gmail.com >
2017-09-11 07:33:35 -07:00
f65aee0759
*: replace 'golang.org/x/net/context' with 'context'
...
Signed-off-by: Gyu-Ho Lee <gyuhox@gmail.com >
2017-09-07 13:39:42 -07:00
31381da53a
etcdserver: raise alarm on cluster corruption
...
Fixes #7125
2017-08-22 09:59:59 -07:00
ec4ca4408f
etcdserver: support lease txn comparison
2017-07-31 13:00:04 -07:00
6ed51dc621
etcdserver, v3rpc: support nested txns
2017-06-21 14:33:15 -07:00
8d7c29c732
etcdserver, etcdserverpb: Txn.Compare range_end support
2017-06-16 12:13:27 -07:00
d173b09a1b
etcdserver: use same ReadView for read-only txns
...
A read-only txn isn't serialized by raft, but it uses a fresh
read txn for every mvcc access prior to executing its request ops.
If a write txn modifies the keys matching the read txn's comparisons,
the read txn may return inconsistent results.
To fix, use the same read-only mvcc txn for the duration of the etcd
txn. Probably gets a modest txn speedup as well since there are
fewer read txn allocations.
2017-06-09 09:20:38 -07:00
0c655902f2
auth, etcdserver: protect revoking lease with auth
...
Currently clients can revoke any lease without permission. This commit
lets etcdserver protect revoking with write permission.
This commit adds a mechanism for generating internal token. It is used
for indicating that LeaseRevoke was issued internally so it should be
able to delete any attached keys.
2017-06-07 17:46:14 -07:00
ac69e63fa8
etcdserver: fill-in Auth API Header in apply layer
...
Replacing "etcdserver: fill a response header in auth RPCs"
The revision should be set at the time of "apply",
not in later RPC layer.
Fix https://github.com/coreos/etcd/issues/7691
Signed-off-by: Gyu-Ho Lee <gyuhox@gmail.com >
2017-04-17 14:26:26 -07:00
8ad935ef2c
etcdserver: use cancelable context for server initiated requests
2017-03-31 19:19:33 -07:00
58da8b17ee
etcdserver: support mvcc txn
2017-03-08 20:54:15 -08:00
8a87769a09
etcdserver: use prev-lease for 'ignore_lease' writes
2017-01-25 03:05:55 +05:30
8752ee52a5
etcdserver: use prev-value for ignore_value writes
2017-01-13 15:13:18 -08:00
c2fd42b556
etcdserver, clientv3: add "!=" to txn
...
adding != to compare is a requested functionality from a etcd user
FIX #6719
2016-11-09 14:28:36 -08:00
1cd6fefd49
etcdserver: set sort ASCEND for empty sort order
...
when target is not key
2016-10-18 16:29:19 -07:00
9df97eb441
etcdserver: increase warnApplyDuration from 10ms to 100ms
...
When running test suites for a client locally I'm getting spammed by log
lines such as:
etcdserver: apply entries took too long [14.226771ms for 1 entries]
The comments in #6278 mention there were future plans of increasing the
threshold for logging these warnings, but it hadn't been done yet.
2016-10-13 17:55:50 +01:00
dbaa44372b
etcdserver: better panic logging
2016-10-11 13:34:18 -07:00
65ac718a11
etcdserver: use 'TTL()' on lease.Lease
2016-10-06 11:24:12 -07:00
c0981a90f7
etcdserver, etcdserverpb: range min_create_revision and max_create_revision
2016-09-14 15:31:45 -07:00
af0264d2e6
etcdserver, etcdserverpb: add MinModRevision and MaxModRevision options to Range
2016-09-12 15:17:57 -07:00