Tarantool development patches archive
 help / color / mirror / Atom feed
From: Cyrill Gorcunov <gorcunov@gmail.com>
To: Serge Petrenko <sergepetrenko@tarantool.org>
Cc: tarantool-patches@dev.tarantool.org,
	Vladislav Shpilevoy <v.shpilevoy@tarantool.org>
Subject: Re: [Tarantool-patches] [PATCH] applier: follow vclock to the last tx row
Date: Thu, 23 Apr 2020 12:54:13 +0300	[thread overview]
Message-ID: <20200423095413.GE3072@uranus> (raw)
In-Reply-To: <28487782-9C98-432A-95E1-A3583C96A564@tarantool.org>

On Thu, Apr 23, 2020 at 12:53:30PM +0300, Serge Petrenko wrote:
> 
> > 23 апр. 2020 г., в 12:41, Cyrill Gorcunov <gorcunov@gmail.com> написал(а):
> > 
> > On Wed, Apr 22, 2020 at 09:28:10PM +0300, Serge Petrenko wrote:
> >> Since the introduction of transaction boundaries in replication
> >> protocol, appliers follow replicaset.applier.vclock to the lsn of the
> >> first row in an arrived batch. This is enough and doesn't lead to errors
> >> when replicating from other instances, respecting transaction boundaries
> >> (instances with version 2.1.2 and up). However, if there's a 1.10
> >> instance in 2.1.2+ cluster, it sends every single tx row as a separate
> >> transaction, breaking the comparison with replicaset.applier.vclock and
> >> making the applier apply part of the changes, it has already applied
> >> when processing a full transaction coming from another 2.x instance.
> >> Such behaviour leads to ER_TUPLE_FOUND errors in the scenario described
> >> above.
> >> In order to guard from such cases, follow replicaset.applier.vclock to
> >> the lsn of the last row in tx.
> >> 
> >> Closes #4924
Reviewed-by: Cyrill Gorcunov <gorcunov@gmail.com>

Thanks!

  reply	other threads:[~2020-04-23  9:54 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-04-22 18:28 Serge Petrenko
2020-04-23  9:41 ` Cyrill Gorcunov
2020-04-23  9:53   ` Serge Petrenko
2020-04-23  9:54     ` Cyrill Gorcunov [this message]
2020-04-23 11:19       ` Serge Petrenko
2020-04-26 18:55 ` Vladislav Shpilevoy
2020-04-27 10:22 ` Kirill Yukhin
2020-04-27 10:39   ` Kirill Yukhin

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20200423095413.GE3072@uranus \
    --to=gorcunov@gmail.com \
    --cc=sergepetrenko@tarantool.org \
    --cc=tarantool-patches@dev.tarantool.org \
    --cc=v.shpilevoy@tarantool.org \
    --subject='Re: [Tarantool-patches] [PATCH] applier: follow vclock to the last tx row' \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox