fix: tolerate existing eventhub_counters ETS on infra_mnesia restart
CI / test (push) Successful in 25m54s
CI / deploy-ift (push) Successful in 6m43s
CI / e2e-ift (push) Successful in 1m18s
CI / deploy-stage (push) Successful in 6m37s
CI / e2e-stage (push) Successful in 1m24s

Supervisor restarts after mnesia_stopped crashed on ets:new already_exists.
This commit is contained in:
2026-07-19 13:32:38 +03:00
parent b646489778
commit f1f5af6499
+5 -1
View File
@@ -36,7 +36,11 @@
start_link() ->
% Счётчики для метрик (сессии, ws-соединения)
ets:new(eventhub_counters, [named_table, public, set, {write_concurrency, true}]),
case ets:info(eventhub_counters) of
undefined ->
ets:new(eventhub_counters, [named_table, public, set, {write_concurrency, true}]);
_ -> ok
end,
gen_server:start_link({local, ?MODULE}, ?MODULE, [], []).
init_tables() ->