can't test async: (DBConnection.OwnershipError) cannot find ownership process
Nobody has claimed this yet.
Assessment
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Newbie friendliness
- 35/100
Research direction
Reproduce the simplified MyAppTest example with async execution and compare it with async: false. Start at lib/flame/runner.ex:408, then follow the Ecto ownership error through the reported Ecto SQL and Repo.Queryable stack frames. Done means the async FLAME call can run Repo.all(MySchema) without the ownership-process error.
Written by the indexing model from the issue text.
Description
testing flame calls that involve the repo get hung up on the ownership process.
edit: simplified example
defmodule MyAppTest do
test "flame accessing the db" do
FLAME.call(MyPool, fn -> Repo.all(MySchema) end)
end
end
raises
** (EXIT from #PID<0.544.0>) an exception was raised:
** (DBConnection.OwnershipError) cannot find ownership process for #PID<0.592.0>.
(ecto_sql 3.9.2) lib/ecto/adapters/sql.ex:910: Ecto.Adapters.SQL.raise_sql_call_error/1
(ecto_sql 3.9.2) lib/ecto/adapters/sql.ex:828: Ecto.Adapters.SQL.execute/6
(ecto 3.9.6) lib/ecto/repo/queryable.ex:229: Ecto.Repo.Queryable.execute/4
(ecto 3.9.6) lib/ecto/repo/queryable.ex:19: Ecto.Repo.Queryable.all/3
(flame 0.1.7) lib/flame/runner.ex:408: anonymous fn/3 in FLAME.Runner.remote_call/4
this does not apply when async: false
- Dominant language
- Elixir
- Stars
- 1.2k
- Forks
- 68
- PR merge metrics
- No merged PRs in 30d
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from phoenixframework/flame
-
Difficulty 4/5 3-5 days Newbie friendliness 48/100
phoenixframework/flame#86 · 3 reactions ·
-
Difficulty 4/5 3-5 days Newbie friendliness 35/100
phoenixframework/flame#84 · 1 comment ·
-
Difficulty 4/5 3-5 days Newbie friendliness 35/100
phoenixframework/flame#75 · 2 comments ·
-
phoenixframework/flame#70 · 1 assignee ·
-
Difficulty 4/5 3-5 days Newbie friendliness 35/100
phoenixframework/flame#66 · 1 comment ·
All issues in phoenixframework/flame
Similar issues
-
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
carverauto/serviceradar#4542 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 84/100
phoenixframework/phoenix#6847 ·
-
bug
Difficulty 2/5 1-3 hours Newbie friendliness 64/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 82/100
beyond-all-reason/teiserver#1584 ·