ashb commented on code in PR #65231:
URL: https://github.com/apache/airflow/pull/65231#discussion_r3081907202
##########
airflow-core/src/airflow/utils/db.py:
##########
@@ -1204,6 +1204,12 @@ def _run_upgradedb(
with _configured_alembic_environment() as env:
source_heads = env.script.get_heads()
+ # End the read-only transaction from _get_current_revision before
+ # external DB manager migrations, which may run DDL that is blocked by
+ # open transactions (e.g. CREATE INDEX CONCURRENTLY). The advisory lock
+ # is unaffected: it is session-level and held on a separate connection.
Review Comment:
```suggestion
# from create_global_lock() is unaffected: it is session-level and
held
# on a separate connection.
```
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]