From: Vladislav Shpilevoy <v.shpilevoy@tarantool.org>
To: imeevma@tarantool.org, tarantool-patches@freelists.org
Subject: [tarantool-patches] Re: [PATCH v1 1/1] box: option to start tarantool with no format checks.
Date: Mon, 24 Sep 2018 13:28:38 +0300 [thread overview]
Message-ID: <e0ce1cfe-32c5-887d-a338-68085f5e8292@tarantool.org> (raw)
In-Reply-To: <5a0af01663110c2ac8b673ae61bce523673c3998.1537551740.git.imeevma@gmail.com>
Hi! Thanks for the patch! LGTM.
On 21/09/2018 20:49, imeevma@tarantool.org wrote:
> It is a common case that an instance is running on a version
> 1.6.*, then is upgraded to 1.9 with box.schema.upgrade(). But
> some of users has malformed space formats, and some of them got
> and ignored errors on box.schema.upgrade(). Such half-upgraded
> data can not be used to start a new version due to format
> violations, and can not be rolled back because some of new system
> spaces managed to be created. And we can not repair raw xlogs and
> snapshots because we have no such tools and they are zipped.
>
> So it would be useful to have a special box.cfg option
> ignore_space_formats. It would allow to start an instance on
> the spaces with malformed formats, fix them, create a snapshot
> and then start with the formats turned on.
>
> Closes #3605
>
> @TarantoolBot document
> Title: box.cfg option 'ignore_space_formats'
> The option allows to turn off space formats validation before
> the instance is started. Useful to fix malformed formats after
> an upgrade from version < 1.7.5 to >= 1.7.5.
> ---
> Branch: https://github.com/tarantool/tarantool/tree/imeevma/gh-3605-ignore-space-formats-option
> Issue: https://github.com/tarantool/tarantool/issues/3605
>
> src/box/alter.cc | 14 ++++++-
> src/box/box.h | 1 +
> src/box/lua/load_cfg.lua | 2 +
> src/main.cc | 1 +
> test/app-tap/init_script.result | 77 ++++++++++++++++++------------------
> test/box-tap/ignore_formats.test.lua | 28 +++++++++++++
> test/box/admin.result | 2 +
> test/box/cfg.result | 4 ++
> 8 files changed, 90 insertions(+), 39 deletions(-)
> create mode 100755 test/box-tap/ignore_formats.test.lua
>
prev parent reply other threads:[~2018-09-24 10:28 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2018-09-21 17:49 [tarantool-patches] " imeevma
2018-09-24 10:28 ` Vladislav Shpilevoy [this message]
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=e0ce1cfe-32c5-887d-a338-68085f5e8292@tarantool.org \
--to=v.shpilevoy@tarantool.org \
--cc=imeevma@tarantool.org \
--cc=tarantool-patches@freelists.org \
--subject='[tarantool-patches] Re: [PATCH v1 1/1] box: option to start tarantool with no format checks.' \
/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