The GitHub Actions job "Tests" on airflow.git/fix/metastore-expunge-all-62244 
has succeeded.
Run started by GitHub user shivaam (triggered by shivaam).

Head commit for run:
ec05238010e7e49546ec8ead63f3db770266eed4 / Shivam Rastogi 
<[email protected]>
fix: Replace expunge_all with expunge in MetastoreBackend

MetastoreBackend.get_connection() and get_variable() called
session.expunge_all() to detach the returned object from the session.
This removed all objects from the shared scoped session, including
unrelated pending objects added by other code sharing the same
thread-local session.

This caused team-scoped DAG bundles to silently fail to persist when
sync_bundles_to_db triggered a connection lookup through S3DagBundle's
view_url_template, which initializes an S3Hook and calls get_connection.

Replace expunge_all() with expunge(obj) to only detach the specific
queried Connection or Variable, leaving all other session state intact.

closes: #62244

Report URL: https://github.com/apache/airflow/actions/runs/22808680442

With regards,
GitHub Actions via GitBox


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to