Skip to content

Fix SQLite Lock error in TestTaskInstancesLog setup - #50763

Merged
jason810496 merged 1 commit into
apache:mainfrom
jason810496:fix/AIP-84/fix-test-log-setup-attrs
May 19, 2025
Merged

jason810496 merged 1 commit into
apache:mainfrom
jason810496:fix/AIP-84/fix-test-log-setup-attrs

Conversation

@jason810496

Copy link
Copy Markdown
Member

related: #50175

Why

The TestTaskInstancesLog.setup_attrs might cause sqlalchemy.exc.OperationalError: (sqlite3.OperationalError) database is locked error.

For example: https://github.com/apache/airflow/actions/runs/15097906931/job/42435158054?pr=50175

@jason810496
jason810496 merged commit 6f40f99 into apache:main May 19, 2025
github-actions Bot pushed a commit that referenced this pull request May 19, 2025
@github-actions

Copy link
Copy Markdown
Contributor

Backport successfully created: v3-0-test

Status Branch Result
✅ v3-0-test PR Link

oboki added a commit to oboki/airflow that referenced this pull request May 20, 2025
jason810496 added a commit that referenced this pull request May 20, 2025
…rker environments (#50175)

* fix: resolve 404 log error for non-latest task tries in multi-host worker environments

* refactor: extract TaskInstance and TaskInstanceHistory query logic from `get_log` endpoint function

* test: add unit test for `get_task_instance_or_history_for_try_number` function

* fix: resolve sqlite lock error #50763

Co-authored-by: LIU ZHE YOU <[email protected]>

---------

Co-authored-by: LIU ZHE YOU <[email protected]>
potiuk pushed a commit that referenced this pull request May 21, 2025
potiuk pushed a commit to jason810496/airflow that referenced this pull request May 21, 2025
…rker environments (apache#50175)

* fix: resolve 404 log error for non-latest task tries in multi-host worker environments

* refactor: extract TaskInstance and TaskInstanceHistory query logic from `get_log` endpoint function

* test: add unit test for `get_task_instance_or_history_for_try_number` function

* fix: resolve sqlite lock error apache#50763

Co-authored-by: LIU ZHE YOU <[email protected]>

---------

Co-authored-by: LIU ZHE YOU <[email protected]>
(cherry picked from commit 0b0ff5d)
potiuk pushed a commit that referenced this pull request May 21, 2025
…rker environments (#50175) (#50833)

* fix: resolve 404 log error for non-latest task tries in multi-host worker environments

* refactor: extract TaskInstance and TaskInstanceHistory query logic from `get_log` endpoint function

* test: add unit test for `get_task_instance_or_history_for_try_number` function

* fix: resolve sqlite lock error #50763



---------


(cherry picked from commit 0b0ff5d)

Co-authored-by: oboki <[email protected]>
kaxil pushed a commit that referenced this pull request Jun 3, 2025
kaxil pushed a commit that referenced this pull request Jun 3, 2025
…rker environments (#50175) (#50833)

* fix: resolve 404 log error for non-latest task tries in multi-host worker environments

* refactor: extract TaskInstance and TaskInstanceHistory query logic from `get_log` endpoint function

* test: add unit test for `get_task_instance_or_history_for_try_number` function

* fix: resolve sqlite lock error #50763



---------


(cherry picked from commit 0b0ff5d)

Co-authored-by: oboki <[email protected]>
sanederchik pushed a commit to sanederchik/airflow that referenced this pull request Jun 7, 2025
sanederchik pushed a commit to sanederchik/airflow that referenced this pull request Jun 7, 2025
…rker environments (apache#50175)

* fix: resolve 404 log error for non-latest task tries in multi-host worker environments

* refactor: extract TaskInstance and TaskInstanceHistory query logic from `get_log` endpoint function

* test: add unit test for `get_task_instance_or_history_for_try_number` function

* fix: resolve sqlite lock error apache#50763

Co-authored-by: LIU ZHE YOU <[email protected]>

---------

Co-authored-by: LIU ZHE YOU <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area:API Airflow's REST/HTTP API

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants