You are viewing a plain text version of this content. The canonical link for it is here.
Posted to jobs@airflow.apache.org by GitBox <gi...@apache.org> on 2026/04/14 22:48:53 UTC
[GH] (airflow/backport-e3fea3a-v3-2-test): Workflow run "Tests" is working again!
The GitHub Actions job "Tests" on airflow.git/backport-e3fea3a-v3-2-test has succeeded.
Run started by GitHub user ashb (triggered by ashb).
Head commit for run:
f8e0876d8f8e86285136b533524dd0e67f239acf / Ash Berlin-Taylor <as...@apache.org>
[v3-2-test] Ensure that DB migrations run in a single connection. (#65231)
This was discovered by running with a custom External DB manager that had some
gnarly queries that ended up being locked behind this transaction.
`_single_connection_pool` replaces `settings.engine` with a
SingletonThreadPool engine. But `work_session` was created before that — it
still holds an internal reference to the old engine object.
_single_connection_pool has no way to rebind work_session.
So when _get_current_revision(session=work_session) runs on line 1203 — inside
the _single_connection_pool() block — it calls session.connection() which goes
through the old engine, not the SingletonThreadPool. The old engine's pool was
disposed and recreated empty by engine.dispose(), so it creates a brand new
connection. That connection is completely outside _single_connection_pool's
control.
_single_connection_pool guarantees one connection on the new engine. It can't
prevent work_session from creating connections on the old one. The name is a
bit of a lie — it's really "single connection pool for new code that uses
settings.engine", not "single connection total."
(cherry picked from commit e3fea3a55564fb4b0daeafe43c521f0ee2001f7a)
Co-authored-by: Ash Berlin-Taylor <as...@apache.org>
Report URL: https://github.com/apache/airflow/actions/runs/24424371883
With regards,
GitHub Actions via GitBox
---------------------------------------------------------------------
To unsubscribe, e-mail: jobs-unsubscribe@airflow.apache.org
For additional commands, e-mail: jobs-help@airflow.apache.org