fix: subscribe stats_collector after Mnesia tables are ready
CI / test (push) Failing after 13m10s
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

Backfill ran during init_tables before wait_for_tables, so dirty reads hit {no_exists,user} and crash-looped eventhub on IFT.
This commit is contained in:
2026-07-18 23:33:56 +03:00
parent fa07d91f4b
commit 31c2a1b7d7
4 changed files with 28 additions and 4 deletions
+6 -1
View File
@@ -81,7 +81,12 @@ ready() ->
foreach_table(Table, Pattern, Fun) ->
case lists:member(Table, mnesia:system_info(tables)) of
true -> lists:foreach(Fun, mnesia:dirty_match_object(Pattern));
true ->
try lists:foreach(Fun, mnesia:dirty_match_object(Pattern))
catch
exit:{aborted, {no_exists, _}} -> ok;
error:{aborted, {no_exists, _}} -> ok
end;
false -> ok
end.