Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Flaky test: Test/GracefulClientOnGoAway #3686

Closed
menghanl opened this issue Jun 12, 2020 · 4 comments · Fixed by #3691 or #6142
Closed

Flaky test: Test/GracefulClientOnGoAway #3686

menghanl opened this issue Jun 12, 2020 · 4 comments · Fixed by #3691 or #6142

Comments

@menghanl
Copy link
Contributor

menghanl commented Jun 12, 2020

Two recently merged suspicious changes:

Log

    --- FAIL: Test/GracefulClientOnGoAway (0.32s)
        tlogger.go:97: clientconn.go:162: Channel Created
        tlogger.go:97: clientconn.go:248: parsed scheme: ""
        tlogger.go:97: clientconn.go:254: scheme "" not registered, fallback to default scheme
        tlogger.go:97: resolver_conn_wrapper.go:143: ccResolverWrapper: sending update to cc: {[{127.0.0.1:43503  <nil> 0 <nil>}] <nil> <nil>}
        tlogger.go:97: resolver_conn_wrapper.go:218: Resolver state updated: {Addresses:[{Addr:127.0.0.1:43503 ServerName: Attributes:<nil> Type:0 Metadata:<nil>}] ServiceConfig:<nil> Attributes:<nil>} (resolver returned new addresses)
        tlogger.go:97: clientconn.go:678: ClientConn switching balancer to "pick_first"
        tlogger.go:97: clientconn.go:693: Channel switches to new LB policy "pick_first"
        tlogger.go:97: clientconn.go:734: Subchannel Created
        tlogger.go:97: clientconn.go:734: Subchannel(id:1082) created
        tlogger.go:97: clientconn.go:1067: Subchannel Connectivity change to CONNECTING
        tlogger.go:111: picker_wrapper.go:162: blockingPicker: the picked transport is not ready, loop back to repick
        tlogger.go:97: clientconn.go:1204: Subchannel picks a new address "127.0.0.1:43503" to connect
        tlogger.go:97: clientconn.go:425: Channel Connectivity change to CONNECTING
        tlogger.go:97: clientconn.go:1067: Subchannel Connectivity change to READY
        tlogger.go:97: clientconn.go:425: Channel Connectivity change to READY
        tlogger.go:97: clientconn.go:1067: Subchannel Connectivity change to CONNECTING
        tlogger.go:97: clientconn.go:1204: Subchannel picks a new address "127.0.0.1:43503" to connect
        tlogger.go:111: picker_wrapper.go:162: blockingPicker: the picked transport is not ready, loop back to repick
        tlogger.go:97: clientconn.go:425: Channel Connectivity change to CONNECTING
        tlogger.go:97: clientconn.go:1067: Subchannel Connectivity change to READY
        tlogger.go:97: clientconn.go:425: Channel Connectivity change to READY
        tlogger.go:97: clientconn.go:1067: Subchannel Connectivity change to CONNECTING
        tlogger.go:97: clientconn.go:1204: Subchannel picks a new address "127.0.0.1:43503" to connect
        tlogger.go:97: clientconn.go:425: Channel Connectivity change to CONNECTING
        tlogger.go:97: clientconn.go:1067: Subchannel Connectivity change to READY
        tlogger.go:97: clientconn.go:425: Channel Connectivity change to READY
        tlogger.go:97: clientconn.go:1067: Subchannel Connectivity change to CONNECTING
        tlogger.go:97: clientconn.go:1204: Subchannel picks a new address "127.0.0.1:43503" to connect
        tlogger.go:97: clientconn.go:425: Channel Connectivity change to CONNECTING
        tlogger.go:97: clientconn.go:1067: Subchannel Connectivity change to READY
        tlogger.go:97: clientconn.go:425: Channel Connectivity change to READY
        goaway_test.go:70: EmptyCall(_, _) = _, rpc error: code = Unavailable desc = transport is closing; want _, <nil>
        tlogger.go:97: clientconn.go:425: Channel Connectivity change to SHUTDOWN
        tlogger.go:97: clientconn.go:1067: Subchannel Connectivity change to SHUTDOWN
        tlogger.go:97: clientconn.go:1431: Subchannel Deleted
        tlogger.go:97: clientconn.go:1431: Subchanel(id:1082) deleted
        tlogger.go:97: clientconn.go:1023: Channel Deleted
        tlogger.go:111: types.go:69: attempt to delete child with id 1082 from a parent (id=1081) that doesn't currently exist
        tlogger.go:111: types.go:69: attempt to delete child with id 1082 from a parent (id=1081) that doesn't currently exist

@dfawley
Copy link
Member

dfawley commented Jun 12, 2020

If I understood everything correctly, #3677 should be safe, since there are no per-RPC creds in this test, and that was the only way NewStream could fail (and consequently make attempt.s be nil. (We should still confirm this with testing anyway, in case there is a path I didn't see or understand.)

@dfawley
Copy link
Member

dfawley commented May 25, 2021

This flaked again in a cron run:

https://github.com/grpc/grpc-go/runs/2660658084#step:8:160

@dfawley dfawley reopened this May 25, 2021
@dfawley dfawley added fixit and removed P1 labels May 25, 2021
@dfawley dfawley changed the title flaky test: Test/GracefulClientOnGoAway Flaky test: Test/GracefulClientOnGoAway Jun 16, 2021
@dfawley dfawley added the P2 label Oct 20, 2021
@dfawley dfawley removed the fixit label May 16, 2022
@dfawley dfawley closed this as completed May 16, 2022
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Nov 13, 2022
@easwars
Copy link
Contributor

easwars commented Jan 18, 2023

@easwars easwars reopened this Jan 18, 2023
@zasweq
Copy link
Contributor

zasweq commented Mar 20, 2023

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
4 participants