github-actions[bot] opened a new pull request, #57175:
URL: https://github.com/apache/airflow/pull/57175

   When a user changed only the case of a DAG tag (e.g., 'dangerous' to
   'DANGEROUS'), the dag-processor would crash with a duplicate key error
   on MySQL due to case-insensitive collation in the PRIMARY KEY. This
   occurred because SQLAlchemy executed INSERT operations before DELETE
   operations during the flush.
   
   The fix ensures DELETE operations complete before attempting INSERT
   operations by explicitly flushing and refreshing the tag relationship
   from the database.
   
   Fixes #56940
   (cherry picked from commit 5013aad00b3b76e442861f8233c2691845f1fff1)
   
   Co-authored-by: Kaxil Naik <[email protected]>


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