ArcticDB
ArcticDB copied to clipboard
Flaky C++ tests due to unexpected LMDB errors
Describe the bug
The VersionStoreTest.StressBatchReadUncompressed test has flaked here.
It might be rare since it's the only time I've seen this flake.
Steps/Code to Reproduce
Rerun VersionStoreTest.StressBatchReadUncompressed many times
Expected Results
The test always succeeds
OS, Python Version and ArcticDB Version
Windows C++ build (see here)
Backend storage used
No response
Additional Context
No response
Looks like an LMDB error, nothing specific to this test
[ RUN ] VersionStoreTest.StressBatchReadUncompressed
unknown file: error: C++ exception with description "mdb_drop: MDB_CORRUPTED: Located page was wrong type" thrown in TearDown().
I've seen other LMDB errors happening on multiple occasions on different C++ tests. E.g. here:
2024-08-02T10:32:07.9645365Z unknown file: error: C++ exception with description "E_UNEXPECTED_LMDB_ERROR Unexpected LMDB Error: LMDBError#-30796: mdb_get: MDB_CORRUPTED: Located page was wrong type for object *sTocompact_me_dynamic" thrown in the test body.
2024-08-02T10:32:07.9648447Z unknown file: error: C++ exception with description "E_UNEXPECTED_LMDB_ERROR Unexpected LMDB Error: LMDBError#-30796: mdb_drop: MDB_CORRUPTED: Located page was wrong type for object d" thrown in TearDown().
2024-08-02T10:32:07.9656514Z [ FAILED ] VersionStoreTest.CompactIncompleteDynamicSchema (62 ms)