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

add delay clean table lock #905

Merged

Conversation

marsishandsome
Copy link
Collaborator

close #904

The logic of TiSpark to use the table lock is:

  1. lock table
  2. prewrite data.
  3. check whether the locked table session is closed.
  4. if the session doesn't close, do commit.
  5. if the session was closed by unexpected, do a rollback.

The problem is, What if the session was closed by unexpected between step 3 and 4, It will cause some problem.

TiSpark need to delayed release table lock before do commit.

@marsishandsome marsishandsome requested review from zhexuany and birdstorm and removed request for zhexuany July 5, 2019 01:52
@marsishandsome
Copy link
Collaborator Author

/run-all-tests

@marsishandsome marsishandsome force-pushed the feature/delay-clean-table-lock branch from 588f407 to 27d5c2a Compare July 5, 2019 09:18
@marsishandsome
Copy link
Collaborator Author

/run-all-tests

@marsishandsome
Copy link
Collaborator Author

/run-all-tests

@marsishandsome
Copy link
Collaborator Author

@birdstorm PTAL again

Copy link
Contributor

@birdstorm birdstorm left a comment

Choose a reason for hiding this comment

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

LGTM

@marsishandsome marsishandsome merged commit 5ce8bf7 into pingcap:master Jul 5, 2019
wfxxh pushed a commit to wanfangdata/tispark that referenced this pull request Jun 30, 2023
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.

integrate delay-clean-table-lock
3 participants