Migration to native, failed Notes on Heptapod Rails
The migration of this very project to native Mercurial produced a couple of errors in Notes:
there are errors for {:notes=>[143179, 142308, 142256, 142301, 142303, 142305, 142310]}. Please check application log for details
The error logs are the same for all these 7 Notes:
{
"severity": "ERROR",
"time": "2022-10-01T11:44:09.615Z",
"correlation_id": null,
"message": "Failed to migrate Note id=143179",
"backtrace": [
"lib/gitlab/timeless.rb:11:in `timeless'",
"lib/heptapod/native_mercurial/migrator.rb:40:in `timeless_save'",
"lib/heptapod/native_mercurial/migrator.rb:253:in `save_note_if_changed'",
"lib/heptapod/native_mercurial/migrator.rb:262:in `block in migrate_notes'",
"lib/heptapod/native_mercurial/migrator.rb:259:in `migrate_notes'",
"lib/heptapod/native_mercurial/migrator.rb:189:in `do_migrate'",
"lib/heptapod/native_mercurial/migrator.rb:135:in `block in migrate!'",
"lib/heptapod/native_mercurial/migrator.rb:124:in `block (4 levels) in enter'",
"lib/heptapod/native_mercurial/migrator.rb:107:in `with_record'",
"lib/heptapod/native_mercurial/migrator.rb:123:in `block (3 levels) in enter'",
"lib/heptapod/native_mercurial/migrator.rb:50:in `vcs_type_enforcer'",
"lib/heptapod/native_mercurial/migrator.rb:122:in `block (2 levels) in enter'",
"lib/heptapod/native_mercurial/migrator.rb:61:in `with_project_readonly'",
"lib/heptapod/native_mercurial/migrator.rb:121:in `block in enter'",
"lib/heptapod/native_mercurial/migrator.rb:87:in `try_obtain_exclusive_lease'",
"lib/heptapod/native_mercurial/migrator.rb:120:in `enter'",
"lib/heptapod/native_mercurial/migrator.rb:133:in `migrate!'",
"lib/tasks/migrate/migrate_to_native_hg.rake:37:in `block (3 levels) in <top (required)>'"
],
"project_id": 5,
"project_full_path": "heptapod/heptapod"
}
Given this backtrace, it's possible that a simple retry would fix them (will attempt that later)