grpc-go/test
Doug Fawley 977142214c
client: fix race between transport draining and new RPCs (#2919)
Before these fixes, it was possible to see errors on new RPCs after a
connection began draining, and before establishing a new connection.  There is
an inherent race between choosing a SubConn and attempting to creating a stream
on it.  We should be able to avoid application-visible RPC errors due to this
with transparent retry.  However, several bugs were preventing this from
working correctly:

1. Non-wait-for-ready RPCs were skipping transparent retry, though the retry
design calls for retrying them.

2. The transport closed itself (and would consequently error new RPCs) before
notifying the SubConn that it was draining.

3. The SubConn wasn't synchronously updating itself once it was notified about
the closing or draining state.

4. The SubConn would go into the TRANSIENT_FAILURE state instantaneously,
causing RPCs to fail instead of queue.
2019-07-22 16:07:55 -07:00
..
bufconn Fix error formatting based on best practices from Code Review Comments (#2615) 2019-02-07 10:01:40 -08:00
codec_perf proto: update generated code (#2039) 2018-05-01 12:53:20 -07:00
go_vet internal: vet cleanups (#2405) 2018-10-26 15:50:46 -07:00
grpc_testing internal: Update proto generated code (#2133) 2018-06-08 17:54:26 -07:00
tools internal: update golint to use new url (#2393) 2018-10-31 14:39:18 -06:00
balancer_test.go balancer: filter out grpclb addresses if balancer is not grpclb (#2907) 2019-07-17 15:08:56 -07:00
channelz_linux_go110_test.go channelz: wait for clean up before next test (#2797) 2019-05-02 14:47:50 -07:00
channelz_test.go test: end2end test improvements separate server and client configs. (#2877) 2019-06-24 14:53:45 -07:00
context_canceled_test.go Modified binary search for the correct delay. (#2584) 2019-01-23 14:49:11 -08:00
creds_test.go cleanup: fix typo in comment (#2657) 2019-03-14 13:12:48 -07:00
end2end_test.go client: fix race between transport draining and new RPCs (#2919) 2019-07-22 16:07:55 -07:00
goaway_test.go client: fix race between transport draining and new RPCs (#2919) 2019-07-22 16:07:55 -07:00
gracefulstop_test.go server: immediately close all connections created after GracefulStop (#2903) 2019-07-12 13:14:19 -07:00
healthcheck_test.go client: addrConn NewStream and health check cleanup (#2848) 2019-06-26 11:15:17 -07:00
race.go autofix license notice 2017-06-08 14:42:19 +02:00
rawConnWrapper.go Update go.mod for golang/x/tools and staticcheck (#2832) 2019-05-24 11:13:46 -07:00
retry_test.go bar: add ability to update resolver state atomically and pass directly to the balancer (#2693) 2019-03-22 10:48:55 -07:00
servertester.go Update go.mod for golang/x/tools and staticcheck (#2832) 2019-05-24 11:13:46 -07:00
stream_cleanup_test.go test: fix Test/GracefulStop by not removing activeStreams too aggresivelly (#2857) 2019-06-12 10:26:18 -07:00