diff --git a/CHANGELOG.md b/CHANGELOG.md index 0c27196377..5aeacea458 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -6,6 +6,7 @@ Changelog for NeoFS Node ### Added ### Fixed +- Incomplete metabase migration to version 3 leading to node start failure (#3048) ### Changed diff --git a/pkg/local_object_storage/metabase/version.go b/pkg/local_object_storage/metabase/version.go index 881ad37a3f..2f93800650 100644 --- a/pkg/local_object_storage/metabase/version.go +++ b/pkg/local_object_storage/metabase/version.go @@ -95,7 +95,11 @@ func migrateFrom2Version(db *DB, tx *bbolt.Tx) error { c := bkt.Cursor() for k, v := c.First(); k != nil; k, v = c.Next() { - if l := len(v); l != addressKeySize { + l := len(v) + if l == addressKeySize+8 { // Because of a 0.44.0 bug we can have a migrated DB with version 2. + continue + } + if l != addressKeySize { return fmt.Errorf("graveyard value with unexpected %d length", l) }