erthink / libmdbx

One of the fastest embeddable key-value ACID database without WAL. libmdbx surpasses the legendary LMDB in terms of reliability, features and performance.
https://erthink.github.io/libmdbx/
Other
1.16k stars 111 forks source link

Signature upgrade failed #242

Closed AskAlexSharov closed 3 years ago

AskAlexSharov commented 3 years ago

mdbx_setup_dxb:15310 updating db-format signature for meta[1], txnid 568904, error -30779

It happens for rare users and I can’t reproduce it. What info I can provide here?

erthink commented 3 years ago

Apparently the MDBX_PROBLEM (-30779) is raised here where mdbx_override_meta() called from here. There seems to be some bug somewhere.

Immediately before the error message you specified, there should be another one clarifying the specific problem in the meta page. Could you provide it?

AskAlexSharov commented 3 years ago

mdbx_validate_meta:13651 meta[1] used-bytes (1740878180352) beyond filesize (1740877877248), skip it mdbx_validate_meta:13651 meta[1] used-bytes (1740878180352) beyond filesize (1740877877248), skip it mdbx_validate_meta:13651 meta[1] used-bytes (1740878180352) beyond filesize (1740877877248), skip it mdbx_setup_dxb:15310 updating db-format signature for meta[1], txnid 568904, error -30779

erthink commented 3 years ago

Got it and is coincided with my guess. This is a minor bug that I will fix before the end of the day. Thank you for reporting.