vatsrahul1001 opened a new pull request, #77687:
URL: https://github.com/apache/airflow/pull/77687

   The async engine never got the isolation level the sync engine sets for
   MySQL, so its sessions ran at the server default, REPEATABLE READ. A
   query repeated in one async transaction could then read a stale snapshot
   that the sync engine's sessions would not, and task heartbeats, audit
   log rows and other writes that already go through the async engine
   behaved differently from their sync counterparts.
   (cherry picked from commit ed918278f2f09dc729a9fa3a45ad5ffba9a6b549)
   
   Co-authored-by: Dev-iL <[email protected]>
   
   ---
   
   The automatic backport failed on a conflict in 
`airflow-core/tests/unit/core/test_settings.py`, so this was cherry-picked 
manually (`-x`). The `settings.py` change applied cleanly.
   
   **Conflict resolution (test file only):** kept the `mysql+aiomysql` 
READ-COMMITTED parametrization this PR adds. Dropped the `mysql+asyncmy` 
parametrizations: `v3-4-test` has no `asyncmy` support in `settings.py` or in 
this test, so they belong to a different `main` change.
   
   **Verified locally:** `test_settings.py` 58 passed, 7 skipped (the 
MySQL-backend params are skipped without a MySQL backend, so the new `aiomysql` 
isolation case ran only in CI's MySQL lane).
   
   Backport of #76694.
   
   🤖 Generated with [Claude Code](https://claude.com/claude-code)
   


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