WARNING: DATA RACE Write at 0x00c000116330 by goroutine 30: go.mongodb.org/mongo-driver/x/mongo/driver/auth.(*OIDCAuthenticator).Auth() /go.mongodb.org/mongo-driver/x/mongo/driver/auth/oidc.go:264 +0xac go.mongodb.org/mongo-driver/x/mongo/driver/auth.(*authHandshaker).authenticate() /go.mongodb.org/mongo-driver/x/mongo/driver/auth/auth.go:171 +0x1f4 go.mongodb.org/mongo-driver/x/mongo/driver/auth.(*authHandshaker).FinishHandshake() /go.mongodb.org/mongo-driver/x/mongo/driver/auth/auth.go:147 +0x52d go.mongodb.org/mongo-driver/x/mongo/driver/topology.(*connection).connect() /go.mongodb.org/mongo-driver/x/mongo/driver/topology/connection.go:261 +0xd7b go.mongodb.org/mongo-driver/x/mongo/driver/topology.(*pool).createConnections() /go.mongodb.org/mongo-driver/x/mongo/driver/topology/pool.go:1202 +0x584 go.mongodb.org/mongo-driver/x/mongo/driver/topology.newPool.func3() /go.mongodb.org/mongo-driver/x/mongo/driver/topology/pool.go:241 +0x64 Previous write at 0x00c000116330 by goroutine 29: go.mongodb.org/mongo-driver/x/mongo/driver/auth.(*OIDCAuthenticator).Auth() /go.mongodb.org/mongo-driver/x/mongo/driver/auth/oidc.go:264 +0xac go.mongodb.org/mongo-driver/x/mongo/driver/auth.(*authHandshaker).authenticate() /go.mongodb.org/mongo-driver/x/mongo/driver/auth/auth.go:171 +0x1f4 go.mongodb.org/mongo-driver/x/mongo/driver/auth.(*authHandshaker).FinishHandshake() /go.mongodb.org/mongo-driver/x/mongo/driver/auth/auth.go:147 +0x52d go.mongodb.org/mongo-driver/x/mongo/driver/topology.(*connection).connect() /go.mongodb.org/mongo-driver/x/mongo/driver/topology/connection.go:261 +0xd7b go.mongodb.org/mongo-driver/x/mongo/driver/topology.(*pool).createConnections() /go.mongodb.org/mongo-driver/x/mongo/driver/topology/pool.go:1202 +0x584 go.mongodb.org/mongo-driver/x/mongo/driver/topology.newPool.func3() /go.mongodb.org/mongo-driver/x/mongo/driver/topology/pool.go:241 +0x64 Goroutine 30 (running) created at: go.mongodb.org/mongo-driver/x/mongo/driver/topology.newPool() /go.mongodb.org/mongo-driver/x/mongo/driver/topology/pool.go:241 +0xd4c go.mongodb.org/mongo-driver/x/mongo/driver/topology.NewServer() /go.mongodb.org/mongo-driver/x/mongo/driver/topology/server.go:196 +0xa67 go.mongodb.org/mongo-driver/x/mongo/driver/topology.ConnectServer() /go.mongodb.org/mongo-driver/x/mongo/driver/topology/server.go:144 +0x86 go.mongodb.org/mongo-driver/x/mongo/driver/topology.(*Topology).addServer() /go.mongodb.org/mongo-driver/x/mongo/driver/topology/topology.go:995 +0x17b go.mongodb.org/mongo-driver/x/mongo/driver/topology.(*Topology).Connect() /go.mongodb.org/mongo-driver/x/mongo/driver/topology/topology.go:387 +0x10cc go.mongodb.org/mongo-driver/mongo.(*Client).Connect() /go.mongodb.org/mongo-driver/mongo/client.go:265 +0x95 go.mongodb.org/mongo-driver/mongo.Connect() /go.mongodb.org/mongo-driver/mongo/client.go:113 +0x67 main.connectWithMachineCB() /go.mongodb.org/mongo-driver/cmd/testoidcauth/main.go:51 +0x148 main.machine12callbackIsCalledOnlyOneForMultipleConnections() /go.mongodb.org/mongo-driver/cmd/testoidcauth/main.go:141 +0x224 main.main.func1() /go.mongodb.org/mongo-driver/cmd/testoidcauth/main.go:69 +0xc8 main.main() /go.mongodb.org/mongo-driver/cmd/testoidcauth/main.go:79 +0xe3 Goroutine 29 (running) created at: go.mongodb.org/mongo-driver/x/mongo/driver/topology.newPool() /go.mongodb.org/mongo-driver/x/mongo/driver/topology/pool.go:241 +0xd4c go.mongodb.org/mongo-driver/x/mongo/driver/topology.NewServer() /go.mongodb.org/mongo-driver/x/mongo/driver/topology/server.go:196 +0xa67 go.mongodb.org/mongo-driver/x/mongo/driver/topology.ConnectServer() /go.mongodb.org/mongo-driver/x/mongo/driver/topology/server.go:144 +0x86 go.mongodb.org/mongo-driver/x/mongo/driver/topology.(*Topology).addServer() /go.mongodb.org/mongo-driver/x/mongo/driver/topology/topology.go:995 +0x17b go.mongodb.org/mongo-driver/x/mongo/driver/topology.(*Topology).Connect() /go.mongodb.org/mongo-driver/x/mongo/driver/topology/topology.go:387 +0x10cc go.mongodb.org/mongo-driver/mongo.(*Client).Connect() /go.mongodb.org/mongo-driver/mongo/client.go:265 +0x95 go.mongodb.org/mongo-driver/mongo.Connect() /go.mongodb.org/mongo-driver/mongo/client.go:113 +0x67 main.connectWithMachineCB() /go.mongodb.org/mongo-driver/cmd/testoidcauth/main.go:51 +0x148 main.machine12callbackIsCalledOnlyOneForMultipleConnections() /go.mongodb.org/mongo-driver/cmd/testoidcauth/main.go:141 +0x224 main.main.func1() /go.mongodb.org/mongo-driver/cmd/testoidcauth/main.go:69 +0xc8 main.main() /go.mongodb.org/mongo-driver/cmd/testoidcauth/main.go:79 +0xe3 ==================