fix: subscribe stats_collector after Mnesia tables are ready
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:
@@ -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.
|
||||
|
||||
|
||||
Reference in New Issue
Block a user