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

Bug fix: NPE when adding event count in ParamMapBucket #494

Merged
merged 1 commit into from
Feb 20, 2019

Conversation

sczyh30
Copy link
Member

@sczyh30 sczyh30 commented Feb 19, 2019

Describe what this PR does / why we need it

Fix the bug that NPE may occur when adding event count in ParamMapBucket. This is due to the concurrent operation for different values, causing old value eviction in LRU map.

Does this pull request fix one issue?

Fixes #493

Describe how you did it

Try to get the exact counter (though not strictly concise).

Describe how to verify it

Rerun the code snippet in #493. No NPE should occur.

Special notes for reviews

NONE

Signed-off-by: Eric Zhao <sczyh16@gmail.com>
@sczyh30 sczyh30 added the to-review To review label Feb 19, 2019
Copy link
Contributor

@CarpenterLee CarpenterLee left a comment

Choose a reason for hiding this comment

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

LGTM

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.

NPE when adding event count in ParamMapBucket
2 participants