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

CosmosDiagnostics: Fixes concurrent operations #2116

Merged
merged 2 commits into from
Jan 12, 2021

Conversation

j82w
Copy link
Contributor

@j82w j82w commented Jan 11, 2021

Pull Request Template

Description

This makes the CosmosDiagnostics thread safe by adding a lock to adding information to the diagnostic list. Benchmarks showed no changes from adding the lock which is likely because most of the diagnostics is not done concurrently.

Type of change

Please delete options that are not relevant.

  • [] Bug fix (non-breaking change which fixes an issue)
  • [] New feature (non-breaking change which adds functionality)
  • [] Breaking change (fix or feature that would cause existing functionality to not work as expected)
  • [] This change requires a documentation update

Closing issues

To automatically close an issue: closes #IssueNumber

Copy link
Member

@ealsur ealsur left a comment

Choose a reason for hiding this comment

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

Glad you were able to find a test to repro

@j82w j82w merged commit 2b82875 into master Jan 12, 2021
@j82w j82w deleted the users/jawilley/bug/indexOutOfBoundsFix branch January 12, 2021 14:41
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.

2 participants