[Tarantool-patches] [PATCH] applier: fix tx boundary check for half-applied txns

Kirill Yukhin kyukhin at tarantool.org
Mon Jul 6 09:33:59 MSK 2020


Hello,

On 05 июл 14:57, Serge Petrenko wrote:
> In case there are 2 "new" instances, running tarantool 2.2+,
> master and replica, and one "old" instance, running an earlier tarantool
> version, in a full-mesh cluster, it may happen that the "new" replica
> receives part of a tx from an "old" instance, and the remaining part
> from a "new" instance.
> 
> Since "new" instances preserve tx boundaries, "new" replica would skip
> the tx remains assuming it has already applied the full tx if it has
> applied the first tx row. This leads to gaps in "new" replica's WAL and
> to skipping the remaining part of the tx forever.
> 
> Fix this behaviour to apply the full tx even if it's beginning is
> already applied in mixed clusters.
> 
> Closes #5125
> ---
> 
> https://github.com/tarantool/tarantool/issues/5125
> https://github.com/tarantool/tarantool/tree/sp/gh-5125-applier-tx-boundaries

LGTM.
I've checked your patch into 2.3, 2.4 and master.

--
Regards, Kirill Yukhin


More information about the Tarantool-patches mailing list