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

TestAllocIDAfterLeaderChange is datarace #7427

Closed
lhy1024 opened this issue Nov 23, 2023 · 4 comments · Fixed by #7426
Closed

TestAllocIDAfterLeaderChange is datarace #7427

lhy1024 opened this issue Nov 23, 2023 · 4 comments · Fixed by #7426
Labels
type/ci The issue is related to CI.

Comments

@lhy1024
Copy link
Contributor

lhy1024 commented Nov 23, 2023

Flaky Test

Which jobs are failing

2023-11-23T09:43:36.3114818Z ==================
2023-11-23T09:43:36.3115390Z WARNING: DATA RACE
2023-11-23T09:43:36.3116158Z Read at 0x00c001010088 by goroutine 105778:
2023-11-23T09:43:36.3116984Z   github.com/tikv/pd/server.(*Server).GetMember()
2023-11-23T09:43:36.3118055Z       /home/runner/work/pd/pd/server/server.go:827 +0x126f
2023-11-23T09:43:36.3119424Z   github.com/tikv/pd/pkg/utils/apiutil/serverapi.(*redirector).ServeHTTP()
2023-11-23T09:43:36.3121249Z       /home/runner/work/pd/pd/pkg/utils/apiutil/serverapi/middleware.go:200 +0x11d3
2023-11-23T09:43:36.3122539Z   github.com/urfave/negroni.middleware.ServeHTTP()
2023-11-23T09:43:36.3124034Z       /home/runner/go/pkg/mod/github.com/urfave/negroni@v0.3.0/negroni.go:38 +0x134
2023-11-23T09:43:36.3125351Z   github.com/urfave/negroni.middleware.ServeHTTP-fm()
2023-11-23T09:43:36.3126311Z       <autogenerated>:1 +0x71
2023-11-23T09:43:36.3127693Z   github.com/tikv/pd/pkg/utils/apiutil/serverapi.(*runtimeServiceValidator).ServeHTTP()
2023-11-23T09:43:36.3129422Z       /home/runner/work/pd/pd/pkg/utils/apiutil/serverapi/middleware.go:44 +0x171
2023-11-23T09:43:36.3130697Z   github.com/urfave/negroni.middleware.ServeHTTP()
2023-11-23T09:43:36.3132144Z       /home/runner/go/pkg/mod/github.com/urfave/negroni@v0.3.0/negroni.go:38 +0x134
2023-11-23T09:43:36.3133308Z   github.com/urfave/negroni.(*Negroni).ServeHTTP()
2023-11-23T09:43:36.3134650Z       /home/runner/go/pkg/mod/github.com/urfave/negroni@v0.3.0/negroni.go:96 +0x1b8
2023-11-23T09:43:36.3135905Z   github.com/gorilla/mux.(*Router).ServeHTTP()
2023-11-23T09:43:36.3137201Z       /home/runner/go/pkg/mod/github.com/gorilla/mux@v1.7.4/mux.go:210 +0x361
2023-11-23T09:43:36.3138421Z   github.com/gorilla/mux.(*Router).ServeHTTP()
2023-11-23T09:43:36.3139615Z       /home/runner/go/pkg/mod/github.com/gorilla/mux@v1.7.4/mux.go:210 +0x361
2023-11-23T09:43:36.3140858Z   github.com/urfave/negroni.(*Negroni).UseHandler.Wrap.func1()
2023-11-23T09:43:36.3142456Z       /home/runner/go/pkg/mod/github.com/urfave/negroni@v0.3.0/negroni.go:46 +0x66
2023-11-23T09:43:36.3143658Z   github.com/urfave/negroni.HandlerFunc.ServeHTTP()
2023-11-23T09:43:36.3144985Z       /home/runner/go/pkg/mod/github.com/urfave/negroni@v0.3.0/negroni.go:29 +0x51
2023-11-23T09:43:36.3146544Z   github.com/urfave/negroni.middleware.ServeHTTP()
2023-11-23T09:43:36.3147929Z       /home/runner/go/pkg/mod/github.com/urfave/negroni@v0.3.0/negroni.go:38 +0x134
2023-11-23T09:43:36.3149260Z   github.com/urfave/negroni.middleware.ServeHTTP-fm()
2023-11-23T09:43:36.3150337Z       <autogenerated>:1 +0x71
2023-11-23T09:43:36.3151119Z   github.com/urfave/negroni.(*Recovery).ServeHTTP()
2023-11-23T09:43:36.3152474Z       /home/runner/go/pkg/mod/github.com/urfave/negroni@v0.3.0/recovery.go:193 +0xe1
2023-11-23T09:43:36.3154088Z   github.com/urfave/negroni.middleware.ServeHTTP()
2023-11-23T09:43:36.3155513Z       /home/runner/go/pkg/mod/github.com/urfave/negroni@v0.3.0/negroni.go:38 +0x134
2023-11-23T09:43:36.3156697Z   github.com/urfave/negroni.(*Negroni).ServeHTTP()
2023-11-23T09:43:36.3158145Z       /home/runner/go/pkg/mod/github.com/urfave/negroni@v0.3.0/negroni.go:96 +0x1b8
2023-11-23T09:43:36.3159231Z   net/http.(*ServeMux).ServeHTTP()
2023-11-23T09:43:36.3160326Z       /opt/hostedtoolcache/go/1.21.4/x64/src/net/http/server.go:2514 +0xbc
2023-11-23T09:43:36.3161790Z   go.etcd.io/etcd/embed.(*accessController).ServeHTTP()
2023-11-23T09:43:36.3163644Z       /home/runner/go/pkg/mod/go.etcd.io/etcd@v0.5.0-alpha.5.0.20220915004622-85b640cee793/embed/serve.go:381 +0x94d
2023-11-23T09:43:36.3165134Z   net/http.serverHandler.ServeHTTP()
2023-11-23T09:43:36.3166322Z       /opt/hostedtoolcache/go/1.21.4/x64/src/net/http/server.go:2938 +0x2a1
2023-11-23T09:43:36.3167351Z   net/http.(*conn).serve()
2023-11-23T09:43:36.3168503Z       /opt/hostedtoolcache/go/1.21.4/x64/src/net/http/server.go:2009 +0xc24
2023-11-23T09:43:36.3169492Z   net/http.(*Server).Serve.func3()
2023-11-23T09:43:36.3170679Z       /opt/hostedtoolcache/go/1.21.4/x64/src/net/http/server.go:3086 +0x4f
2023-11-23T09:43:36.3171357Z 
2023-11-23T09:43:36.3171904Z Previous write at 0x00c001010088 by goroutine 99650:
2023-11-23T09:43:36.3172855Z   github.com/tikv/pd/server.(*Server).startEtcd()
2023-11-23T09:43:36.3173962Z       /home/runner/work/pd/pd/server/server.go:379 +0x1134
2023-11-23T09:43:36.3174967Z   github.com/tikv/pd/server.(*Server).Run()
2023-11-23T09:43:36.3175997Z       /home/runner/work/pd/pd/server/server.go:582 +0x18e
2023-11-23T09:43:36.3176916Z   github.com/tikv/pd/tests.(*TestServer).Run()
2023-11-23T09:43:36.3178081Z       /home/runner/work/pd/pd/tests/cluster.go:125 +0x1e4
2023-11-23T09:43:36.3179622Z   github.com/tikv/pd/tests/integrations/mcs/scheduling.(*serverTestSuite).TestAllocIDAfterLeaderChange()
2023-11-23T09:43:36.3181542Z       /home/runner/work/pd/pd/tests/integrations/mcs/scheduling/server_test.go:101 +0x135
2023-11-23T09:43:36.3182946Z   github.com/pingcap/failpoint.parseTerm()
2023-11-23T09:43:36.3184826Z       /home/runner/go/pkg/mod/github.com/pingcap/failpoint@v0.0.0-20210918120811-547c13e3eb00/terms.go:149 +0x364
2023-11-23T09:43:36.3186294Z   github.com/pingcap/failpoint.parse()
2023-11-23T09:43:36.3188198Z       /home/runner/go/pkg/mod/github.com/pingcap/failpoint@v0.0.0-20210918120811-547c13e3eb00/terms.go:126 +0xa5
2023-11-23T09:43:36.3189561Z   github.com/pingcap/failpoint.newTerms()
2023-11-23T09:43:36.3191400Z       /home/runner/go/pkg/mod/github.com/pingcap/failpoint@v0.0.0-20210918120811-547c13e3eb00/terms.go:98 +0x3e
2023-11-23T09:43:36.3192877Z   github.com/pingcap/failpoint.(*Failpoint).Enable()
2023-11-23T09:43:36.3194724Z       /home/runner/go/pkg/mod/github.com/pingcap/failpoint@v0.0.0-20210918120811-547c13e3eb00/failpoint.go:54 +0x3e
2023-11-23T09:43:36.3196322Z   github.com/pingcap/failpoint.(*Failpoints).Enable()
2023-11-23T09:43:36.3198278Z       /home/runner/go/pkg/mod/github.com/pingcap/failpoint@v0.0.0-20210918120811-547c13e3eb00/failpoints.go:105 +0x276
2023-11-23T09:43:36.3199662Z   github.com/pingcap/failpoint.Enable()
2023-11-23T09:43:36.3201865Z       /home/runner/go/pkg/mod/github.com/pingcap/failpoint@v0.0.0-20210918120811-547c13e3eb00/failpoints.go:225 +0x9c
2023-11-23T09:43:36.3203925Z   github.com/tikv/pd/tests/integrations/mcs/scheduling.(*serverTestSuite).TestAllocIDAfterLeaderChange()
2023-11-23T09:43:36.3206092Z       /home/runner/work/pd/pd/tests/integrations/mcs/scheduling/server_test.go:98 +0x9d
2023-11-23T09:43:36.3207576Z   runtime.call16()
2023-11-23T09:43:36.3208572Z       /opt/hostedtoolcache/go/1.21.4/x64/src/runtime/asm_amd64.s:747 +0x42
2023-11-23T09:43:36.3209586Z   reflect.Value.Call()
2023-11-23T09:43:36.3210770Z       /opt/hostedtoolcache/go/1.21.4/x64/src/reflect/value.go:380 +0xb5
2023-11-23T09:43:36.3211824Z   github.com/stretchr/testify/suite.Run.func1()
2023-11-23T09:43:36.3213638Z       /home/runner/go/pkg/mod/github.com/stretchr/testify@v1.8.2/suite/suite.go:197 +0x684
2023-11-23T09:43:36.3214754Z   testing.tRunner()
2023-11-23T09:43:36.3215803Z       /opt/hostedtoolcache/go/1.21.4/x64/src/testing/testing.go:1595 +0x238
2023-11-23T09:43:36.3216919Z   testing.(*T).Run.func1()
2023-11-23T09:43:36.3217988Z       /opt/hostedtoolcache/go/1.21.4/x64/src/testing/testing.go:1648 +0x44
2023-11-23T09:43:36.3218715Z 
2023-11-23T09:43:36.3218983Z Goroutine 105778 (running) created at:
2023-11-23T09:43:36.3219837Z   net/http.(*Server).Serve()
2023-11-23T09:43:36.3220922Z       /opt/hostedtoolcache/go/1.21.4/x64/src/net/http/server.go:3086 +0x80c
2023-11-23T09:43:36.3221912Z   go.etcd.io/etcd/embed.(*serveCtx).serve.func3()
2023-11-23T09:43:36.3223882Z       /home/runner/go/pkg/mod/go.etcd.io/etcd@v0.5.0-alpha.5.0.20220915004622-85b640cee793/embed/serve.go:141 +0x4f
2023-11-23T09:43:36.3224923Z 
2023-11-23T09:43:36.3225208Z Goroutine 99650 (running) created at:
2023-11-23T09:43:36.3225924Z   testing.(*T).Run()
2023-11-23T09:43:36.3227066Z       /opt/hostedtoolcache/go/1.21.4/x64/src/testing/testing.go:1648 +0x82a
2023-11-23T09:43:36.3228155Z   github.com/stretchr/testify/suite.runTests()
2023-11-23T09:43:36.3229450Z       /home/runner/go/pkg/mod/github.com/stretchr/testify@v1.8.2/suite/suite.go:242 +0x186
2023-11-23T09:43:36.3230833Z   github.com/stretchr/testify/suite.Run()
2023-11-23T09:43:36.3232194Z       /home/runner/go/pkg/mod/github.com/stretchr/testify@v1.8.2/suite/suite.go:215 +0x9d2
2023-11-23T09:43:36.3233459Z   github.com/pingcap/failpoint.parse()
2023-11-23T09:43:36.3235228Z       /home/runner/go/pkg/mod/github.com/pingcap/failpoint@v0.0.0-20210918120811-547c13e3eb00/terms.go:126 +0xa5
2023-11-23T09:43:36.3236545Z   github.com/pingcap/failpoint.newTerms()
2023-11-23T09:43:36.3238366Z       /home/runner/go/pkg/mod/github.com/pingcap/failpoint@v0.0.0-20210918120811-547c13e3eb00/terms.go:98 +0x3e
2023-11-23T09:43:36.3239817Z   github.com/pingcap/failpoint.(*Failpoint).Enable()
2023-11-23T09:43:36.3241761Z       /home/runner/go/pkg/mod/github.com/pingcap/failpoint@v0.0.0-20210918120811-547c13e3eb00/failpoint.go:54 +0x3e
2023-11-23T09:43:36.3243266Z   github.com/pingcap/failpoint.(*Failpoints).Enable()
2023-11-23T09:43:36.3245160Z       /home/runner/go/pkg/mod/github.com/pingcap/failpoint@v0.0.0-20210918120811-547c13e3eb00/failpoints.go:105 +0x276
2023-11-23T09:43:36.3246506Z   github.com/pingcap/failpoint.Enable()
2023-11-23T09:43:36.3248537Z       /home/runner/go/pkg/mod/github.com/pingcap/failpoint@v0.0.0-20210918120811-547c13e3eb00/failpoints.go:225 +0x7a
2023-11-23T09:43:36.3250319Z   github.com/tikv/pd/tests/integrations/mcs/scheduling.(*serverTestSuite).SetupSuite()
2023-11-23T09:43:36.3252065Z       /home/runner/work/pd/pd/tests/integrations/mcs/scheduling/server_test.go:62 +0x7b
2023-11-23T09:43:36.3253437Z   github.com/stretchr/testify/suite.Run()
2023-11-23T09:43:36.3254773Z       /home/runner/go/pkg/mod/github.com/stretchr/testify@v1.8.2/suite/suite.go:154 +0x5fe
2023-11-23T09:43:36.3256320Z   github.com/tikv/pd/tests/integrations/mcs/scheduling.TestServerTestSuite()
2023-11-23T09:43:36.3258257Z       /home/runner/work/pd/pd/tests/integrations/mcs/scheduling/server_test.go:56 +0x3c
2023-11-23T09:43:36.3259394Z   testing.tRunner()
2023-11-23T09:43:36.3260667Z       /opt/hostedtoolcache/go/1.21.4/x64/src/testing/testing.go:1595 +0x238
2023-11-23T09:43:36.3261653Z   testing.(*T).Run.func1()
2023-11-23T09:43:36.3263080Z       /opt/hostedtoolcache/go/1.21.4/x64/src/testing/testing.go:1648 +0x44
2023-11-23T09:43:36.3264118Z ==================
2023-11-23T09:43:36.3264665Z ==================
2023-11-23T09:43:36.3265230Z WARNING: DATA RACE
2023-11-23T09:43:36.3265938Z Read at 0x00c0003612d8 by goroutine 105778:
2023-11-23T09:43:36.3266722Z   sync/atomic.LoadInt64()
2023-11-23T09:43:36.3267701Z       /opt/hostedtoolcache/go/1.21.4/x64/src/runtime/race_amd64.s:208 +0xb
2023-11-23T09:43:36.3268817Z   sync/atomic.LoadPointer()
2023-11-23T09:43:36.3269839Z       <autogenerated>:1 +0x10
2023-11-23T09:43:36.3270741Z   github.com/tikv/pd/pkg/member.(*EmbeddedEtcdMember).GetLeader()
2023-11-23T09:43:36.3272097Z       /home/runner/work/pd/pd/pkg/member/member.go:134 +0x89
2023-11-23T09:43:36.3273409Z   github.com/tikv/pd/pkg/utils/apiutil/serverapi.(*redirector).ServeHTTP()
2023-11-23T09:43:36.3275040Z       /home/runner/work/pd/pd/pkg/utils/apiutil/serverapi/middleware.go:200 +0x1284
2023-11-23T09:43:36.3276454Z   github.com/urfave/negroni.middleware.ServeHTTP()
2023-11-23T09:43:36.3277801Z       /home/runner/go/pkg/mod/github.com/urfave/negroni@v0.3.0/negroni.go:38 +0x134
2023-11-23T09:43:36.3279361Z   github.com/urfave/negroni.middleware.ServeHTTP-fm()
2023-11-23T09:43:36.3280247Z       <autogenerated>:1 +0x71
2023-11-23T09:43:36.3281613Z   github.com/tikv/pd/pkg/utils/apiutil/serverapi.(*runtimeServiceValidator).ServeHTTP()
2023-11-23T09:43:36.3283432Z       /home/runner/work/pd/pd/pkg/utils/apiutil/serverapi/middleware.go:44 +0x171
2023-11-23T09:43:36.3284690Z   github.com/urfave/negroni.middleware.ServeHTTP()
2023-11-23T09:43:36.3286010Z       /home/runner/go/pkg/mod/github.com/urfave/negroni@v0.3.0/negroni.go:38 +0x134
2023-11-23T09:43:36.3287331Z   github.com/urfave/negroni.(*Negroni).ServeHTTP()
2023-11-23T09:43:36.3288594Z       /home/runner/go/pkg/mod/github.com/urfave/negroni@v0.3.0/negroni.go:96 +0x1b8
2023-11-23T09:43:36.3289807Z   github.com/gorilla/mux.(*Router).ServeHTTP()
2023-11-23T09:43:36.3291260Z       /home/runner/go/pkg/mod/github.com/gorilla/mux@v1.7.4/mux.go:210 +0x361
2023-11-23T09:43:36.3292350Z   github.com/gorilla/mux.(*Router).ServeHTTP()
2023-11-23T09:43:36.3293594Z       /home/runner/go/pkg/mod/github.com/gorilla/mux@v1.7.4/mux.go:210 +0x361
2023-11-23T09:43:36.3294923Z   github.com/urfave/negroni.(*Negroni).UseHandler.Wrap.func1()
2023-11-23T09:43:36.3296312Z       /home/runner/go/pkg/mod/github.com/urfave/negroni@v0.3.0/negroni.go:46 +0x66
2023-11-23T09:43:36.3297486Z   github.com/urfave/negroni.HandlerFunc.ServeHTTP()
2023-11-23T09:43:36.3298896Z       /home/runner/go/pkg/mod/github.com/urfave/negroni@v0.3.0/negroni.go:29 +0x51
2023-11-23T09:43:36.3300053Z   github.com/urfave/negroni.middleware.ServeHTTP()
2023-11-23T09:43:36.3301515Z       /home/runner/go/pkg/mod/github.com/urfave/negroni@v0.3.0/negroni.go:38 +0x134
2023-11-23T09:43:36.3302787Z   github.com/urfave/negroni.middleware.ServeHTTP-fm()
2023-11-23T09:43:36.3303738Z       <autogenerated>:1 +0x71
2023-11-23T09:43:36.3304655Z   github.com/urfave/negroni.(*Recovery).ServeHTTP()
2023-11-23T09:43:36.3305981Z       /home/runner/go/pkg/mod/github.com/urfave/negroni@v0.3.0/recovery.go:193 +0xe1
2023-11-23T09:43:36.3307277Z   github.com/urfave/negroni.middleware.ServeHTTP()
2023-11-23T09:43:36.3308686Z       /home/runner/go/pkg/mod/github.com/urfave/negroni@v0.3.0/negroni.go:38 +0x134
2023-11-23T09:43:36.3309856Z   github.com/urfave/negroni.(*Negroni).ServeHTTP()
2023-11-23T09:43:36.3311208Z       /home/runner/go/pkg/mod/github.com/urfave/negroni@v0.3.0/negroni.go:96 +0x1b8
2023-11-23T09:43:36.3312396Z   net/http.(*ServeMux).ServeHTTP()
2023-11-23T09:43:36.3313520Z       /opt/hostedtoolcache/go/1.21.4/x64/src/net/http/server.go:2514 +0xbc
2023-11-23T09:43:36.3314673Z   go.etcd.io/etcd/embed.(*accessController).ServeHTTP()
2023-11-23T09:43:36.3316615Z       /home/runner/go/pkg/mod/go.etcd.io/etcd@v0.5.0-alpha.5.0.20220915004622-85b640cee793/embed/serve.go:381 +0x94d
2023-11-23T09:43:36.3318055Z   net/http.serverHandler.ServeHTTP()
2023-11-23T09:43:36.3319483Z       /opt/hostedtoolcache/go/1.21.4/x64/src/net/http/server.go:2938 +0x2a1
2023-11-23T09:43:36.3320807Z   net/http.(*conn).serve()
2023-11-23T09:43:36.3321916Z       /opt/hostedtoolcache/go/1.21.4/x64/src/net/http/server.go:2009 +0xc24
2023-11-23T09:43:36.3322837Z   net/http.(*Server).Serve.func3()
2023-11-23T09:43:36.3324101Z       /opt/hostedtoolcache/go/1.21.4/x64/src/net/http/server.go:3086 +0x4f
2023-11-23T09:43:36.3324812Z 
2023-11-23T09:43:36.3325166Z Previous write at 0x00c0003612d8 by goroutine 99650:
2023-11-23T09:43:36.3326467Z   github.com/tikv/pd/pkg/member.NewMember()
2023-11-23T09:43:36.3327590Z       /home/runner/work/pd/pd/pkg/member/member.go:70 +0x100a
2023-11-23T09:43:36.3328565Z   github.com/tikv/pd/server.(*Server).startEtcd()
2023-11-23T09:43:36.3329773Z       /home/runner/work/pd/pd/server/server.go:379 +0xf65
2023-11-23T09:43:36.3477811Z   github.com/tikv/pd/server.(*Server).Run()
2023-11-23T09:43:36.3478934Z       /home/runner/work/pd/pd/server/server.go:582 +0x18e
2023-11-23T09:43:36.3479719Z   github.com/tikv/pd/tests.(*TestServer).Run()
2023-11-23T09:43:36.3481076Z       /home/runner/work/pd/pd/tests/cluster.go:125 +0x1e4
2023-11-23T09:43:36.3482466Z   github.com/tikv/pd/tests/integrations/mcs/scheduling.(*serverTestSuite).TestAllocIDAfterLeaderChange()
2023-11-23T09:43:36.3484290Z       /home/runner/work/pd/pd/tests/integrations/mcs/scheduling/server_test.go:101 +0x135
2023-11-23T09:43:36.3485440Z   github.com/pingcap/failpoint.parseTerm()
2023-11-23T09:43:36.3487174Z       /home/runner/go/pkg/mod/github.com/pingcap/failpoint@v0.0.0-20210918120811-547c13e3eb00/terms.go:149 +0x364
2023-11-23T09:43:36.3488386Z   github.com/pingcap/failpoint.parse()
2023-11-23T09:43:36.3489969Z       /home/runner/go/pkg/mod/github.com/pingcap/failpoint@v0.0.0-20210918120811-547c13e3eb00/terms.go:126 +0xa5
2023-11-23T09:43:36.3491173Z   github.com/pingcap/failpoint.newTerms()
2023-11-23T09:43:36.3492764Z       /home/runner/go/pkg/mod/github.com/pingcap/failpoint@v0.0.0-20210918120811-547c13e3eb00/terms.go:98 +0x3e
2023-11-23T09:43:36.3494026Z   github.com/pingcap/failpoint.(*Failpoint).Enable()
2023-11-23T09:43:36.3495711Z       /home/runner/go/pkg/mod/github.com/pingcap/failpoint@v0.0.0-20210918120811-547c13e3eb00/failpoint.go:54 +0x3e
2023-11-23T09:43:36.3496995Z   github.com/pingcap/failpoint.(*Failpoints).Enable()
2023-11-23T09:43:36.3498715Z       /home/runner/go/pkg/mod/github.com/pingcap/failpoint@v0.0.0-20210918120811-547c13e3eb00/failpoints.go:105 +0x276
2023-11-23T09:43:36.3499916Z   github.com/pingcap/failpoint.Enable()
2023-11-23T09:43:36.3501547Z       /home/runner/go/pkg/mod/github.com/pingcap/failpoint@v0.0.0-20210918120811-547c13e3eb00/failpoints.go:225 +0x9c
2023-11-23T09:43:36.3503367Z   github.com/tikv/pd/tests/integrations/mcs/scheduling.(*serverTestSuite).TestAllocIDAfterLeaderChange()
2023-11-23T09:43:36.3505151Z       /home/runner/work/pd/pd/tests/integrations/mcs/scheduling/server_test.go:98 +0x9d
2023-11-23T09:43:36.3506149Z   runtime.call16()
2023-11-23T09:43:36.3506973Z       /opt/hostedtoolcache/go/1.21.4/x64/src/runtime/asm_amd64.s:747 +0x42
2023-11-23T09:43:36.3507848Z   reflect.Value.Call()
2023-11-23T09:43:36.3508716Z       /opt/hostedtoolcache/go/1.21.4/x64/src/reflect/value.go:380 +0xb5
2023-11-23T09:43:36.3509600Z   github.com/stretchr/testify/suite.Run.func1()
2023-11-23T09:43:36.3510819Z       /home/runner/go/pkg/mod/github.com/stretchr/testify@v1.8.2/suite/suite.go:197 +0x684
2023-11-23T09:43:36.3511767Z   testing.tRunner()
2023-11-23T09:43:36.3512634Z       /opt/hostedtoolcache/go/1.21.4/x64/src/testing/testing.go:1595 +0x238
2023-11-23T09:43:36.3513465Z   testing.(*T).Run.func1()
2023-11-23T09:43:36.3514367Z       /opt/hostedtoolcache/go/1.21.4/x64/src/testing/testing.go:1648 +0x44
2023-11-23T09:43:36.3514982Z 
2023-11-23T09:43:36.3515196Z Goroutine 105778 (running) created at:
2023-11-23T09:43:36.3515774Z   net/http.(*Server).Serve()
2023-11-23T09:43:36.3516705Z       /opt/hostedtoolcache/go/1.21.4/x64/src/net/http/server.go:3086 +0x80c
2023-11-23T09:43:36.3517636Z   go.etcd.io/etcd/embed.(*serveCtx).serve.func3()
2023-11-23T09:43:36.3519713Z       /home/runner/go/pkg/mod/go.etcd.io/etcd@v0.5.0-alpha.5.0.20220915004622-85b640cee793/embed/serve.go:141 +0x4f
2023-11-23T09:43:36.3520938Z 
2023-11-23T09:43:36.3521178Z Goroutine 99650 (running) created at:
2023-11-23T09:43:36.3521756Z   testing.(*T).Run()
2023-11-23T09:43:36.3522663Z       /opt/hostedtoolcache/go/1.21.4/x64/src/testing/testing.go:1648 +0x82a
2023-11-23T09:43:36.3523602Z   github.com/stretchr/testify/suite.runTests()
2023-11-23T09:43:36.3525161Z       /home/runner/go/pkg/mod/github.com/stretchr/testify@v1.8.2/suite/suite.go:242 +0x186
2023-11-23T09:43:36.3526191Z   github.com/stretchr/testify/suite.Run()
2023-11-23T09:43:36.3527352Z       /home/runner/go/pkg/mod/github.com/stretchr/testify@v1.8.2/suite/suite.go:215 +0x9d2
2023-11-23T09:43:36.3528193Z   github.com/pingcap/failpoint.parse()
2023-11-23T09:43:36.3529723Z       /home/runner/go/pkg/mod/github.com/pingcap/failpoint@v0.0.0-20210918120811-547c13e3eb00/terms.go:126 +0xa5
2023-11-23T09:43:36.3530944Z   github.com/pingcap/failpoint.newTerms()
2023-11-23T09:43:36.3532518Z       /home/runner/go/pkg/mod/github.com/pingcap/failpoint@v0.0.0-20210918120811-547c13e3eb00/terms.go:98 +0x3e
2023-11-23T09:43:36.3533768Z   github.com/pingcap/failpoint.(*Failpoint).Enable()
2023-11-23T09:43:36.3535485Z       /home/runner/go/pkg/mod/github.com/pingcap/failpoint@v0.0.0-20210918120811-547c13e3eb00/failpoint.go:54 +0x3e
2023-11-23T09:43:36.3536774Z   github.com/pingcap/failpoint.(*Failpoints).Enable()
2023-11-23T09:43:36.3538525Z       /home/runner/go/pkg/mod/github.com/pingcap/failpoint@v0.0.0-20210918120811-547c13e3eb00/failpoints.go:105 +0x276
2023-11-23T09:43:36.3539809Z   github.com/pingcap/failpoint.Enable()
2023-11-23T09:43:36.3541476Z       /home/runner/go/pkg/mod/github.com/pingcap/failpoint@v0.0.0-20210918120811-547c13e3eb00/failpoints.go:225 +0x7a
2023-11-23T09:43:36.3543162Z   github.com/tikv/pd/tests/integrations/mcs/scheduling.(*serverTestSuite).SetupSuite()
2023-11-23T09:43:36.3544840Z       /home/runner/work/pd/pd/tests/integrations/mcs/scheduling/server_test.go:62 +0x7b
2023-11-23T09:43:36.3545902Z   github.com/stretchr/testify/suite.Run()
2023-11-23T09:43:36.3547115Z       /home/runner/go/pkg/mod/github.com/stretchr/testify@v1.8.2/suite/suite.go:154 +0x5fe
2023-11-23T09:43:36.3548490Z   github.com/tikv/pd/tests/integrations/mcs/scheduling.TestServerTestSuite()
2023-11-23T09:43:36.3550082Z       /home/runner/work/pd/pd/tests/integrations/mcs/scheduling/server_test.go:56 +0x3c
2023-11-23T09:43:36.3551136Z   testing.tRunner()
2023-11-23T09:43:36.3552048Z       /opt/hostedtoolcache/go/1.21.4/x64/src/testing/testing.go:1595 +0x238
2023-11-23T09:43:36.3552870Z   testing.(*T).Run.func1()
2023-11-23T09:43:36.3553775Z       /opt/hostedtoolcache/go/1.21.4/x64/src/testing/testing.go:1648 +0x44
2023-11-23T09:43:36.3554545Z ==================

CI link

https://github.com/tikv/pd/actions/runs/6967943525/job/18960807537

Reason for failure (if possible)

Anything else

@lhy1024 lhy1024 added the type/ci The issue is related to CI. label Nov 23, 2023
@rleungx
Copy link
Member

rleungx commented Nov 23, 2023

duplicated with #7419?

@lhy1024
Copy link
Contributor Author

lhy1024 commented Nov 23, 2023

duplicated with #7419?

This action contains the pr, but still data race

@rleungx
Copy link
Member

rleungx commented Nov 23, 2023

#7426 will fix it.

@lhy1024
Copy link
Contributor Author

lhy1024 commented Nov 23, 2023

ti-chi-bot bot pushed a commit that referenced this issue Nov 24, 2023
close #7427

Signed-off-by: Ryan Leung <rleungx@gmail.com>
rleungx added a commit to rleungx/pd that referenced this issue Dec 1, 2023
close tikv#7427

Signed-off-by: Ryan Leung <rleungx@gmail.com>
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

Successfully merging a pull request may close this issue.

2 participants