{"id":21848950,"url":"https://github.com/civilcode/db-proxy-issue","last_synced_at":"2026-05-20T07:32:01.632Z","repository":{"id":99410921,"uuid":"86855455","full_name":"civilcode/db-proxy-issue","owner":"civilcode","description":"Demonstrates issue with DB Proxy posted to ElixirForum","archived":false,"fork":false,"pushed_at":"2017-03-31T21:42:08.000Z","size":15,"stargazers_count":0,"open_issues_count":1,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-03-21T17:54:34.301Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"https://elixirforum.com/t/issue-with-dbconnection-ownership-proxy-checkout-and-genserver-process/4334","language":"Elixir","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/civilcode.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2017-03-31T19:55:28.000Z","updated_at":"2020-04-01T19:34:58.000Z","dependencies_parsed_at":null,"dependency_job_id":"f99f96a0-5de6-42ce-afc4-66771fe9ebc3","html_url":"https://github.com/civilcode/db-proxy-issue","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/civilcode/db-proxy-issue","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/civilcode%2Fdb-proxy-issue","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/civilcode%2Fdb-proxy-issue/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/civilcode%2Fdb-proxy-issue/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/civilcode%2Fdb-proxy-issue/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/civilcode","download_url":"https://codeload.github.com/civilcode/db-proxy-issue/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/civilcode%2Fdb-proxy-issue/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":267137155,"owners_count":24041320,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-07-26T02:00:08.937Z","response_time":62,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-11-28T00:09:40.466Z","updated_at":"2026-05-20T07:32:01.587Z","avatar_url":"https://github.com/civilcode.png","language":"Elixir","funding_links":[],"categories":[],"sub_categories":[],"readme":"# DbProxyIssue\n\nApplication with one GenServer doing calls to the database in synchronous mode.\n\nSee post on [ElixirForum](https://elixirforum.com/t/issue-with-dbconnection-ownership-proxy-checkout-and-genserver-process/4334).\n\n## Installation\n\n    mix deps.get\n    MIX_ENV=test ecto.create # you may wish to update config/test.ex with your database config\n\n## How to reproduce the issue\n\nRun:\n\n    while true; do mix test; done\n\n\nEventually, a `GenServer` error will occur. Example:\n\n```\n12:25:35.584 [error] GenServer DbProxyIssue.Worker terminating\n** (stop) exited in: GenServer.call(#PID\u003c0.197.0\u003e, {:checkout, #Reference\u003c0.0.2.1622\u003e, true, 15000}, 5000)\n    ** (EXIT) shutdown: \"owner #PID\u003c0.196.0\u003e exited with: shutdown\"\n    (db_connection) lib/db_connection/ownership/proxy.ex:32: DBConnection.Ownership.Proxy.checkout/2\n```\n\nWork-arounds:\n\n- Set the `pool_size` to `1` in `config/test.exs`\n- Sleep 100ms before running the test (`:timer.sleep(100)` in `test/support/test_case.ex`)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcivilcode%2Fdb-proxy-issue","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcivilcode%2Fdb-proxy-issue","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcivilcode%2Fdb-proxy-issue/lists"}