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

Commits on Nov 30, 2012

  1. Initialize HealthCounts to non-null value.

    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 committed Nov 30, 2012
    Configuration menu
    Copy the full SHA
    0a8e985 View commit details
    Browse the repository at this point in the history