[Tarantool-patches] [PATCH] vinyl: rotate mem during index build on demand

Konstantin Osipov kostja.osipov at gmail.com
Thu Jun 4 23:23:09 MSK 2020


* Nikita Pettik <korablev at tarantool.org> [20/06/04 20:49]:
> Meanwhile in 17f6af7dc the similar problem has been fixed, still it may
> appear that in-memory level of secondary index being constructed has
> lagging memory generation (in other words, it's values is less than
> the value of current global generation). Such situation can be achieved
> if yield which is required to check uniqueness of value being inserted
> is too long. In this time gap other space may trigger dump process
> bumping global memory generation counter, but dump itself is still not
> yet scheduled.

It's hard for me to understand this comment, perhaps
 you discussed the problem verbally, but I'm a bit out of context.

Could you write it using an event diagram, something like:

user1         user2            vy_scheduler

insert ...     
             create_index()


yield                            
                               dump

???


-- 
Konstantin Osipov, Moscow, Russia


More information about the Tarantool-patches mailing list