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

Initialize HealthCounts to non-null value. #27

Merged
merged 1 commit into from
Nov 30, 2012
Merged

Initialize HealthCounts to non-null value. #27

merged 1 commit into from
Nov 30, 2012

Conversation

benjchristensen
Copy link
Contributor

In a stress test I was doing that pounds a circuit immediately after creation it would have thread contention on the compareAndSet, one thread would go to create it, the other(s) would go to the else and return null and cause an NPE when trying to use it.
The losing threads should get the originally initialized value set to 0.

In a stress test I was doing that pounds a circuit immediately after creation it would have thread contention on the compareAndSet, one thread would go to create it, the other(s) would go to the else and return null and cause an NPE when trying to use it.
The losing threads should get the originally initialized value set to 0.
benjchristensen added a commit that referenced this pull request Nov 30, 2012
@benjchristensen benjchristensen merged commit 0da4f5b into Netflix:master Nov 30, 2012
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.

1 participant