Ben Darnell
2f34547d39
raft: Check promotable() in MsgTimeoutNow handling
...
If MsgTimeoutNow arrived after a node was removed, the node could start
and win an election, then panic in becomeLeader (see
cockroachdb/cockroach#8535 )
2016-11-07 20:02:21 +08:00
Xiang Li
ecd4803ccc
Merge pull request #6809 from hongchaodeng/doc
...
readme: add 'run etcd on k8s' section
2016-11-04 22:59:42 -07:00
Hongchao Deng
011c452b65
readme: add 'run etcd on k8s' section
2016-11-04 20:28:14 -07:00
Anthony Romano
352d4fa3fa
Merge pull request #6804 from heyitsanthony/stm-conflict
...
grpcproxy: invalidate comparison keys after txn
2016-11-04 17:04:16 -07:00
Xiang Li
476ff67047
Merge pull request #6807 from xiang90/fix_raft_test
...
rafttest: make raft test reliable
2016-11-04 16:31:32 -07:00
Xiang Li
e5987dea37
rafttest: make raft test reliable
2016-11-04 15:55:17 -07:00
Gyu-Ho Lee
91360e1495
Merge pull request #6806 from gyuho/metrics
...
v3rpc: add 'active' gRPC streamsGauge
2016-11-04 12:28:55 -07:00
Gyu-Ho Lee
67082e5bd1
v3rpc: add gRPC active streamsGauge
2016-11-04 11:09:20 -07:00
Anthony Romano
bf08a6142c
grpcproxy: invalidate comparison keys after txn
...
If the txn comparison block makes claims about a key's current
state, then it may say a key has been updated. Future range/txn
operations may expect this update to eventually be propagated through
the cluster and show up in serialized requests. To avoid spinning
forever on txn/serialized range loops, invalidate the comparison keys.
2016-11-04 09:46:43 -07:00
Gyu-Ho Lee
27459425fa
Merge pull request #6799 from gyuho/log-output
...
etcdmain: configurable 'etcd' binary log-output
2016-11-03 14:52:53 -07:00
Xiang Li
a0d206c51f
Merge pull request #6801 from xiang90/fix_snap_test
...
etcdserver: make snaptest fail fast
2016-11-03 14:49:42 -07:00
Xiang Li
6a0a0a7ea1
etcdserver: make snaptest fail fast
2016-11-03 14:44:08 -07:00
Gyu-Ho Lee
6ffd7e3ed1
etcdmain: configurable 'etcd' binary log-output
...
Fix https://github.com/coreos/etcd/issues/5449 .
2016-11-03 14:18:12 -07:00
Gyu-Ho Lee
aa526cd53d
Merge pull request #6798 from gyuho/ctl-doc
...
etcdctl/ctlv3: clarify 'user add' argument (user:password)
2016-11-03 11:06:40 -07:00
Gyu-Ho Lee
31a6efbc13
etcdctl/ctlv3: clarify 'user add' argument (user:password)
2016-11-03 10:47:45 -07:00
Gyu-Ho Lee
f82aac2fc6
Merge pull request #6797 from fanminshi/lease_checker_println_fix
...
etcd-tester: fix lease checker logging format.
2016-11-03 10:17:54 -07:00
fanmin shi
b7ab5c6384
Merge pull request #6788 from fanminshi/lease_http_eof_fix
...
etcd-tester: add retry logic on retriving lease info
2016-11-03 10:14:36 -07:00
fanmin shi
6968028020
etcd-tester: fix lease checker logging format.
...
lease checker used a wrong print format for a variable. this change fixes it.
2016-11-03 10:11:00 -07:00
fanmin shi
649fe7f2af
etcd-tester: add retry logic on retriving lease info
...
getting lease and keys info through raw rpcs rarely experience error such as EOF. This is considered as a failure and causes tester to clean up.
however, they are just transient problem with temporary connection issue which should not be considered as a testing failure. so we add retry logic in case of transient failure.
FIX #6754
2016-11-03 10:05:06 -07:00
Xiang Li
b28b38fb6d
Merge pull request #6793 from timothysc/no-ttl
...
Add a no-ttl flag to etcdctl migrate to discard keys on transform.
2016-11-03 09:00:53 -07:00
Xiang Li
c5ac02164d
Merge pull request #6794 from xiang90/fix_migration
...
ctlv3: fix migration
2016-11-03 08:43:30 -07:00
Timothy St. Clair
97e96feb1d
ctlv3: Add a no-ttl flag to etcdctl migrate to discard keys on transform.
2016-11-03 10:41:54 -05:00
Gyu-Ho Lee
4d2ec2fec1
Merge pull request #6792 from gyuho/leasehttp
...
leasehttp: use graceful close, add tests, remove TODO
2016-11-02 22:55:06 -07:00
Gyu-Ho Lee
bbc1cdafef
Merge pull request #6791 from gyuho/grpc-leader
...
etcdserver: translate EOF to ErrNoLeader for renew, timetolive
2016-11-02 22:54:46 -07:00
Gyu-Ho Lee
cc304ac03c
etcdserver: translate EOF to ErrNoLeader for renew, timetolive
...
Address https://github.com/coreos/etcd/issues/6754 .
In case there are network errors or unexpected EOF errors
in TimeToLive http requests to leader, we translate that into
ErrNoLeader, and expects the client to retry its request.
2016-11-02 22:22:05 -07:00
Xiang Li
2fb2b463a3
Merge pull request #6786 from mitake/empty-user
...
auth, etcdserver: forbid adding a user with empty name
2016-11-02 22:10:58 -07:00
Hitoshi Mitake
f85701a46f
auth, etcdserver: forbid adding a user with empty name
2016-11-03 13:45:39 +09:00
Xiang Li
2ba42990ec
ctlv3: fix migration
2016-11-02 20:00:07 -07:00
Gyu-Ho Lee
c931f4d164
leasehttp: use graceful close, add tests, remove TODO
2016-11-02 16:33:26 -07:00
Anthony Romano
378257161f
Merge pull request #6789 from heyitsanthony/grpcproxy-close-send
...
grpcproxy: reliably track rid in watchergroups
2016-11-02 15:29:08 -07:00
Anthony Romano
fe755b6250
Merge pull request #6748 from sinsharat/client_metric_add_tests
...
clientv3: added test for client metrics
2016-11-02 15:00:08 -07:00
Xiang Li
844378f0a7
Merge pull request #6790 from sinsharat/clientv3_metrics_doc_update
...
clientv3: updated doc for metric support
2016-11-02 14:56:04 -07:00
sharat
195570b621
clientv3: updated doc for metric support
2016-11-03 03:22:59 +05:30
Anthony Romano
8ec4215279
grpcproxy: reliably track rid in watchergroups
...
Couldn't find watcher group from rid on server stream close, leading to
the watcher group sending on a closed channel.
Also got rid of send closing the watcher stream if the buffer is full,
this could lead to a send after close while broadcasting to all receivers.
Instead, if a send times out then the server stream is canceled.
Fixes #6739
2016-11-02 14:42:02 -07:00
sinsharat
13acad85b3
clientv3: added test for client metrics
2016-11-03 00:38:29 +05:30
Xiang Li
7d777a4a64
Merge pull request #6784 from xiang90/lock_warning
...
etcdserver: print out warning when waiting for file lock
2016-11-02 10:34:52 -07:00
Gyu-Ho Lee
5b7728f3cb
Merge pull request #5994 from gyuho/v2-error
...
etcdctl/ctlv2: error handling with JSON
2016-11-01 21:51:16 -07:00
Gyu-Ho Lee
9b470ef4c0
etcdctl/ctlv2: error handling with JSON
2016-11-01 20:59:13 -07:00
Xiang Li
c33d04fb54
etcdserver: print out warning when waiting for file lock
2016-11-01 17:55:16 -07:00
Xiang Li
71bad561e8
Merge pull request #6782 from xiang90/v2store
...
store: do not modify key during scanning
2016-11-01 15:41:03 -07:00
Xiang Li
43045500b2
store: do not modify key during scanning
2016-11-01 14:35:53 -07:00
fanmin shi
71a533fec3
Merge pull request #6771 from fanminshi/refactor_short_lived_lease_logic
...
etcd-tester: refactor checking short lived lease logic
2016-11-01 14:17:43 -07:00
Xiang Li
4f60f1b71f
Merge pull request #6708 from bluepeppers/leader-sync-deadlock
...
client: Prevent deadlocks in Sync
2016-11-01 14:11:21 -07:00
fanmin shi
8a03c95dd4
etcd-tester: refactor checking short lived lease logic
...
move the logic of waiting lease expired from stresser to checker
2016-11-01 14:06:22 -07:00
Anthony Romano
b30dc10812
Merge pull request #6770 from heyitsanthony/fix-grpc
...
grpcproxy: add SetHeader support to ServerStream
2016-11-01 13:55:07 -07:00
Anthony Romano
7ef17d3e97
grpcproxy: add SetHeader support to ServerStream
...
Fixes #6726
2016-11-01 13:28:02 -07:00
Gyu-Ho Lee
4575353693
Merge pull request #6768 from gyuho/wtwt
...
clientv3/integration: close active connection to get ErrClientConnClosing
2016-11-01 12:37:04 -07:00
Gyu-Ho Lee
0684d8c4c6
clientv3/integration: close active connection to get ErrClientConnClosing
...
because clientv3.Close won't trigger it any more
clientv3.Close just closes watch client
instead of closing grpc connection
2016-11-01 11:13:33 -07:00
fanmin shi
94c804b81a
Merge pull request #6766 from fanminshi/stabilization-logic-refractoring
...
functional-tester: remove stablilization limit
2016-11-01 10:43:00 -07:00
Laurie Clark-Michalek
de008c8a4a
client: prevent deadlock in Sync
2016-11-01 17:26:53 +00:00