fix: raise Mnesia wait_for_tables beyond gen_server 5s default
CI / test (push) Failing after 27m9s
CI / deploy-ift (push) Has been skipped
CI / e2e-ift (push) Has been skipped
CI / deploy-stage (push) Has been skipped
CI / e2e-stage (push) Has been skipped

Caller timed out while mnesia:wait_for_tables ran the full 5s on IFT disc load; use infinity call timeout, 120s wait, and one repair retry.
This commit is contained in:
2026-07-19 10:45:25 +03:00
parent a6dadcb9d5
commit e8addae3b7
2 changed files with 33 additions and 7 deletions
+4 -1
View File
@@ -50,7 +50,10 @@ start_application() ->
application:ensure_all_started(mnesia),
ok = infra_mnesia:verify_dump_log(),
ok = infra_mnesia:init_tables(),
ok = infra_mnesia:wait_for_tables(),
case infra_mnesia:wait_for_tables() of
ok -> ok;
{error, WaitReason} -> error({mnesia_tables_not_ready, WaitReason})
end,
ok = migration_engine:ensure_applied(),
%% После wait + migrations: иначе backfill ловит {no_exists, user} на ещё не загруженных таблицах.
ok = stats_collector:subscribe(),