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/ServerSideXDS_FileWatcherCerts #4402

Closed
easwars opened this issue May 7, 2021 · 4 comments · Fixed by #4413 or #4428
Closed

Flaky test Test/ServerSideXDS_FileWatcherCerts #4402

easwars opened this issue May 7, 2021 · 4 comments · Fixed by #4413 or #4428
Assignees

Comments

@easwars
Copy link
Contributor

easwars commented May 7, 2021

See: https://github.com/grpc/grpc-go/pull/4388/checks?check_run_id=2531319580

@easwars easwars self-assigned this May 7, 2021
@easwars
Copy link
Contributor Author

easwars commented May 7, 2021

The test actually passed.

This goroutine is leaked:

        grpctest.go:39: Leaked goroutine: goroutine 402 [select]:
            github.com/envoyproxy/go-control-plane/pkg/server/sotw/v3.(*server).StreamHandler.func1(0x7f06edc78598, 0xc0002a5150, 0xc00011f020, 0xc00067fe00, 0xc000088bc0)
            	/home/runner/go/pkg/mod/github.com/envoyproxy/go-control-plane@v0.9.9-0.20210217033140-668b12f5399d/pkg/server/sotw/v3/server.go:409 +0xf6
            created by github.com/envoyproxy/go-control-plane/pkg/server/sotw/v3.(*server).StreamHandler
            	/home/runner/go/pkg/mod/github.com/envoyproxy/go-control-plane@v0.9.9-0.20210217033140-668b12f5399d/pkg/server/sotw/v3/server.go:399 +0xa5
        grpctest.go:60: Leak check disabled for future tests

This goroutine should exit when the management server Stop() is called, which is clearly done in this case because the management server's call to grpc.Serve() is not blocked. So, this is strange. If we see this again, maybe we should remove this goroutine also from our leakcheck.

@easwars
Copy link
Contributor Author

easwars commented May 7, 2021

This is another flake: https://github.com/grpc/grpc-go/pull/4406/checks?check_run_id=2531642404

The issue here is different though. What is happening here is that we have a log statement from one of xdsClients goroutines after the test goroutine has completed. This is because the xdsClient is not getting strictly cleaned up inline. This should get fixed once we fix the balancer_conn_wrapper.close()

@dfawley
Copy link
Member

dfawley commented May 12, 2021

@easwars is the root cause here a dupe of #4403? If so we can close it

@easwars
Copy link
Contributor Author

easwars commented May 12, 2021

This has been fixed as part of envoyproxy/go-control-plane#429. We need to pin to the latest version of the go-control-plane from our go.mod.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Nov 9, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
2 participants