`map_resize` assertion failure
jeromegn opened this issue · 4 comments
jeromegn commented
I'm seeing these in my logs:
mdbx:9268: map_resize: Assertion `size_bytes == env->me_dxb_mmap.current' failed.
This is how I've setup libmdbx:
const GIB: usize = 1024 * 1024 * 1024;
const MIN_DB_SIZE: usize = GIB;
const MAX_DB_SIZE: usize = 10 * GIB;
let env = Environment::new()
.set_max_dbs(1024)
.set_geometry(libmdbx::Geometry {
size: Some(MIN_DB_SIZE..MAX_DB_SIZE),
growth_step: None,
shrink_threshold: None,
page_size: None,
})
.open(path.as_ref())?;
Should I be doing things differently? My DB is using about 2GB on disk right now.
hrxi commented
We started hitting this assert with libmdbx 0.1.8. Can you test whether the issue goes away with libmdx 0.1.7? (nimiq/core-rs-albatross#1014)
jeromegn commented
Unfortunately we moved off of mdbx due to its durability tradeoffs (my bad for the upfront research, nothing about mdbx)
vorot93 commented
This really looks like upstream error. Please report on Telegram: https://t.me/libmdbx
hrxi commented
Reported on upstream issue tracker: https://gitflic.ru/project/erthink/libmdbx/issue/7.