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

test: tests fail because bind address already in use #8511

Closed
lhy1024 opened this issue Aug 9, 2024 · 2 comments
Closed

test: tests fail because bind address already in use #8511

lhy1024 opened this issue Aug 9, 2024 · 2 comments
Labels
type/ci The issue is related to CI.

Comments

@lhy1024
Copy link
Contributor

lhy1024 commented Aug 9, 2024

Flaky Test

Which jobs are failing

2024-08-09T10:13:43.8843538Z     member_test.go:339: 
2024-08-09T10:13:43.8844726Z         	Error Trace:	/home/runner/work/pd/pd/tests/server/member/member_test.go:339
2024-08-09T10:13:43.8845893Z         	Error:      	Received unexpected error:
2024-08-09T10:13:43.8848471Z         	            	[PD:etcd:ErrStartEtcd]listen tcp 127.0.0.1:41903: bind: address already in use: listen tcp 127.0.0.1:41903: bind: address already in use
2024-08-09T10:13:43.8850327Z         	            	github.com/pingcap/errors.AddStack
2024-08-09T10:13:43.8853049Z         	            		/home/runner/go/pkg/mod/github.com/pingcap/[email protected]/errors.go:174
2024-08-09T10:13:43.8855194Z         	            	github.com/pingcap/errors.(*Error).GenWithStackByCause
2024-08-09T10:13:43.8857807Z         	            		/home/runner/go/pkg/mod/github.com/pingcap/[email protected]/normalize.go:307
2024-08-09T10:13:43.8859576Z         	            	github.com/tikv/pd/server.(*Server).startEtcd
2024-08-09T10:13:43.8861027Z         	            		/home/runner/work/pd/pd/server/server.go:331
2024-08-09T10:13:43.8862268Z         	            	github.com/tikv/pd/server.(*Server).Run
2024-08-09T10:13:43.8863652Z         	            		/home/runner/work/pd/pd/server/server.go:620
2024-08-09T10:13:43.8864960Z         	            	github.com/tikv/pd/tests.(*TestServer).Run
2024-08-09T10:13:43.8866351Z         	            		/home/runner/work/pd/pd/tests/cluster.go:127
2024-08-09T10:13:43.8867570Z         	            	github.com/tikv/pd/tests.RunServer.func1
2024-08-09T10:13:43.8868949Z         	            		/home/runner/work/pd/pd/tests/cluster.go:577
2024-08-09T10:13:43.8869927Z         	            	runtime.goexit
2024-08-09T10:13:43.8871403Z         	            		/opt/hostedtoolcache/go/1.21.12/x64/src/runtime/asm_amd64.s:1650
2024-08-09T10:13:43.8872714Z         	            	github.com/tikv/pd/tests.RunServers
2024-08-09T10:13:43.8874084Z         	            		/home/runner/work/pd/pd/tests/cluster.go:589
2024-08-09T10:13:43.8875673Z         	            	github.com/tikv/pd/tests.(*TestCluster).RunInitialServers
2024-08-09T10:13:43.8877146Z         	            		/home/runner/work/pd/pd/tests/cluster.go:601
2024-08-09T10:13:43.8878866Z         	            	github.com/tikv/pd/tests/server/member_test.TestCampaignLeaderFrequently
2024-08-09T10:13:43.8880777Z         	            		/home/runner/work/pd/pd/tests/server/member/member_test.go:338
2024-08-09T10:13:43.8881875Z         	            	testing.tRunner
2024-08-09T10:13:43.8883380Z         	            		/opt/hostedtoolcache/go/1.21.12/x64/src/testing/testing.go:1595
2024-08-09T10:13:43.8884428Z         	            	runtime.goexit
2024-08-09T10:13:43.8885826Z         	            		/opt/hostedtoolcache/go/1.21.12/x64/src/runtime/asm_amd64.s:1650
2024-08-09T10:13:43.8886856Z         	Test:       	TestCampaignLeaderFrequently

CI link

https://github.com/tikv/pd/actions/runs/10317426723/job/28561957825?pr=8510

Reason for failure (if possible)

Anything else

@lhy1024 lhy1024 added the type/ci The issue is related to CI. label Aug 9, 2024
@lhy1024 lhy1024 changed the title bind: address already in use test: tests fail because bind address already in use Aug 9, 2024
@lhy1024
Copy link
Contributor Author

lhy1024 commented Aug 9, 2024

2024-08-08T08:54:47.6819770Z     server_test.go:286: 
2024-08-08T08:54:47.6820486Z         	Error Trace:	/home/runner/work/pd/pd/tests/integrations/mcs/tso/server_test.go:286
2024-08-08T08:54:47.6821657Z         	            				/home/runner/work/pd/pd/tests/integrations/mcs/tso/server_test.go:322
2024-08-08T08:54:47.6822289Z         	Error:      	Received unexpected error:
2024-08-08T08:54:47.6823605Z         	            	[PD:etcd:ErrStartEtcd]listen tcp 127.0.0.1:34997: bind: address already in use: listen tcp 127.0.0.1:34997: bind: address already in use
2024-08-08T08:54:47.6824758Z         	            	github.com/pingcap/errors.AddStack
2024-08-08T08:54:47.6826180Z         	            		/home/runner/go/pkg/mod/github.com/pingcap/[email protected]/errors.go:174
2024-08-08T08:54:47.6827171Z         	            	github.com/pingcap/errors.(*Error).GenWithStackByCause
2024-08-08T08:54:47.6828674Z         	            		/home/runner/go/pkg/mod/github.com/pingcap/[email protected]/normalize.go:307
2024-08-08T08:54:47.6829595Z         	            	github.com/tikv/pd/server.(*Server).startEtcd
2024-08-08T08:54:47.6830329Z         	            		/home/runner/work/pd/pd/server/server.go:331
2024-08-08T08:54:47.6831021Z         	            	github.com/tikv/pd/server.(*Server).Run
2024-08-08T08:54:47.6831782Z         	            		/home/runner/work/pd/pd/server/server.go:620
2024-08-08T08:54:47.6832439Z         	            	github.com/tikv/pd/tests.(*TestServer).Run
2024-08-08T08:54:47.6833408Z         	            		/home/runner/work/pd/pd/tests/cluster.go:127
2024-08-08T08:54:47.6834307Z         	            	github.com/tikv/pd/tests.RunServer.func1
2024-08-08T08:54:47.6835134Z         	            		/home/runner/work/pd/pd/tests/cluster.go:577
2024-08-08T08:54:47.6835665Z         	            	runtime.goexit
2024-08-08T08:54:47.6836452Z         	            		/opt/hostedtoolcache/go/1.21.12/x64/src/runtime/asm_amd64.s:1650
2024-08-08T08:54:47.6837146Z         	            	github.com/tikv/pd/tests.RunServers
2024-08-08T08:54:47.6838144Z         	            		/home/runner/work/pd/pd/tests/cluster.go:589
2024-08-08T08:54:47.6839515Z         	            	github.com/tikv/pd/tests.(*TestCluster).RunInitialServers
2024-08-08T08:54:47.6840623Z         	            		/home/runner/work/pd/pd/tests/cluster.go:601
2024-08-08T08:54:47.6842332Z         	            	github.com/tikv/pd/tests/integrations/mcs/tso.NewAPIServerForward
2024-08-08T08:54:47.6844254Z         	            		/home/runner/work/pd/pd/tests/integrations/mcs/tso/server_test.go:285
2024-08-08T08:54:47.6846122Z         	            	github.com/tikv/pd/tests/integrations/mcs/tso.TestForwardTSORelated
2024-08-08T08:54:47.6848075Z         	            		/home/runner/work/pd/pd/tests/integrations/mcs/tso/server_test.go:322
2024-08-08T08:54:47.6849208Z         	            	testing.tRunner
2024-08-08T08:54:47.6850478Z         	            		/opt/hostedtoolcache/go/1.21.12/x64/src/testing/testing.go:1595
2024-08-08T08:54:47.6851067Z         	            	runtime.goexit
2024-08-08T08:54:47.6851839Z         	            		/opt/hostedtoolcache/go/1.21.12/x64/src/runtime/asm_amd64.s:1650
2024-08-08T08:54:47.6852415Z         	Test:       	TestForwardTSORelated
2024-08-08T08:54:47.6853179Z --- FAIL: TestForwardTSORelated (6.73s)

https://github.com/tikv/pd/actions/runs/10298993363/job/28505341279

@rleungx
Copy link
Member

rleungx commented Nov 13, 2024

the same as #8726

@rleungx rleungx closed this as completed Nov 13, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type/ci The issue is related to CI.
Projects
None yet
Development

No branches or pull requests

2 participants