Skip to content

TestGetMinTS is flaky #6453

@rleungx

Description

@rleungx

Flaky Test

Which jobs are failing

--- FAIL: TestMicroserviceTSOClient (70.53s)
    --- FAIL: TestMicroserviceTSOClient/TestGetMinTS (7.89s)
        client_test.go:267: 
            	Error Trace:	/home/runner/work/pd/pd/tests/integrations/tso/client_test.go:267
            	            				/opt/hostedtoolcache/go/1.20.1/x64/src/runtime/asm_amd64.s:1598
            	Error:      	Received unexpected error:
            	            	rpc error: code = Unknown desc = [PD:tso:ErrGenerateTimestamp]generate timestamp failed, requested pd is not leader of cluster
            	            	github.com/tikv/pd/client.(*tsoTSOStream).processRequests
            	            		/home/runner/work/pd/pd/client/tso_stream.go:190
            	            	github.com/tikv/pd/client.(*tsoClient).processRequests
            	            		/home/runner/work/pd/pd/client/tso_dispatcher.go:711
            	            	github.com/tikv/pd/client.(*tsoClient).handleDispatcher
            	            		/home/runner/work/pd/pd/client/tso_dispatcher.go:445
            	            	runtime.goexit
            	            		/opt/hostedtoolcache/go/1.20.1/x64/src/runtime/asm_amd64.s:1598
            	            	github.com/tikv/pd/client.(*tsoRequest).Wait
            	            		/home/runner/work/pd/pd/client/tso_dispatcher.go:94
            	            	github.com/tikv/pd/client.(*client).GetTS
            	            		/home/runner/work/pd/pd/client/client.go:717
            	            	github.com/tikv/pd/tests/integrations/tso.(*tsoClientTestSuite).TestGetMinTS.func1
            	            		/home/runner/work/pd/pd/tests/integrations/tso/client_test.go:266
            	            	runtime.goexit
            	            		/opt/hostedtoolcache/go/1.20.1/x64/src/runtime/asm_amd64.s:1598
            	Test:       	TestMicroserviceTSOClient/TestGetMinTS
        client_test.go:269: 
            	Error Trace:	/home/runner/work/pd/pd/tests/integrations/tso/client_test.go:269
            	            				/opt/hostedtoolcache/go/1.20.1/x64/src/runtime/asm_amd64.s:1598
            	Error:      	"441418138665353238" is not less than "0"
            	Test:       	TestMicroserviceTSOClient/TestGetMinTS

CI link

https://github.com/tikv/pd/actions/runs/4956285469/jobs/8866547918?pr=6409

Reason for failure (if possible)

Anything else

Metadata

Metadata

Assignees

Labels

type/ciThe issue is related to CI.

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions