Subham-KRLX opened a new pull request, #64145:
URL: https://github.com/apache/airflow/pull/64145

   This PR fixes a bug where the FABDBManager is not automatically discovered 
during database migrations in lean environments, such as the Helm 
migrateDatabaseJob.In these contexts (e.g., worker/migration containers), the 
call to 
   create_auth_manager().get_db_manager() in RunDBManager can fail because it 
may require an application context or runtime state that is not present. 
Previously, this failure was unhandled, causing the FABDBManager to be skipped 
and results in missing FAB tables (like ab_user, ab_role) unless manually 
configured.
   
   This change wraps the fallback auth manager check in a try...except block, 
ensuring the migration process correctly uses the FABDBManager discovered via 
ProvidersManager which is the reliable discovery path in these environments.
   
   closes: #63847
   
   Was generative AI tooling used to co-author this PR?
   
   Yes — Gemini (Code Research and PR Description)


-- 
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]

Reply via email to