Skip to content
This repository has been archived by the owner on Dec 8, 2021. It is now read-only.

checkpoint: wait checkpoint finished if exit before success #386

Merged
merged 2 commits into from
Sep 3, 2020

Conversation

glorv
Copy link
Contributor

@glorv glorv commented Sep 3, 2020

What problem does this PR solve?

Fix the bug that if lightning exit before finished, e.g. manually cancelled, some checkpoint update may not be written to db before exit.

We have encounter this bug several times in recent integration test's failure. Example: https://internal.pingcap.net/idc-jenkins/blue/organizations/jenkins/lightning_ghpr_test/detail/lightning_ghpr_test/1570/pipeline/47/

What is changed and how it works?

If lightning exit early, wait for checkpoint finish before exit.

Check List

Tests

  • Unit test
  • Integration test
  • Manual test (add detailed scripts or steps below)
  • No code

Side effects

Related changes

Copy link
Collaborator

@kennytm kennytm left a comment

Choose a reason for hiding this comment

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

LGTM

@kennytm kennytm added the status/LGT1 One reviewer already commented LGTM (LGTM1) label Sep 3, 2020
Copy link
Contributor

@3pointer 3pointer left a comment

Choose a reason for hiding this comment

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

LGTM

@glorv glorv added status/LGT2 Two reviewers already commented LGTM, ready for merge (LGTM2) and removed status/LGT1 One reviewer already commented LGTM (LGTM1) labels Sep 3, 2020
@glorv
Copy link
Contributor Author

glorv commented Sep 3, 2020

/build

@kennytm kennytm merged commit 134c944 into master Sep 3, 2020
@kennytm kennytm deleted the fix-checkpoint branch September 3, 2020 09:56
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
status/LGT2 Two reviewers already commented LGTM, ready for merge (LGTM2)
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants