From: Konstantin Osipov <kostja.osipov@gmail.com>
To: Nikita Pettik <korablev@tarantool.org>
Cc: tarantool-patches@dev.tarantool.org, v.shpilevoy@tarantool.org
Subject: Re: [Tarantool-patches] [PATCH] vinyl: rotate mem during index build on demand
Date: Fri, 5 Jun 2020 14:33:19 +0300 [thread overview]
Message-ID: <20200605113319.GA172041@atlas> (raw)
In-Reply-To: <20200605111815.GA26017@tarantool.org>
* Nikita Pettik <korablev@tarantool.org> [20/06/05 14:23]:
> > > So to get rid of generations mismatch, let's rotate in-memory level
> > > after yield on demand.
> >
> > Could you please also elaborate why generation mismatch is bad
> > here? What does it lead to specifically?
>
> Because right after yield, vy_stmt is allocated using ls region
> (in vy_build_insert_stmt()) and inserted into mem. Ls region does
> not tolerate non-decreasing ids: otherwise region gc may truncate
> data which is still accessible.
Right, this is a gotcha I forgot about. The entire ls_region was a
temporary crutch to get dumps working.
Thanks for explanation.
--
Konstantin Osipov, Moscow, Russia
https://scylladb.com
next prev parent reply other threads:[~2020-06-05 11:33 UTC|newest]
Thread overview: 14+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-06-04 17:49 Nikita Pettik
2020-06-04 20:23 ` Konstantin Osipov
2020-06-04 22:32 ` Nikita Pettik
2020-06-04 22:52 ` Konstantin Osipov
2020-06-05 11:18 ` Nikita Pettik
2020-06-05 11:33 ` Konstantin Osipov [this message]
2020-06-06 8:38 ` Aleksandr Lyapunov
2020-06-07 15:51 ` Vladislav Shpilevoy
2020-06-09 22:34 ` Nikita Pettik
2020-06-15 13:54 ` Nikita Pettik
2020-06-23 22:43 ` Vladislav Shpilevoy
2020-06-23 23:11 ` Nikita Pettik
2020-07-22 22:54 ` Vladislav Shpilevoy
2020-06-10 15:27 ` Nikita Pettik
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=20200605113319.GA172041@atlas \
--to=kostja.osipov@gmail.com \
--cc=korablev@tarantool.org \
--cc=tarantool-patches@dev.tarantool.org \
--cc=v.shpilevoy@tarantool.org \
--subject='Re: [Tarantool-patches] [PATCH] vinyl: rotate mem during index build on demand' \
/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