Skip to content

Random timeouts in ParallelCompiler #12421

@up2jj

Description

@up2jj

Elixir and Erlang/OTP versions

Erlang/OTP 25 [erts-13.1.4] [source] [64-bit] [smp:8:8] [ds:8:8:10] [async-threads:1] [jit]

Elixir 1.14.3 (compiled with Erlang/OTP 25)

Operating system

MacOS 12.6.2

Current behavior

Hi team,

Several people in my company have noticed timeouts when starting Phoenix server. It occurs from time to time during compilation phase. Everything was ok on 1.13.x branch with the same code base.

iex -S mix phx.server
Erlang/OTP 25 [erts-13.1.4] [source] [64-bit] [smp:10:10] [ds:10:10:10] [async-threads:1] [jit]

Compiling 54 files (.ex)
** (exit) exited in: :gen_server.call(#PID<0.863.0>, :start)
    ** (EXIT) time out
    (stdlib 4.2) gen_server.erl:370: :gen_server.call/2
    (elixir 1.14.3) lib/kernel/parallel_compiler.ex:262: Kernel.ParallelCompiler.verify_modules/4
    (elixir 1.14.3) lib/kernel/parallel_compiler.ex:204: Kernel.ParallelCompiler.spawn_workers/5
    (elixir 1.14.3) lib/kernel/parallel_compiler.ex:177: Kernel.ParallelCompiler.spawn_workers/3
    (mix 1.14.3) lib/mix/compilers/elixir.ex:158: Mix.Compilers.Elixir.compile/7
    (mix 1.14.3) lib/mix/state.ex:15: Mix.State.lock/2
    (mix 1.14.3) lib/mix/task.ex:421: anonymous fn/3 in Mix.Task.run_task/4

It might be caused by the change introduced in 156f88f where cast has been replaced with call without timeout specified.

Expected behavior

Code is compiled

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions