Aircloak / aircloak

This repository contains the Aircloak Air frontend as well as the code for our Cloak query and anonymization platform
2 stars 0 forks source link

"Application air exited: shutdown" under high PSQL load #4954

Closed edongashi closed 3 years ago

edongashi commented 3 years ago

If I spam PSQL queries it will eventually kill the air application. Need to investigate further...

[error] Task #PID<0.11937.0> started from Air.Service.DataSource.QueryScheduler terminating
** (stop) no process: the process is not alive or there's no process currently associated with the given name, possibly because its application isn't started
    (air 21.2.0-lts) lib/air_web/socket/cloak/main_channel.ex:422: AirWeb.Socket.Cloak.MainChannel.call/4
    (air 21.2.0-lts) lib/air_web/socket/cloak/main_channel.ex:60: AirWeb.Socket.Cloak.MainChannel.run_query/8
    (air 21.2.0-lts) lib/air/service/data_source/query_scheduler/starter.ex:104: Air.Service.DataSource.QueryScheduler.Starter.start_query/2
    (air 21.2.0-lts) lib/air/service/data_source/query_scheduler/starter.ex:73: Air.Service.DataSource.QueryScheduler.Starter.try_query_start/2
    (elixir 1.11.1) lib/stream.ex:685: anonymous fn/4 in Stream.scan/3
    (elixir 1.11.1) lib/enum.ex:3764: Enumerable.List.reduce/3
    (elixir 1.11.1) lib/stream.ex:1609: Enumerable.Stream.do_each/4
    (elixir 1.11.1) lib/stream.ex:649: Stream.run/1
    (air 21.2.0-lts) lib/air/service/data_source/query_scheduler/starter.ex:35: Air.Service.DataSource.QueryScheduler.Starter.run/0
    (elixir 1.11.1) lib/task/supervised.ex:90: Task.Supervised.invoke_mfa/2
    (stdlib 3.13.2) proc_lib.erl:226: :proc_lib.init_p_do_apply/3
Function: &Air.Service.DataSource.QueryScheduler.Starter.run/0
    Args: []