Skip to content

Race condition on minPoolSize and maxIdleTimeMS #173

@bmarguer

Description

@bmarguer

Hello.
It seems to have a race condition (latest tag : efe0945) on "DialWithInfo" when :

  • write part : cluster.minPoolSize is written
  • read part : just before "newCluster" has created the goroutine which launch the synServersLoop (this routine calls syncServersIteration --> spawnSync --> cluster.server --> minPoolSize := cluster.minPoolSize)
    I think the minPoolSize and the maxIdleTimeMS should be params of newCluster function like others info attributes ?

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions