Skip to content
This repository has been archived by the owner on Apr 4, 2024. It is now read-only.

MultipleResultsError #1489

Open
phmeier-nubank opened this issue Apr 7, 2022 · 0 comments
Open

MultipleResultsError #1489

phmeier-nubank opened this issue Apr 7, 2022 · 0 comments

Comments

@phmeier-nubank
Copy link

We observed this on our Bors installation the other day. It seems like the problem has eventually resolved but this might be something to look into.

Build: 6f08025

{%Ecto.MultipleResultsError{
   message: "expected at most one result but got 2 in query:\n\nfrom b0 in BorsNG.Database.Batch,\n  join: p1 in assoc(b0, :project),\n  join: l2 in BorsNG.Database.LinkPatchBatch,\n  on: l2.batch_id == b0.id,\n  where: b0.state == ^:waiting or b0.state == ^:running,\n  where: l2.patch_id == ^64557,\n  preload: [project: p1]\n"
 },
 [
   {Ecto.Repo.Queryable, :one, 3,
    [file: 'lib/ecto/repo/queryable.ex', line: 149]},
   {BorsNG.Worker.Batcher, :do_handle_cast, 2,
    [file: 'lib/worker/batcher.ex', line: 201]},
   {BorsNG.Worker.Batcher, :handle_cast, 2,
    [file: 'lib/worker/batcher.ex', line: 92]},
   {:gen_server, :try_dispatch, 4,
    [file: 'gen_server.erl', line: 695]},
   {:gen_server, :handle_msg, 6,
    [file: 'gen_server.erl', line: 771]},
   {:proc_lib, :init_p_do_apply, 3,
    [file: 'proc_lib.erl', line: 226]}
 ]}
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant