fix: raise Mnesia wait_for_tables beyond gen_server 5s default
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:
@@ -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(),
|
||||
|
||||
Reference in New Issue
Block a user