From: Vladislav Shpilevoy <v.shpilevoy@tarantool.org>
To: Serge Petrenko <sergepetrenko@tarantool.org>,
gorcunov@gmail.com,
"Alexander V. Tikhonov" <avtikhon@tarantool.org>
Cc: tarantool-patches@dev.tarantool.org
Subject: Re: [Tarantool-patches] [PATCH v2] box: make instace ro while limbo is not empty
Date: Mon, 30 Nov 2020 22:22:17 +0100 [thread overview]
Message-ID: <02a31724-3374-287e-b4b8-6ddd7134320b@tarantool.org> (raw)
In-Reply-To: <20201130093551.62113-1-sergepetrenko@tarantool.org>
Hi! Thanks for the patch!
On 30.11.2020 10:35, Serge Petrenko via Tarantool-patches wrote:
> Users usually use box.ctl.wait_rw() to determine the moment when the
> instance becomes writeable.
> Since the synchronous replication introduction, this function became
> pointless, because even when an instance is writeable, it may fail at
> writing something because its limbo is not empty.
> To fix the problem introduce a new helper, txn_limbo_is_ro() and start
> using it in box_update_ro_summary().
> Call bax_update_ro_summary() every time the limbo gets emptied out or
bax -> box.
> changes an owner.
>
> Closes #5440
Sasha (Tikh.), please, validate the branch is good to push.
next prev parent reply other threads:[~2020-11-30 21:22 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-11-30 9:35 Serge Petrenko
2020-11-30 9:41 ` Serge Petrenko
2020-11-30 21:22 ` Vladislav Shpilevoy [this message]
2020-12-01 8:46 ` Serge Petrenko
2020-12-01 11:06 ` Alexander V. Tikhonov
2020-12-01 22:25 ` Vladislav Shpilevoy
2020-12-02 8:10 ` Serge Petrenko
2020-12-02 21:38 ` Vladislav Shpilevoy
2020-12-02 21:39 ` Vladislav Shpilevoy
2020-12-03 21:21 ` Vladislav Shpilevoy
2020-12-03 12:44 ` Alexander V. Tikhonov
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=02a31724-3374-287e-b4b8-6ddd7134320b@tarantool.org \
--to=v.shpilevoy@tarantool.org \
--cc=avtikhon@tarantool.org \
--cc=gorcunov@gmail.com \
--cc=sergepetrenko@tarantool.org \
--cc=tarantool-patches@dev.tarantool.org \
--subject='Re: [Tarantool-patches] [PATCH v2] box: make instace ro while limbo is not empty' \
/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