Skip to content

Conversation

@github-actions
Copy link

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 5013aad)

Co-authored-by: Kaxil Naik kaxilnaik@gmail.com

…QL (#57113)

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 5013aad)

Co-authored-by: Kaxil Naik <kaxilnaik@gmail.com>
@potiuk potiuk force-pushed the backport-5013aad-v3-1-test branch from 3f106a0 to 317c5c8 Compare October 25, 2025 20:50
@kaxil kaxil closed this Oct 31, 2025
@kaxil kaxil deleted the backport-5013aad-v3-1-test branch October 31, 2025 15:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant