[Tarantool-patches] [PATCH rfc] rtree: added variable to store error information

Konstantin Osipov kostja.osipov at gmail.com
Thu Nov 14 14:16:48 MSK 2019


* Olga Arkhangelskaia <arkholga at tarantool.org> [19/11/14 13:51]:
> There is no error handling during memory allocation operations in
> rtree. This results in SEGV_MAPERR error.
> 
> There is any mechanism for error handling in libsalad, because it
> should be independent from tarantool. However, in case of memory
> errors(failed allocation) tarantool should notify user and stop
> execution correctly. Now we immediately return and notify caller through
> variable that error has happened.
> Closes #4916

rtree insert should not get started if it may run out of memory,
since it splits pages and needs to allocate memory on rollback
path.

The proper fix is to not start insert operation if there is no
memory.


-- 
Konstantin Osipov, Moscow, Russia


More information about the Tarantool-patches mailing list