Gyuho Lee
acf75ddc5b
Merge pull request #9870 from raoofm/patch-14
...
docs: mirror_maker, rm readOnly, add uni-directional
2018-06-21 13:36:13 -07:00
Raoof Mohammed
053810b0b6
docs: mirror_maker, rm readOnly, add uni-directional
...
mirror_maker doc mentioned "Data under the destination cluster’s mirroring prefix should be treated as read only."
To avoid confusion, read only is being removed and a clear statement mentions that the updated values at destination wont be replicated from destination to origin.
wont -> won't
2018-06-21 16:34:30 -04:00
Gyuho Lee
7648841bad
Merge pull request #9872 from gyuho/watch-clientv3
...
clientv3: clarify "WithRequireLeader" for network partition
2018-06-20 10:46:23 -07:00
Gyuho Lee
11ead62b9d
clientv3: clarify "WithRequireLeader" for network partition
...
Signed-off-by: Gyuho Lee <gyuhox@gmail.com>
2018-06-20 10:28:41 -07:00
Gyuho Lee
82db651474
Merge pull request #9868 from wenjiaswe/minorchange
...
etcd-dump-logs: minor editting in README.md
2018-06-19 15:50:05 -07:00
Wenjia Zhang
7e0ae96c6a
etcd-dump-logs: minor editting in README.md
2018-06-19 15:37:04 -07:00
Gyuho Lee
897c055940
Merge pull request #9865 from gyuho/aaa
...
tests/e2e: do not run cipher suite tests for gRPC proxy
2018-06-19 13:00:33 -07:00
Gyuho Lee
08474ed5bd
tests/e2e: do not run cipher suite tests for gRPC proxy
...
```
../../bin/etcd-30074: 2018-06-19 11:49:12.052662 I | etcdmain: v2 proxy started listening on client requests on "https://localhost:20002 "
../../bin/etcd-30083: Error: unknown flag: --cipher-suites
../../bin/etcd-30083: Usage:
../../bin/etcd-30083: etcd grpc-proxy start [flags]
```
Signed-off-by: Gyuho Lee <gyuhox@gmail.com>
2018-06-19 11:49:59 -07:00
Gyuho Lee
55a05d9615
Merge pull request #9862 from gyuho/travis
...
tests: switch between Travis and Semaphore
2018-06-18 14:03:24 -07:00
Gyuho Lee
6d15396bc7
clientv3: add link to architecture docs
...
Signed-off-by: Gyuho Lee <gyuhox@gmail.com>
2018-06-18 13:51:20 -07:00
Gyuho Lee
f3ec7d2aed
tests: move "amd64-unit" to travis
...
Signed-off-by: Gyuho Lee <gyuhox@gmail.com>
2018-06-18 13:37:52 -07:00
Gyuho Lee
6931e9dd23
tests/semaphore: remove coverage, grpcproxy tests, add unit tests
...
Signed-off-by: Gyuho Lee <gyuhox@gmail.com>
2018-06-18 13:24:20 -07:00
Gyuho Lee
1eaba4195e
travis: remove unit tests, run grpcproxy, coverage tests
...
Signed-off-by: Gyuho Lee <gyuhox@gmail.com>
2018-06-18 13:23:59 -07:00
Gyuho Lee
a205cfe858
Merge pull request #9861 from gyuho/race
...
etcdserver/api/v3rpc: remove duplicate gRPC logger set
2018-06-18 11:39:08 -07:00
Gyuho Lee
d456c0beb4
integration: disable embed tests with gRPC proxy for now
...
Signed-off-by: Gyuho Lee <gyuhox@gmail.com>
2018-06-18 11:30:52 -07:00
Gyuho Lee
339cda03b3
etcdserver/api/v3rpc: remove duplicate gRPC logger set
...
Fix
=== RUN TestEmbedEtcd
==================
WARNING: DATA RACE
Write at 0x000001df86d0 by goroutine 711:
github.com/coreos/etcd/embed.(*Config).setupLogging.func1()
/go/src/github.com/coreos/etcd/vendor/google.golang.org/grpc/grpclog/loggerv2.go:68 +0x16c
sync.(*Once).Do()
/usr/local/go/src/sync/once.go:44 +0xe1
github.com/coreos/etcd/embed.(*Config).setupLogging()
in gRPC proxy tests.
Signed-off-by: Gyuho Lee <gyuhox@gmail.com>
2018-06-18 09:41:37 -07:00
Gyuho Lee
b98f0c9190
CHANGELOG-3.4: fix --cipher-suites flag change
...
Signed-off-by: Gyuho Lee <gyuhox@gmail.com>
2018-06-18 09:25:34 -07:00
Gyuho Lee
d866cf8a9e
Merge pull request #9860 from gyuho/new-balancer-april-2018
...
clientv3: Upgrade to round robin balancer based on gRPC 1.12 balancer API
2018-06-15 18:13:41 -07:00
Joe Betz
cb6e9d2a7e
CHANGELOG: Add PR and issue links for new client balancer
2018-06-15 16:46:40 -07:00
Joe Betz
8451a1715f
clientv3: Enable balancer logging if ETCD_CLIENT_DEBUG environment variable is set
2018-06-15 16:28:36 -07:00
Gyuho Lee
aa03eba788
Merge pull request #9859 from wenjiaswe/eddreamdme
...
etcd-dump-logs: minor change in README.md
2018-06-15 15:36:56 -07:00
Wenjia Zhang
854e9e1174
etcd-dump-logs: minor change in README.md
2018-06-15 15:30:11 -07:00
Joe Betz
6309e4b4cf
docs: Add client architecture doc
2018-06-15 14:47:11 -07:00
Joe Betz
6572d605ad
vendor: Bump to grpc v1.12.2
2018-06-15 14:47:11 -07:00
Gyuho Lee
d922069713
grpcproxy: fix "grpc.ErrClientConnClosing" handling
...
Fix
```
go test -v -tags cluster_proxy -run TestWatchErrConnClosed
```
with gRPC >= v1.10
Signed-off-by: Gyuho Lee <gyuhox@gmail.com>
2018-06-15 14:47:11 -07:00
Gyuho Lee
6e521d2f3f
clientv3: add "IsConnCanceled", deprecate "grpc.ErrClientConnClosing"
...
Signed-off-by: Gyuho Lee <gyuhox@gmail.com>
2018-06-15 14:47:08 -07:00
Gyuho Lee
a76681073d
clientv3: add "zap.Config" to replace global logger
...
Signed-off-by: Gyuho Lee <gyuhox@gmail.com>
2018-06-15 13:41:28 -07:00
Gyuho Lee
08da08bb19
clientv3: clarify retry function names, do not retry on dial error
...
Signed-off-by: Gyuho Lee <gyuhox@gmail.com>
2018-06-15 13:41:28 -07:00
Gyuho Lee
dd520cebd4
clientv3: put "defaultCallOpts" back to "Client" object
...
Signed-off-by: Gyuho Lee <gyuhox@gmail.com>
2018-06-15 13:41:28 -07:00
Gyuho Lee
a3032d3d0b
*: fix fmt tests, reenable "testEmbedEtcdGracefulStop"
...
Signed-off-by: Gyuho Lee <gyuhox@gmail.com>
2018-06-15 13:41:28 -07:00
Joe Betz
3b84117f54
clientv3/integration: Add err check to TestDialTLSNoConfig to prevent nil pointer dereference on c.Close()
2018-06-15 13:41:28 -07:00
Joe Betz
05c57a0ea4
integration: Fix unit test failures from new grpc LB changes, fix bom
2018-06-15 13:41:28 -07:00
Joe Betz
55ef9cc1d0
clientv3: Add auth retry to retry interceptor
2018-06-15 13:41:28 -07:00
Gyuho Lee
3130e4da1c
vendor: add "go-grpc-middleware/util/backoffutils"
...
Signed-off-by: Gyuho Lee <gyuhox@gmail.com>
2018-06-15 13:41:28 -07:00
Joe Betz
a5b2fb5563
clientv3: Introduce custom retry interceptor based on go-grpc-middleware/retry
2018-06-15 13:41:28 -07:00
Gyuho Lee
4065735845
clientv3: remove unused "dialerrc"
...
Signed-off-by: Gyuho Lee <gyuhox@gmail.com>
2018-06-15 13:41:28 -07:00
Joe Betz
1f6548b751
clientv3: Stop expecting retry in integration tests with new grpc balancer
2018-06-15 13:41:28 -07:00
Joe Betz
8569b9c782
clientv3: Fix endpoint resolver to create a new resolver for each grpc client connection
2018-06-15 13:41:28 -07:00
Joe Betz
9304d1abd1
clientv3: Fix TLS test failures by returning DeadlineExceeded error from dial without any additional wrapping
2018-06-15 13:41:28 -07:00
Joe Betz
ee2747eba8
clientv3: Fix dial calls to consistently use endpoint resolver, attempt to deflake alarm test
2018-06-15 13:41:28 -07:00
Joe Betz
f84f554301
clientv3: Fix auth client to use endpoints instead of host when dialing, fix tests to block on dial when required.
2018-06-15 13:41:28 -07:00
Joe Betz
66e65cd660
clientv3: Avoid timeouts in ordering test
2018-06-15 13:41:28 -07:00
Gyuho Lee
bb032f3e5f
clientv3: deprecate "grpc.WithTimeout" in favor of "grpc.DialContext"
...
"grpc.WithTimeout" dial option is being deprecated.
Signed-off-by: Gyuho Lee <gyuhox@gmail.com>
2018-06-15 13:41:28 -07:00
Gyuho Lee
994a569f53
clientv3: pass "grpc.WithBlock" on "TestDialTimeout"
...
Otherwise, grpc.DialContext would just return before
connection is up.
Signed-off-by: Gyuho Lee <gyuhox@gmail.com>
2018-06-15 13:41:28 -07:00
Gyuho Lee
037d7b4abe
clientv3: dial with context when creating authenticator
...
Otherwise, "grpc.Dial" blocks when "grpc.WithTimeout" dial
option gets deprecated.
Signed-off-by: Gyuho Lee <gyuhox@gmail.com>
2018-06-15 13:41:28 -07:00
Joe Betz
7ac2a2dd20
clientv3: Fix dialer for new balancer to correctly handle first are as endpoint, not hostname
2018-06-15 13:41:28 -07:00
Joe Betz
309208dbef
clientv3: Split out grpc balancer builder to ensure there is a balancer per ClientConn
2018-06-15 13:41:28 -07:00
Joe Betz
12acfc057a
vendor: upgrade grpc/grpc-go to v1.11.3
2018-06-15 13:41:28 -07:00
Joe Betz
f20a1173d8
clientv3: Fix new load balancer integration issues
2018-06-15 13:41:28 -07:00
Joe Betz
6080fa1270
clientv3: Integrate new grpc load balancer interface with etcd client
2018-06-15 13:41:28 -07:00