3081 Commits

Author SHA1 Message Date
cd89eaf40e test: fix Test/GracefulStop by not removing activeStreams too aggresivelly (#2857)
Before this fix, stream is removed from activeStreams in finishStream,
which happens when the service handler returns status, without waiting
for the status to be sent by loopyWriter. If GracefulStop() is called in
between, it will close the connection (because activeStreams is empty),
which causes the RPC to fail with "transport is closing". This change
moves the activeStreams cleanup into loopyWriter, after sending status
on wire.
2019-06-12 10:26:18 -07:00
a1d4c283c6 client: update state earlier to prevent resetTransport calls from killing good transports (#2862) 2019-06-10 16:58:43 -07:00
a5396fd45c Remove call to proto.Clone() in http2Server.WriteStatus. (#2842)
* Expose a method from the internal package to get to the raw
  StatusProto wrapped by the status error, and use it from
  http2Server.WriteStatus().
* Add a helper method in internal/testutils to compare two status errors
  and update test code to use that instead of reflect.DeepEqual()
2019-06-10 15:03:12 -07:00
b681a11d08 A few more improvements to the benchmark code. (#2840)
* A few more improvements to the benchmark code.

* In benchmain/main.go:
  * Define types for function arguments to make code more readable
  * Significantly simplify the code as a result of stats package refactor.
* In benchresult/main.go
  * Simplify code as a result of stats package refactor.
* In stats/stats.go
  * Define and expose featureIndex enum.
  * Refactor the types used to store features, results, stats etc.
  * Provide easy to use methods to add/modify/read/dump stats info.
* Delete stats/util.go - dead code.
2019-06-10 09:53:35 -07:00
f2967c2f83 serviceconfig: mark new package experimental (#2852) 2019-06-06 13:39:47 -07:00
d33cecdadd xds: fix difference between user target name and resource name (#2845) 2019-06-05 10:52:48 -07:00
914c27f822 internal: ignore unexported fields when comparing struct fields (#2853) 2019-06-05 09:54:21 -07:00
2df9cb80d4 xds: rpc counts (start/end) per locality (#2805) 2019-06-04 12:47:23 -07:00
73e5679828 travis: run most test environments on Go 1.12 instead of 1.11 (#2847) 2019-06-04 11:19:23 -07:00
532a0b98cb only force update picker when cache is used (sub-balancer is round-robin) (#2843) 2019-06-03 10:43:53 -07:00
99aff99e53 xds: rename balancer to xds_experimental during testing (#2850) 2019-06-03 10:08:20 -07:00
a69f97005b internal: lint receiver name not x (#2844) 2019-05-30 16:20:18 -07:00
82fdf27702 addrConn: not reset backoff if update address in TransientFailure (#2740) 2019-05-30 13:13:47 -07:00
58c136ca0f [xds_112] internal: balancer/xds remove build contrain >= 1.12 (#2834)
This reverts commit b03f6fd5e3dfa7663a225c36a15d623159f6724b.
2019-05-30 13:08:45 -07:00
d40a995895 balancer/resolver: add loadBalancingConfig and pre-parsing support (#2732) 2019-05-30 09:12:58 -07:00
0435a4bb26 balancer: stop using picker from old balancer with switching balancers (#2833) 2019-05-29 10:35:14 -07:00
b3e4b49ddb xds: fix eds balancer nil pointer panic without addresses (#2809) 2019-05-28 11:14:10 -07:00
f34abd9513 xds: add orca generated file, and move orca to xds folder (#2804) 2019-05-24 12:35:57 -07:00
b7325a3150 Update go.mod for golang/x/tools and staticcheck (#2832) 2019-05-24 11:13:46 -07:00
25ad15b871 transport: Fix the inconsistency between headerChan and headerDone (#2818)
transport: Fix the inconsistency between headerChan and headerDone
2019-05-22 14:02:23 -07:00
e73aa7fee0 Change version to 1.22.0-dev (#2830) 2019-05-22 14:01:12 -07:00
c2e0a6d772 Fix a typo. (#2826) 2019-05-21 11:09:30 -07:00
7c03793042 benchmark: refactor the benchmark code. (#2820)
benchmark: refactor the benchmark code.
2019-05-20 16:01:37 -07:00
8655d473ad credentials/alts: Add example of authz in ALTS (#2814) 2019-05-16 14:58:44 -07:00
263405c7fe docs: small docs fixed to WithDisableServiceConfig (#2819) 2019-05-16 13:30:58 -07:00
4a199db194 xds: split proto imports for message and service (#2812) 2019-05-14 15:15:08 -07:00
ab909771a0 Fix using grpc.WithBalancerName("grpclb") explicitly (#2778) (#2802) 2019-05-10 15:42:49 -07:00
a0be99ad32 xds: use BuildOptions.Target.endpoint string instead of deprecated cc.Target (#2807) 2019-05-10 10:45:05 -07:00
4748a040c8 balancer: provide parsed target through BuildOptions (#2803) 2019-05-09 13:27:41 -07:00
39ed87fce2 xds: report loads to traffic director (#2789) 2019-05-07 13:58:58 -07:00
9949ee0c45 xds: lrs load store (#2779) 2019-05-07 10:06:40 -07:00
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