Closed Bug 1864968 Opened 2 years ago Closed 2 years ago

Airflow task instances are getting deleted due to bug in Airflow 2.6

Categories

(Data Platform and Tools :: General, defect)

defect

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: srose, Unassigned)

Details

(Whiteboard: [airflow-triage])

Task instances seem to be getting deleted. When this happens, the task instances are no longer visible the Airflow UI, and it can prevent future DAG runs from running properly if they or their tasks have depends_on_past = True.

We currently think this is due to a known issue in Airflow 2.6 where task instances can get deleted unintentionally. That issue has been fixed in Airflow 2.7.

DAGs affected thus far:

Dates affected thus far:

  • 2023-10-27
  • 2023-10-28
  • 2023-10-29
  • 2023-11-01
  • 2023-11-05
  • 2023-11-06
  • 2023-11-07
  • 2023-11-08
  • 2023-11-09
  • 2023-11-10
  • 2023-11-11
  • 2023-11-12
  • 2023-11-13
  • 2023-11-14
Summary: Airflow task instances are getting deleted due to bug in Airflow 2.6.3 → Airflow task instances are getting deleted due to bug in Airflow 2.6

Some findings after reading through comments on Airflow issue 31179, Airflow PR 32684, and related Airflow issues:

  • When manually deleting DAG runs in the Airflow UI the bug will cause it to delete all task instances for the same run ID (i.e. the same timestamp), so this essentially affects all other DAGs on the same schedule as the one you're deleting the DAG run for.
  • This might also happen when running airflow db clean? (e.g. Airflow issue 32596)

:srose is this issue still valid or should be considered "resolved"? We're at present running Airflow version 2.8.2

Flags: needinfo?(srose)

This was resolved when we upgraded to Airflow 2.7.3 in November.

Status: NEW → RESOLVED
Closed: 2 years ago
Flags: needinfo?(srose)
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.