Skip to content

fix: FunctionClauseError on ReconcileMigrations#1861

Merged
leandrocp merged 2 commits into
mainfrom
lp-fix-mig-reconc-error
May 12, 2026
Merged

fix: FunctionClauseError on ReconcileMigrations#1861
leandrocp merged 2 commits into
mainfrom
lp-fix-mig-reconc-error

Conversation

@leandrocp
Copy link
Copy Markdown
Contributor

Don't try to update a missing tenant which is causing repeated:

** (FunctionClauseError) no function clause matching in
Ecto.Changeset.cast/4 (ecto 3.13.3) lib/ecto/changeset.ex:766:
Ecto.Changeset.cast(nil, %{migrations_ran: 69} ...

This seems to be a race condition on removed tenants that eventually stop running but still trigger migration reconciliation.

Don't try to update a missing tenant which is causing repeated:

```
** (FunctionClauseError) no function clause matching in
Ecto.Changeset.cast/4 (ecto 3.13.3) lib/ecto/changeset.ex:766:
Ecto.Changeset.cast(nil, %{migrations_ran: 69} ...
```
@coveralls
Copy link
Copy Markdown

coveralls commented May 12, 2026

Coverage Status

Coverage is 91.876%lp-fix-mig-reconc-error into main. No base build found for main.

@leandrocp leandrocp merged commit 0071e43 into main May 12, 2026
8 checks passed
@leandrocp leandrocp deleted the lp-fix-mig-reconc-error branch May 12, 2026 21:01
@realtime-release-bot
Copy link
Copy Markdown

🎉 This PR is included in version 2.93.5 🎉

The release is available on GitHub release

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants