Skip to content

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

Merged
sczyh30 merged 1 commit into
masterfrom
fix/param-bucket-npe
Feb 20, 2019
Merged

Bug fix: NPE when adding event count in ParamMapBucket#494
sczyh30 merged 1 commit into
masterfrom
fix/param-bucket-npe

Conversation

@sczyh30

@sczyh30 sczyh30 commented Feb 19, 2019

Copy link
Copy Markdown
Member

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

@CarpenterLee CarpenterLee left a comment

Copy link
Copy Markdown
Contributor

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