[tarantool-patches] Re: [PATCH v2 2/2] swim: introduce incarnation.generation

Konstantin Osipov kostja at tarantool.org
Sun Jun 23 12:00:48 MSK 2019


* Vladislav Shpilevoy <v.shpilevoy at tarantool.org> [19/06/23 09:42]:
> SWIM uses incarnation to refute old information, but it is not
> enough when restarts are possible. If an instance restarts, its
> incarnation is reset to 0. After several local and fast updates
> it gets N. But it is possible, that other instances also know
> incarnation of this instance as N, from its previous life, but
> with different information. They will never take new version of
> data, because their current version is also considered actual.
> 
> As a result, incarnation is not enough. There was a necessity to
> create a persistent part of incarnation. This patch introduces it
> and calls 'generation'. As an additional profit, generation
> allows to react on instance restart in user defined triggers.
> 
> Closes #4280

lgtm


-- 
Konstantin Osipov, Moscow, Russia




More information about the Tarantool-patches mailing list