Skip to content

Conversation

@informalict
Copy link
Contributor

No description provided.

timeout = c.defaultTimeout
}

serverCount := len(c.servers)
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

here it is the race condition because c.servers can be written from the other place like UpdateEndpoints

@informalict informalict force-pushed the race-condition-cluster-connection branch from 3122470 to 383e53a Compare June 2, 2021 05:50
@informalict informalict requested a review from ajanikow June 2, 2021 06:45
@informalict informalict changed the title test race condition on the servers field in the cluster connection object Jun 2, 2021
@informalict informalict merged commit e63cef3 into master Jun 2, 2021
@informalict informalict deleted the race-condition-cluster-connection branch June 2, 2021 12:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants