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
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
fanmin shi
c781f30ed5
functional-tester: remove stablilization limit
...
This change removes the waiting needed to ensure the cluster to be stable.
FIX #6760
2016-11-01 10:01:59 -07:00
Xiang Li
db83736b7b
Merge pull request #6774 from mitake/linearizable-password-checking
...
etcdserver: linearizable password checking at the API layer
2016-11-01 07:51:27 -07:00
Hitoshi Mitake
fdf433024f
etcdserver: linearizable password checking at the API layer
...
For avoiding a schedule that can cause an inconsistent auth store [1],
password checking must be done in a linearizable manner.
Fixes https://github.com/coreos/etcd/issues/6675 and https://github.com/coreos/etcd/issues/6683
[1] https://github.com/coreos/etcd/issues/6675#issuecomment-255006389
2016-11-01 00:02:33 -07:00
Gyu-Ho Lee
136c02da71
Merge pull request #6738 from gyuho/raft-cleanup
...
etcdserver: move 'EtcdServer.send' to raft.go
2016-10-31 15:15:08 -07:00
Gyu-Ho Lee
b64de4707d
Merge pull request #6724 from johnbazan/ctlv3_add_user_with_password_inline
...
etcdctl: allow to add a user within one command line
2016-10-31 14:31:09 -07:00
Jonathan Bazan
d51a7dba43
etcdctl: Adding e2e tests for userAddTest
2016-10-31 18:14:29 -03:00
Jonathan Bazan
73b4a58ac0
etcdctl: allow to add a user within one command line
...
This makes the "user add usr:pwd" feature available for ctlv3
without asking for the password in a new prompt.
2016-10-31 18:14:19 -03:00
Anthony Romano
4969a0e9e7
Merge pull request #6758 from heyitsanthony/move-checker
...
etcd-tester: refactor stresser / checker management
2016-10-31 13:59:54 -07:00
Anthony Romano
308f2a1695
etcd-tester: refactor stresser/checker organization
...
The checkers and stressers should be composable without special cases; this
patch tries to address that while refactoring out some old cruft.
Namely,
* Single stresser/checker for a tester; built from composition
* Composite stresser via comma-separated list of stressers
* Split stressers into separate files
* Removed v2 only flags and special cases
* Rate limiter shared among key stresser and leases stresser
* Composite checker is now concurrent
* Stresser can return a Checker to check its invariants
* Each lease checker only operates on a single lease stresser
2016-10-31 13:59:04 -07:00
Xiang Li
72fc5f7d1b
Merge pull request #6765 from xiang90/s
...
etcd-runner: move string generation to pkg/stringutil
2016-10-31 12:37:18 -07:00
Xiang Li
9f0ee53e86
etcd-runner: move string generation to pkg/stringutil
2016-10-31 12:20:02 -07:00
Gyu-Ho Lee
30d37b2165
Merge pull request #6763 from gyuho/spell
...
*: fix minor typos
2016-10-31 10:43:17 -07:00
Gyu-Ho Lee
5bd00ab1f6
*: fix minor typos
2016-10-31 09:47:15 -07:00
Gyu-Ho Lee
a1a2d2b1e7
Merge pull request #6762 from gyuho/doc
...
op-guide: 'strict-reconfig-check' true by default
2016-10-31 09:44:57 -07:00
Xiang Li
7e06a95942
Merge pull request #6759 from xiang90/tester
...
etcd-runner: refactor code structure and flag cleanup
2016-10-31 09:07:18 -07:00
Gyu-Ho Lee
4a42c72b5e
op-guide: 'strict-reconfig-check' true by default
2016-10-31 07:59:33 -07:00
Xiang Li
e5c3978725
etcd-runner: refactor code structure and flag cleanup
2016-10-30 18:45:16 -07:00
Anthony Romano
86c4a74139
etcd-tester: move stresser and checker to tester
...
These really belong in tester code; the stressers and
checkers are higher order operations that are orchestrated
by the tester. They're not really cluster primitives.
2016-10-29 10:57:17 -07:00
Gyu-Ho Lee
4a08678ce1
Merge pull request #6749 from gyuho/raft-prevote
...
raft: do not attach term to MsgReadIndex
2016-10-28 22:29:08 -07:00
Gyu-Ho Lee
cb5c92f69b
raft: do not attach term to MsgReadIndex
...
Fix https://github.com/coreos/etcd/issues/6744 .
MsgReadIndex, as MsgProp, is to be forwarded to leader.
So we should treat it as local message.
2016-10-28 22:12:25 -07:00
Anthony Romano
0345226759
Merge pull request #6751 from heyitsanthony/fix-require-leader-test
...
integration: put key on watch target member for TestWatchWithRequireLeader
2016-10-28 23:24:00 -04:00
fanmin shi
bc3e056b4a
Merge pull request #6755 from fanminshi/log-statement-fix
...
functional-tester: fix log statement
2016-10-28 14:40:11 -07:00
fanmin shi
34c906be55
functional-tester: fix log statement
...
simple fix for wrongly printed statement.
2016-10-28 14:27:09 -07:00