oap-project / gazelle_plugin

Native SQL Engine plugin for Spark SQL with vectorized SIMD optimizations.
Apache License 2.0
256 stars 77 forks source link

index returns -1 while calling HashMap.GetOrInsert #1125

Open jackylee-ch opened 1 year ago

jackylee-ch commented 1 year ago

Describe the bug We meet the problem while there are other problems with hashmap, such as buffer overflow or OOM. With these problem, the GetOrInset was actually failed and the index was -1 , which whould finally called core when trying to use this index.

To Reproduce Reproduce with buffer overflow or OOM while ReSizing or other error happened in GetOrInsert.

Expected behavior Check the status of GetOrInsert and throw exception if not ok.