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

fix: Move bucket metrics to ConcurrentHashMaps #60

Merged
merged 1 commit into from
Oct 25, 2023

Conversation

chriswk
Copy link
Member

@chriswk chriswk commented Oct 24, 2023

Since we're continuously logging metrics, we could happen to log while serializing the metrics bucket. Moving to a concurrenthashmap will allow us to insert into the map while reading from the iterator.

fixes: #59

Since we're  continuously logging metrics, we could happen to log while
serializing the metrics bucket. Moving to a concurrenthashmap will allow
us to insert into the map while reading from the iterator.

fixes: #59
@chriswk chriswk requested a review from sjaanus October 24, 2023 10:36
@chriswk chriswk linked an issue Oct 24, 2023 that may be closed by this pull request
@chriswk chriswk self-assigned this Oct 24, 2023
Copy link
Contributor

@sjaanus sjaanus left a comment

Choose a reason for hiding this comment

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

LGTM

Copy link
Member

@sighphyre sighphyre left a comment

Choose a reason for hiding this comment

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

LGTM

@chriswk chriswk merged commit 33102b0 into main Oct 25, 2023
2 checks passed
@chriswk chriswk deleted the 59-concurrentmodificationexception branch October 25, 2023 06:55
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.

ConcurrentModificationException
3 participants