fanmin shi
debc69e1f2
etcd-runner: pass in lock name as a command arg for lock_racer.
2017-04-25 14:18:42 -07:00
fanmin shi
72fb756af3
etcd-runner: add lease ttl as a flag and fatal when err in lease-runner.
2017-04-25 14:18:42 -07:00
fanmin shi
d57ad8ec8d
etcd-runner: add barrier, observe !ok handling, and election name arg to election-runner.
2017-04-25 14:17:59 -07:00
fanmin shi
fa85445ef8
etcd-runner: add rate limiting in doRounds()
2017-04-25 14:00:52 -07:00
fanmin shi
b94b8b5707
etcd-runner: move root cmd into command package
...
this allows easier sharing of global variable for sub commands.
2017-04-25 10:19:20 -07:00
Anthony Romano
0d52598fc1
Merge pull request #7754 from heyitsanthony/doc-check-v3-data
...
op-guide: add command for checking if there's any v3 data
2017-04-17 14:05:57 -07:00
Anthony Romano
cf8ab8c7a6
op-guide: add command for checking if there's any v3 data
...
Fixes #7681
2017-04-17 12:31:21 -07:00
Hitoshi Mitake
6ad9d1609a
Merge pull request #7717 from mitake/auth-output-fields
...
etcdctl: show responses of auth RPCs if --write-output=fields is passed
2017-04-17 14:12:59 +09:00
Xiang Li
7e3dd74314
Merge pull request #7748 from darasion/master
...
clientv3/namespace: fix incorrect watching prefix-end
2017-04-15 15:17:35 -07:00
darasion
0e7fd4a37c
clientv3/namespace: fix incorrect watching prefix-end
...
using "abc" will watch the wrong range when WithPrefix() specified.
2017-04-15 22:31:50 +08:00
Anthony Romano
e2d0db95eb
Merge pull request #7744 from heyitsanthony/fix-auth-stop-race
...
auth: fix race on stopping simple token keeper
2017-04-14 12:38:47 -07:00
Anthony Romano
2951e7f6e4
Merge pull request #7733 from heyitsanthony/fix-client-foreign-dial
...
clientv3: let client dial endpoints not in the balancer
2017-04-14 10:45:17 -07:00
Anthony Romano
fdf7798137
auth: fix race on stopping simple token keeper
...
run goroutine was resetting a field for no reason and without holding a lock.
This patch cleans up the run goroutine management to make the start/stop path
less racey in general.
2017-04-14 09:50:33 -07:00
Hitoshi Mitake
8efc42e25f
etcdctl: show responses of auth RPCs if --write-output=fields is passed
2017-04-14 11:48:42 +09:00
Gyu-Ho Lee
cfbc5e5c3b
Merge pull request #7706 from gyuho/wait-apply-conf-change
...
etcdserver: wait apply on conf change Raft entry
2017-04-13 16:54:06 -07:00
Gyu-Ho Lee
04354f32ab
etcdserver: wait apply on conf change Raft entry
...
When apply-layer sees configuration change entry in
raft.Ready.CommittedEntries, the server should not proceed
until that entry is applied. Otherwise, follower's raft
layer advances, possibly election-timeouts, and becomes
the leader in single-node cluster, before add-node conf
change of other nodes is applied.
Fix https://github.com/coreos/etcd/issues/7595 .
Signed-off-by: Gyu-Ho Lee <gyuhox@gmail.com>
2017-04-13 15:59:24 -07:00
Xiang Li
957c9cd1df
Merge pull request #7734 from mitake/status-auth
...
etcdserver: let Status() not require authentication
2017-04-13 15:53:33 -07:00
Anthony Romano
8fdfac2843
Merge pull request #7730 from heyitsanthony/return-member-list
...
*: return updated member list in v3 rpcs
2017-04-13 15:39:38 -07:00
Anthony Romano
1153e1e7d9
Merge pull request #7687 from heyitsanthony/deny-tls-ipsan
...
transport: deny incoming peer certs with wrong IP SAN
2017-04-13 15:03:25 -07:00
Gyu-Ho Lee
7607ace95a
Merge pull request #7735 from gyuho/grpc-shutdown
...
pkg/transport: add 'IsClosedConnError'
2017-04-13 13:16:57 -07:00
Gyu-Ho Lee
6c2fb5105d
clientv3/integration: use 'transport.IsClosedConnError'
...
Signed-off-by: Gyu-Ho Lee <gyuhox@gmail.com>
2017-04-13 11:55:23 -07:00
Gyu-Ho Lee
56b111df0c
rafthttp: use 'transport.IsClosedConnError'
...
Signed-off-by: Gyu-Ho Lee <gyuhox@gmail.com>
2017-04-13 11:55:22 -07:00
Gyu-Ho Lee
8ce579aac9
pkg/transport: add 'IsClosedConnError'
...
Signed-off-by: Gyu-Ho Lee <gyuhox@gmail.com>
2017-04-13 11:55:18 -07:00
Gyu-Ho Lee
9eb3e2c6b4
Merge pull request #7736 from gyuho/todo
...
embed: remove ReadTimeout TODO
2017-04-13 11:40:53 -07:00
Anthony Romano
0b19921ec0
Merge pull request #7729 from heyitsanthony/fix-auth-token-crash
...
auth: protect simpleToken with single mutex and check if enabled
2017-04-13 11:23:15 -07:00
Gyu-Ho Lee
537c7100b0
embed: remove ReadTimeout TODO
...
ref. https://github.com/golang/go/issues/9524#issuecomment-271937649
Signed-off-by: Gyu-Ho Lee <gyuhox@gmail.com>
2017-04-13 10:55:45 -07:00
Anthony Romano
2dd361aba5
Merge pull request #7694 from heyitsanthony/report-test
...
report: add test for Report interface
2017-04-13 10:39:55 -07:00
Anthony Romano
8077be93b8
Merge pull request #7728 from nokia/clients
...
Adding C++ bindings
2017-04-13 10:05:18 -07:00
csatari
b9f9d2e786
Documentation: Adding a separate v2 and a v3 API binding for C++
...
To draw the attention of the community to these.
2017-04-13 13:15:06 +02:00
Hitoshi Mitake
67f2e41f20
etcdserver: let Status() not require authentication
...
The information that can be obtained with the RPC doesn't need to be
protected.
Fix https://github.com/coreos/etcd/issues/7721
2017-04-13 17:39:09 +09:00
Anthony Romano
4582a7e900
Merge pull request #7731 from heyitsanthony/remove-dead-srv-arg
...
discovery: remove dead token argument from SRVGetCluster
2017-04-12 20:09:11 -07:00
Anthony Romano
46971fa1db
integration: test client can dial endpoints not in balancer
2017-04-12 20:07:04 -07:00
Anthony Romano
9b8e39e7ca
clientv3: let client.Dial() dial endpoints not in the balancer
2017-04-12 20:07:03 -07:00
Anthony Romano
e58d39611a
Merge pull request #7725 from heyitsanthony/platform-subsection
...
Documentation: reshuffle op-guide to include platforms and upgrading
2017-04-12 17:05:14 -07:00
Anthony Romano
780a7d359c
discovery: remove dead token argument from SRVGetCluster
...
Can add the argument back when it's actually used something.
2017-04-12 16:49:44 -07:00
Anthony Romano
33a0496b5e
report: add test for Report interface
2017-04-12 16:41:32 -07:00
Anthony Romano
d9ec6b4d22
*: return updated member list in v3 rpcs
...
Now it's possible to atomically know the new member configuration from
issuing a membership change RPC.
2017-04-12 16:24:51 -07:00
Anthony Romano
68837b9693
Documentation: reshuffle op-guide to include platforms and upgrading
2017-04-12 15:40:53 -07:00
Gyu-Ho Lee
2046d66927
Merge pull request #7715 from gyuho/fmt
...
tools/benchmark: fix misc gofmt warnings
2017-04-12 14:27:37 -07:00
Gyu-Ho Lee
2d97500e64
test: do not ignore 'tools/benchmark/cmd'
...
Signed-off-by: Gyu-Ho Lee <gyuhox@gmail.com>
2017-04-12 14:13:30 -07:00
Gyu-Ho Lee
373a04a181
tools/benchmark: fix misc gofmt warnings
...
ref. https://golang.org/cmd/gofmt/#hdr-The_simplify_command
Signed-off-by: Gyu-Ho Lee <gyuhox@gmail.com>
2017-04-12 14:12:05 -07:00
Anthony Romano
70a9929b5d
transport: use actual certs for listener tests
2017-04-12 13:41:33 -07:00
Anthony Romano
cad1215b18
*: deny incoming peer certs with wrong IP SAN
2017-04-12 13:41:33 -07:00
Anthony Romano
18bccb4285
auth: protect simpleToken with single mutex and check if enabled
...
Dual locking doesn't really give a convincing performance improvement and
the lock ordering makes it impossible to safely check if the TTL keeper
is enabled or not.
Fixes #7722
2017-04-12 13:40:09 -07:00
Anthony Romano
712f6cb0e1
integration: test requests with valid auth token but disabled auth
...
etcd was crashing since auth was assuming a token implies auth is enabled.
2017-04-12 13:17:33 -07:00
Gyu-Ho Lee
817825d549
Merge pull request #7726 from smeruelo/fix-doc
...
Documentation: add missing link
2017-04-12 10:57:02 -07:00
Sonia Meruelo
79d27328e3
Documentation: add missing link
2017-04-12 19:50:27 +02:00
Anthony Romano
95c6c4b713
Merge pull request #7712 from heyitsanthony/stm-sersnap
...
*: rename Snapshot STM isolation to SerializableSnapshot
2017-04-12 09:03:13 -07:00
Anthony Romano
4f9aa276bd
*: rename Snapshot STM isolation to SerializableSnapshot
...
Pure Snapshot isolation would permit read conflicts. Change the name
from Snapshot to SerializableSnapshot to reflect that it will also
reject read conflicts.
2017-04-11 17:17:50 -07:00
Gyu-Ho Lee
6ebadda395
Merge pull request #7711 from FranGM/master
...
Documentation: Add Hosted Graphite to prod users
2017-04-11 13:53:13 -07:00