elixir-ecto / db_connection

Database connection behaviour
http://hexdocs.pm/db_connection/DBConnection.html
309 stars 112 forks source link

DBConnection.ConnectionPool.handle_info/2 :DOWN handling #214

Closed lex-mala closed 4 years ago

lex-mala commented 4 years ago

Hi! My team is hitting this error consistently:

FunctionClauseError: no function clause matching in DBConnection.ConnectionPool.handle_info/2 File "lib/db_connection/connection_pool.ex", line 34, in DBConnection.ConnectionPool.handle_info/2 File "gen_server.erl", line 637, in :gen_server.try_dispatch/4 File "gen_server.erl", line 711, in :gen_server.handle_msg/6 File "proc_lib.erl", line 249, in :proc_lib.init_p_do_apply/3

This message seems to be causing it:

{:DOWN, #Reference<0.3236932737.498073604.46302>, :process, #PID<0.9847.3>, :shutdown}

It appears that the connection pool doesn't ever expect a :DOWN message, and it's not clear to us why it would be receiving such a message. Any advice on how to track this down would be greatly appreciated. Thanks!

josevalim commented 4 years ago

Can you tell us a bit more about the issue? When does it happen? Which version are you using? Can you reproduce it consistently? Etc.

lex-mala commented 4 years ago

Versions: phoenix_ecto 4.1 ecto_sql: 3.3 postgrex: 0.15

I'll try and round up some more context, but as of right now I can't reliably reproduce locally

datafoo commented 4 years ago

Would you please share your findings?