Skip to content

Conversation

@xy720
Copy link
Member

@xy720 xy720 commented Sep 3, 2020

Proposed changes

fix #4519

How to reproduce:
Restart when the state is ETL

  1. Submit a spark load job
  2. Wait until the job state become ETL
  3. Restart FE
  4. Show load. And you can see the state of the job will always be stuck in ETL with progress 0%.
  5. Open the web interface of the yarn cluster with browser, you can see that the spark job has been submitted successfully and is running well and normally.

Expected behavior
The job state should be ETL after FE restart. And the state will not stuck in ETL.

The Reson of this BUG
This is because SparkLoadAppHandle in SparkLoadJob is not persisted, resulting in that an NPE error thrown in the ETL phase after FE restart, making the job state stay in the ETL state all the time.

Types of changes

What types of changes does your code introduce to Doris?
Put an x in the boxes that apply

  • Bugfix (non-breaking change which fixes an issue)

Checklist

Put an x in the boxes that apply. You can also fill these out after creating the PR. If you're unsure about any of them, don't hesitate to ask. We're here to help! This is simply a reminder of what we are going to look for before merging your code.

Further comments

If this is a relatively large or complex change, kick off the discussion at dev@doris.apache.org by explaining why you chose the solution you did and what alternatives you considered, etc...

@morningman morningman added area/spark-load Issues or PRs related to the spark load kind/fix Categorizes issue or PR as related to a bug. kind/meta-version-change Categorizes issue or PR as related to changing meta version labels Sep 3, 2020
Copy link
Contributor

@morningman morningman left a comment

Choose a reason for hiding this comment

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

LGTM

@morningman morningman added the approved Indicates a PR has been approved by one committer. label Sep 3, 2020
@morningman morningman merged commit 369e86b into apache:master Sep 4, 2020
morningman pushed a commit that referenced this pull request Sep 4, 2020
@yangzhg yangzhg mentioned this pull request Feb 9, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

approved Indicates a PR has been approved by one committer. area/spark-load Issues or PRs related to the spark load kind/fix Categorizes issue or PR as related to a bug. kind/meta-version-change Categorizes issue or PR as related to changing meta version

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Spark Load][Bug] Load job's state is incorrect after FE restart

2 participants