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:
@@ -125,7 +125,7 @@ handle_call(init_tables, _From, State) ->
|
||||
true -> ok
|
||||
end,
|
||||
ok = create_indices(),
|
||||
ok = stats_collector:subscribe(),
|
||||
%% stats_collector:subscribe — после wait_for_tables + migrations (eventhub_app)
|
||||
ok = start_cleanup_timer(),
|
||||
{reply, ok, State};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user