片状测试: Test/SubChannelMetrics_ConnectionLifecycle
--- FAIL: Test (1.70s) --- FAIL: Test/SubChannelMetrics_ConnectionLifecycle (0.01s) tlogger.go:133: INFO server.go:742 [core] [Server #198] Server created (t=+282.245µs) stubserver.go:300: Started test service backend at "127.0.0.1:41909" tlogger.go:133: INFO clientconn.go:1829 [core] original dial target is: "whatever:///" (t=+521.064µs) tlogger.go:133: INFO clientconn.go:514 [core] [Channel #199] Channel created for target "whatever:///" (t=+549.447µs) tlogger.go:133: INFO clientconn.go:245 [core] [Channel #199] parsed dial target is: resolver.Target{URL:url.URL{Scheme:"whatever", Opaque:"", User:(*url.Userinfo)(nil), Host:"", Path:"/", Fragment:"", RawQuery:"", RawPath:"", RawFragment:"", ForceQuery:false, OmitHost:false}} (t=+578.541µs) tlogger.go:133: INFO clientconn.go:246 [core] [Channel #199] Channel authority set to "" (t=+594.915µs) tlogger.go:133: INFO clientconn.go:619 [core] [Channel #199] Channel Connectivity change to CONNECTING (t=+629.217µs) tlogger.go:133: INFO server.go:948 [core] [Server #198 ListenSocket #200] ListenSocket created (t=+714.515µs) tlogger.go:133: INFO balancer_wrapper.go:121 [core] [Channel #199] Channel switches to new LB policy "pick_first" (t=+769.148µs) tlogger.go:133: INFO clientconn.go:922 [core] [Channel #199 SubChannel #201] Subchannel created (t=+822.628µs) tlogger.go:133: INFO clientconn.go:419 [core] [Channel #199] Channel exiting idle mode (t=+854.877µs) tlogger.go:133: INFO clientconn.go:1308 [core] [Channel #199 SubChannel #201] Subchannel Connectivity change to CONNECTING (t=+924.882µs) tlogger.go:133: INFO clientconn.go:1476 [core] [Channel #199 SubChannel #201] Subchannel picks a new address "bad address" to connect (t=+941.617µs) tlogger.go:129: WARNING clientconn.go:1539 [core] [Channel #199 SubChannel #201] grpc: addrConn.createTransport failed to connect to {Addr: "bad address", ServerName: "", }. Err: connection error: desc = "transport: Error while dialing: dial tcp: address bad address: missing port in address" (t=+976.31µs) tlogger.go:133: INFO clientconn.go:1310 [core] [Channel #199 SubChannel #201] Subchannel Connectivity change to TRANSIENT_FAILURE, last error: connection error: desc = "transport: Error while dialing: dial tcp: address bad address: missing port in address" (t=+1.012754ms) tlogger.go:133: INFO clientconn.go:619 [core] [Channel #199] Channel Connectivity change to TRANSIENT_FAILURE (t=+1.051363ms) tlogger.go:133: INFO clientconn.go:1308 [core] [Channel #199 SubChannel #201] Subchannel Connectivity change to SHUTDOWN (t=+1.147327ms) tlogger.go:133: INFO clientconn.go:1702 [core] [Channel #199 SubChannel #201] Subchannel deleted (t=+1.166436ms) tlogger.go:133: INFO clientconn.go:922 [core] [Channel #199 SubChannel #202] Subchannel created
内容来源: grpc/grpc-go