Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[AIRFLOW-6576] fix scheduler crash caused by deleted task with sla misses #7187

Merged
merged 1 commit into from
Jan 19, 2020

Conversation

houqp
Copy link
Member

@houqp houqp commented Jan 16, 2020


Issue link: AIRFLOW-6576

Make sure to mark the boxes below before creating PR: [x]

  • Description above provides context of the change
  • Commit message/PR title starts with [AIRFLOW-NNNN]. AIRFLOW-NNNN = JIRA ID*
  • Unit tests coverage for changes (not needed for documentation changes)
  • Commits follow "How to write a good git commit message"
  • Relevant documentation is updated including usage instructions.
  • I will engage committers as explained in Contribution Workflow Example.

* For document-only changes commit message can start with [AIRFLOW-XXXX].


In case of fundamental code change, Airflow Improvement Proposal (AIP) is needed.
In case of a new dependency, check compliance with the ASF 3rd Party License Policy.
In case of backwards incompatible changes please leave a note in UPDATING.md.
Read the Pull Request Guidelines for more information.

@boring-cyborg boring-cyborg bot added the area:Scheduler including HA (high availability) scheduler label Jan 16, 2020
@houqp houqp requested a review from ashb January 16, 2020 00:32
@houqp houqp requested review from kaxil and potiuk January 16, 2020 00:32
@codecov-io
Copy link

codecov-io commented Jan 16, 2020

Codecov Report

Merging #7187 into master will increase coverage by 0.18%.
The diff coverage is 100%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master    #7187      +/-   ##
==========================================
+ Coverage   84.91%   85.09%   +0.18%     
==========================================
  Files         723      723              
  Lines       39546    39555       +9     
==========================================
+ Hits        33581    33660      +79     
+ Misses       5965     5895      -70
Impacted Files Coverage Δ
airflow/jobs/scheduler_job.py 89.45% <100%> (+0.69%) ⬆️
airflow/kubernetes/volume_mount.py 44.44% <0%> (-55.56%) ⬇️
airflow/kubernetes/volume.py 52.94% <0%> (-47.06%) ⬇️
airflow/kubernetes/pod_launcher.py 45.25% <0%> (-46.72%) ⬇️
airflow/kubernetes/refresh_config.py 50.98% <0%> (-23.53%) ⬇️
...rflow/contrib/operators/kubernetes_pod_operator.py 76.47% <0%> (-22.33%) ⬇️
airflow/models/connection.py 68.78% <0%> (+0.97%) ⬆️
airflow/jobs/backfill_job.py 91.88% <0%> (+1.44%) ⬆️
airflow/providers/apache/hive/hooks/hive.py 77.55% <0%> (+1.53%) ⬆️
... and 9 more

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 59c8a82...23dc8c1. Read the comment docs.

Copy link
Member

@potiuk potiuk left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Just one NIt - we need warning in case of the swallowed exception

…sses

When a task with SLA is deleted from a DAG after the SLA miss is logged
but before the notification was sent, scheduler will crash with an
AirflowException
@houqp
Copy link
Member Author

houqp commented Jan 16, 2020

@potiuk added logging, ready for review again.

Copy link
Member

@kaxil kaxil left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM. Good work @houqp

@kaxil kaxil merged commit 554ed2a into apache:master Jan 19, 2020
@houqp houqp deleted the slamisses branch January 19, 2020 18:26
kaxil pushed a commit that referenced this pull request Jan 23, 2020
…sses (#7187)

When a task with SLA is deleted from a DAG after the SLA miss is logged
but before the notification was sent, scheduler will crash with an
AirflowException
potiuk pushed a commit that referenced this pull request Jan 26, 2020
…sses (#7187)

When a task with SLA is deleted from a DAG after the SLA miss is logged
but before the notification was sent, scheduler will crash with an
AirflowException
kaxil pushed a commit that referenced this pull request Jan 26, 2020
…sses (#7187)

When a task with SLA is deleted from a DAG after the SLA miss is logged
but before the notification was sent, scheduler will crash with an
AirflowException
kaxil pushed a commit that referenced this pull request Feb 3, 2020
…sses (#7187)

When a task with SLA is deleted from a DAG after the SLA miss is logged
but before the notification was sent, scheduler will crash with an
AirflowException
kaxil pushed a commit to astronomer/airflow that referenced this pull request Feb 27, 2020
…sses (apache#7187)

When a task with SLA is deleted from a DAG after the SLA miss is logged
but before the notification was sent, scheduler will crash with an
AirflowException

(cherry picked from commit aa197ea)
galuszkak pushed a commit to FlyrInc/apache-airflow that referenced this pull request Mar 5, 2020
…sses (apache#7187)

When a task with SLA is deleted from a DAG after the SLA miss is logged
but before the notification was sent, scheduler will crash with an
AirflowException
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area:Scheduler including HA (high availability) scheduler
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants