You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@olimart -- thanks for reporting this. This buffer cache has a number of issues that are exposed/exacerbated by secondary indexes. @srh is currently working on a full rewrite, which will make all these problems go away in one fell swoop. You can track progress via #1642, the new cache will be in 1.12.
Sorry you ran into this. Moving to subsequent, we'll retest when the new cache is in.
I'm absolutely not convinced that this is a cache issue. If we want to have this fixed in 1.12 (which I assume we do), waiting for the new cache to be ready before looking into this might result in further delays.
For reproducing this: The fields that are indexed must exist in at least some of the documents. Furthermore the documents must not all be stored inline in the tree, i.e. need to have a certain size (> ~250 bytes).
Also: Re-creating the index is not necessary. Creating and then deleting the index is enough to corrupt the database. A subsequent table scan (r.table(...)) triggers the crash.
Somehow btree_store_t::drop_sindex() gets passed in an instance of rdb_value_deleter_t instead of rdb_value_non_deleter_t. So dropping the index deletes the blobs which it should not.
Activity
coffeemug commentedon Dec 19, 2013
@olimart -- thanks for reporting this. This buffer cache has a number of issues that are exposed/exacerbated by secondary indexes. @srh is currently working on a full rewrite, which will make all these problems go away in one fell swoop. You can track progress via #1642, the new cache will be in 1.12.
Sorry you ran into this. Moving to subsequent, we'll retest when the new cache is in.
olimart commentedon Dec 19, 2013
@coffeemug Thanks. Excellent.
FYI @nviennot
nviennot commentedon Dec 19, 2013
yay 👍
danielmewes commentedon Dec 27, 2013
I'm absolutely not convinced that this is a cache issue. If we want to have this fixed in 1.12 (which I assume we do), waiting for the new cache to be ready before looking into this might result in further delays.
danielmewes commentedon Dec 27, 2013
For reproducing this: The fields that are indexed must exist in at least some of the documents. Furthermore the documents must not all be stored inline in the tree, i.e. need to have a certain size (> ~250 bytes).
danielmewes commentedon Dec 27, 2013
Also: Re-creating the index is not necessary. Creating and then deleting the index is enough to corrupt the database. A subsequent table scan (
r.table(...)) triggers the crash.danielmewes commentedon Dec 27, 2013
Somehow
btree_store_t::drop_sindex()gets passed in an instance ofrdb_value_deleter_tinstead ofrdb_value_non_deleter_t. So dropping the index deletes the blobs which it should not.Fix for #1789. Use rdb_value_non_deleter_t instead of rdb_value_delet…
danielmewes commentedon Dec 27, 2013
The fix is in code review 1099 by @jdoliner
coffeemug commentedon Dec 28, 2013
@danielmewes -- awesome work! I'll try to be more careful about inadvertently jumping to conclusions on issues like this.
Fix for #1789. Use rdb_value_non_deleter_t instead of rdb_value_delet…
danielmewes commentedon Dec 30, 2013
Merged into next 73c4401
and v1.11.x 54338d8
@AtnNn , @coffeemug I think we should prepare a point-release. Probably together with a fix for #1796 ?
coffeemug commentedon Dec 31, 2013
Yep, let's do a point release next week. There are a couple of other candidates that might go into it: #1796, #1793, #1798, #1733.