Skip to content
This repository has been archived by the owner on Sep 18, 2023. It is now read-only.

[NSE-1125] Add status check for hashing GetOrInsert #1126

Merged

Conversation

jackylee-ch
Copy link
Contributor

@jackylee-ch jackylee-ch commented Oct 10, 2022

What changes were proposed in this pull request?

Index returns -1 when HashMap.GetOrInsert failed with some problems such as buffer overflow or OOM. And it whould finally core dump when trying to use this index.
Here we add a status check and throw exception if it failed.

How was this patch tested?

unit tests.

@github-actions
Copy link

#1125

@zhouyuan zhouyuan merged commit 6427ad5 into oap-project:main Oct 11, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants