Closed jackylee-ch closed 1 year ago
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.
unit tests.
https://github.com/oap-project/native-sql-engine/issues/1125
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.