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
Anthony Romano
d8ea9d22b6
integration: put key on watch target member for TestWatchWithRequireLeader
...
It's possible the put will not propagate to all members before removing quorum,
causing watches on the key to wait forever.
Fixes #6386
2016-10-28 13:12:26 -04:00
Anthony Romano
a0360a83c9
Merge pull request #6745 from heyitsanthony/private-recipe
...
contrib/recipes: unexport and clean up keys.go
2016-10-28 12:44:58 -04:00
Anthony Romano
8f718e2e5a
contrib/recipes: unexport and clean up keys.go
...
Fixes #6731
2016-10-28 11:41:13 -04:00
Xiang Li
c6cd63dc35
Merge pull request #6747 from sinsharat/client_metric_add_example
...
clientv3: added example for client metrics
2016-10-27 16:42:18 -07:00
sharat
a1bfb31219
clientv3: added example for client metrics
2016-10-28 04:30:17 +05:30
fanmin shi
ea05711522
Merge pull request #6746 from fanminshi/tester-recovery-error-fix
...
functional-tester: always clean up if tester encouters an error
2016-10-27 15:22:07 -07:00
fanmin shi
7f5a7d1da5
functional-tester: always clean up if tester encouters an error
...
The current tester doesn't not clean up if any of the failure injection/recovery fails. if tester fails to recover a dead node, tester hangs in the next round because the tester will keep waiting until cluster becomes healthy which is impossible since a node is down. To fix this issue, we will always clean up if any error happens during each round so that cluster will be healthy for next round.
FIX #6743
2016-10-27 15:07:58 -07:00
Xiang Li
89107a49fa
Merge pull request #6741 from sinsharat/clientv3_add_client_side_metrics
...
clientv3: added client side metrics support
2016-10-27 13:22:10 -07:00
Gyu-Ho Lee
1b36162659
Merge pull request #6647 from gyuho/watch
...
clientv3: send create event over outc
2016-10-27 11:45:22 -07:00
Gyu-Ho Lee
0a3d45a307
clientv3: send create event over outc
2016-10-27 11:11:16 -07:00
sharat
8fd1dd7862
clientv3: added client side metrics support
2016-10-27 22:47:45 +05:30
sharat
c99a9f4075
clientv3: added entries for go-grpc-prometheus for build
2016-10-27 22:44:19 +05:30
sharat
2c974abcb9
clientv3: added go-grpc-prometheus for client meterics
2016-10-27 22:36:05 +05:30
Gyu-Ho Lee
6ec03d3f7c
etcdserver: move 'EtcdServer.send' to raft.go
...
Clear 'TODO'
2016-10-26 16:26:00 -07:00
fanmin shi
8825392da2
Merge pull request #6714 from fanminshi/short_term_lease_check
...
functional-tester: add short lived leases checking
2016-10-26 14:50:55 -07:00
fanmin shi
8d9e2623e1
functional-tester: add short lived leases checking
...
lease stresser now generates short lived leases that will expire before invariant checking.
this addition verifies that the expired leases are indeed being deleted on the sever side.
2016-10-26 14:46:57 -07:00
fanmin shi
d7c21e6837
Merge pull request #6737 from fanminshi/lease_expired_fix
...
functional-tester: increase lease TTL
2016-10-26 10:34:38 -07:00
fanmin shi
1dc60bb97e
functional-tester: increase lease TTL
...
increasing lease TTL ensure that lease doesn't expire during hashes stabilization period.
I observed that it can take a long time for etcd cluster to become stable.
2016-10-26 10:32:52 -07:00
Gyu-Ho Lee
c58ae95429
Merge pull request #6732 from JoshRosso/etcdctl-specify-ttl-unit
...
etcdctl: add ttl unit to flag description
2016-10-25 18:08:02 -07:00
joshrosso
e489229153
etcdctl: add ttl unit to flag description
...
Add the ttl unit (seconds) to --ttl description for etcdctl's mk, mkdir, set,
setdir, update, and updatedir commands.
2016-10-25 17:12:15 -07:00
Xiang Li
12e4dfa9c4
Merge pull request #6715 from fanminshi/lease_hash_fix
...
Lease hash fix
2016-10-25 16:28:11 -07:00
Xiang Li
b398233f4f
Merge pull request #6730 from gyuho/round-prefix
...
etcd-runner: fix typo in round prefix
2016-10-25 16:24:27 -07:00
Xiang Li
99539ff031
Merge pull request #6727 from sinsharat/etcd-runner_add_client_timeout_flag
...
etcd-runner: Added connection timeout flag for client
2016-10-25 16:09:10 -07:00