3350 Commits

Author SHA1 Message Date
4b60e3b6a1 credentials/alts: Panic Bug Fix (#2800) 2019-05-03 10:47:23 -07:00
028242f874 xds: fix flaky test due to balancerV2 API update (#2799) 2019-05-02 16:14:08 -07:00
42baa8b199 channelz: wait for clean up before next test (#2797) 2019-05-02 14:47:50 -07:00
a9408321c7 internal: remove err from ClientTransport.GracefulClose (#2771) 2019-05-02 14:20:28 -06:00
5ed5cbab96 dns: rate limit DNS resolution requests (#2760) 2019-05-02 10:23:30 -07:00
d5973a9170 xds: support BalancerV2 API (#2781) 2019-04-29 15:50:08 -07:00
47e1ebe575 client: return helpful error message when wait-for-ready RPCs fail with timeout (#2777) 2019-04-29 12:42:19 -07:00
a90198c718 internal: seed random for wrr tests (#2791) 2019-04-26 14:47:55 -07:00
b78962e503 xds: save category in dropper (#2780) 2019-04-26 10:39:49 -07:00
1e6ab1e96e server: define ServerOption as interfaces (#2784)
Instead of functions. So custom server options can be made by wrapping an
EmptyServerOption.
2019-04-26 10:33:22 -07:00
a8b5bd3c39 xds: wrr with random (#2745) 2019-04-23 13:48:02 -07:00
4dfb34b0d4 Mark PreparedMsg as EXPERIMENTAL (#2783) 2019-04-22 13:07:07 -07:00
8260df7a61 grpc: implementation of PreparedMsg API
grpc: implementation of PreparedMsg API
2019-04-19 14:08:08 -07:00
d7af56a5e4 internal: tweak ClientTransport.GracefulClose documentation (#2772)
* internal: tweak ClientTransport.GracefulClose documentation

* address menghanl@ review comment
2019-04-16 16:54:26 -06:00
5b263177f2 xds: make local proto generated files (#2750) 2019-04-16 13:35:16 -07:00
3fc743058b transport: fix a race that could lead to memory leaks (#2765)
* When a RST_STREAM is received by the server transport, a cleanupStream
item is placed into controlbuf no matter what.

* Updates comments.

* Replaces getCleanupStream with inline struct initialization.
2019-04-15 14:20:22 -07:00
9d8d97a245 docs: add note about retrying UNAVAILABLE (#2774) 2019-04-15 14:59:43 -06:00
776edd3ba1 interceptor: new APIs for chaining client interceptors. (#2696) 2019-04-15 11:13:34 -07:00
a9de79b9c3 Use 'go vet' and not 'go tool vet'. (#2768)
From [release notes](https://golang.org/doc/go1.12#vet):

The go vet command has been rewritten to serve as the
base for a range of different source code analysis tools. See
the golang.org/x/tools/go/analysis
package for details. A side-effect is that go tool vet
is no longer supported. External tools that use go tool vet must be
changed to use go vet. Using go vet instead of go tool vet should work
with all supported versions of Go.
2019-04-12 10:08:23 -07:00
e1d95c39ad credentials/alts: Support UDS addresses in ALTS interop test server (#2763)
* Support UDS addresses in ALTS interop test server

* Fix flag description

* Fixed comment

* Fix comment
2019-04-11 16:49:01 -07:00
597a4aa027 grpc: remove excess new line from the log statement (#2766) 2019-04-11 14:31:07 -07:00
ee9f7f0c9a interop: add test case for "pick_first" (#2762) 2019-04-11 14:22:58 -07:00
3f98697f44 grpclb: handle service config and switch to pickfirst (#2719) 2019-04-11 11:25:27 -07:00
289eb50d88 internal: clean up README (#2764) 2019-04-11 10:11:17 -07:00
e33051174b Change version to 1.21.0-dev (#2759) 2019-04-09 14:51:00 -07:00
bc316a57d4 doc: fixing link in keepalive docs (#2755)
The link for enforcement policy in the keepalive docs is wrong.

fixes #2754
2019-04-09 11:34:45 -07:00
981ad1f9d2 doc: fixing broken link in rpc-error doc (#2753)
The link for example in the documentation for RPC errors redirects to the wrong URL.

Fixes #2752
2019-04-09 11:33:11 -07:00
4abb3622b0 tls: append h2 to tlsconfig.NextProtos (#2744) 2019-04-08 09:56:02 -07:00
b03f6fd5e3 internal: balancer/xds go1.12 only (#2748)
Until https://github.com/envoyproxy/go-control-plane/issues/168 is fixed
2019-04-05 13:51:39 -07:00
d37bd82db6 Fix DialContext when using a timeout (#2737)
Fixes #2736
2019-04-04 09:58:15 -07:00
ea5e6da287 service config: default service config (#2686) 2019-04-03 10:50:28 -07:00
4745f6ae0d grpclb: fallback after init (#2681)
regenerate picker when switching between fallback/non-fallback, because new SubConn state might not be updated for cached SubConns
2019-04-02 16:27:52 -07:00
955eb8a3c8 channelz: cleanup channel registration if Dial fails (#2733) 2019-04-02 15:42:35 -07:00
d389f9fac6 balancer: add server loads from RPC trailers to DoneInfo (#2641) 2019-04-02 11:15:36 -07:00
924457101b syscall: remove logging in init(). (#2734)
The same as https://github.com/grpc/grpc-go/pull/2373.

Signed-off-by: Yangmin Zhu <ymzhu@google.com>
2019-04-02 10:36:15 -07:00
f1437f7cc5 server: Improve error message when an unknown method is invoked. (#2723)
Previously only `unknown service <x>` was returned, which is misleading
when the service is known but the method is unknown.
2019-03-27 16:19:28 -07:00
9a2caafd93 client: restore remote address in traces (#2718)
The client-side traces were otherwise only showing `RPC: to <nil>`,
which is not helpful.

Also clean up construction of traceInfo and firstLine in a few places.
2019-03-27 09:52:40 -07:00
ed10349f45 stats: add WireLength to stats.InPayload (#2692) (#2711) 2019-03-25 15:42:16 -07:00
6d8271a06c credentials: add compute engine channel creds (#2708) 2019-03-25 14:47:12 -07:00
ef9bac2604 cleanup: remove unnecessary ignoreContentType field (#2715) 2019-03-22 13:56:18 -07:00
ktr
0e83fbebe8 encoding: check whether encoding.Name() is empty before calling strings.ToLower (#2707) 2019-03-22 13:34:43 -07:00
aded19ed6f update to use new fancy issue templates (#2712) 2019-03-22 10:50:40 -07:00
3910b873d3 bar: add ability to update resolver state atomically and pass directly to the balancer (#2693) 2019-03-22 10:48:55 -07:00
bcfa7b30ac Downgrade grpclb package info logs to V(2). (#2710)
Fixes #2709.
2019-03-22 10:11:37 -07:00
22c2121b7d benchmark: exit after printing help when using -h (#2701) 2019-03-21 12:04:35 -07:00
66cd524910 transport: stop using http.CloseNotifier in handler server (#2697) 2019-03-20 13:32:46 -07:00
d021e89b3f internal: fix Dial_OneBackoffPerRetryGroup (#2689)
* internal: fix Dial_OneBackoffPerRetryGroup

Instead of mutating global variables, switches getMinConnectDeadline to a
dial option.

Fixes #2687.

* rename getMinConnectTimeoutFunc to minConnectTimeout, ditto dial opt
2019-03-20 13:58:29 -06:00
495133b619 internal: fix pickoptions in balancer_test (#2698)
The same test was changed by two PRs, merge didn't catch the conflict
2019-03-19 13:26:46 -07:00
ce45558927 balancer: make sure non-nil done returned by Pick is called (#2688)
Special case: when SubConn returned by Picker is not Ready, call done before
looping back to re-pick.
2019-03-19 10:47:09 -07:00
272a4b69f1 transport: do not close channel that can lean to panic (#2695)
`Write` can be called concurrently, for which it calls the `do` function.
As `WriteStatus` can close the `ht.writes` in parallel as well the `Write`
will try to write into the `ht.writes` in the `do` function, this can
lead into a panic. As there is no real usability on closing this channel
we can simply leave it to the garbage collector so we can avoid panic
during an execution.

Signed-off-by: André Martins <aanm90@gmail.com>
2019-03-19 10:29:19 -07:00