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

Fix bug that routine load may mistakenly skipped some data #1832

Merged
merged 2 commits into from Sep 19, 2019

Conversation

morningman
Copy link
Contributor

Reproduce:

  1. start a routine load, send a routine load task to BE
  2. BE executes task successfully and commit to FE.
  3. Commit request failed on FE because database is renamed(throw db not found exception)
  4. After commit failed, BE will send rollback request to FE.
  5. FE receive this rollback request and mistakenly update the routine load progress,
    because the number of loaded rows in this rollback request's attachment is larger than 0

Reproduce:
1. start a routine load, send a routine load task to BE
2. BE executes task successfully and commit to FE.
3. Commit request failed on FE because database is renamed(throw db not found exception)
4. After commit failed, BE will send rollback request to FE.
5. FE receive this rollback request and mistakenly update the routine load progress,
   because the number of loaded rows in this rollback request's attachment is larger than 0
Copy link
Contributor

@EmmyMiao87 EmmyMiao87 left a comment

Choose a reason for hiding this comment

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

LGTM

@imay imay merged commit 7bf02d0 into apache:master Sep 19, 2019
@imay imay mentioned this pull request Sep 26, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants