westerndigitalcorporation / zenfs

ZenFS is a storage backend for RocksDB that enables support for ZNS SSDs and SMR HDDs.
GNU General Public License v2.0
243 stars 88 forks source link

fix unexpected extent length error #203

Closed aravind-wdc closed 1 year ago

aravind-wdc commented 2 years ago

Have observed this below error message multiple times while running an OLTP workload on MyRocks + ZenFS stack and in parallel running zenfs utility commands. Failed to mount filesystem, error: IO error: Unexexpeted extent length while recovering

Apart from the spelling typo, this error condidtion also needs fixing, it seems to be because of not locking files during a mount (from zenfs utility). Raising this issue to keep track of the bug.

yhr commented 2 years ago

We should probably avoid recovering files when mounting read-only like the utility does in these cases (as it the recovery assumes that the wp will not be moving around :))

yhr commented 1 year ago

This was fixed in 317c0eff28356ba2f0900d55e7f3c38b6ae891d2