Skip to content

Add capability create consistent transactions#4533

Merged
sougou merged 1 commit intovitessio:masterfrom
systay:lock-tables2
Jan 18, 2019
Merged

Add capability create consistent transactions#4533
sougou merged 1 commit intovitessio:masterfrom
systay:lock-tables2

Conversation

@systay
Copy link
Copy Markdown
Collaborator

@systay systay commented Jan 18, 2019

To make this possible, some things are added:

  • The capability to lock all tables on a tablet, to momentarily stop updates
  • Once the database is locked, we can create multiple consistent snapshot
    transactions that all share the same view of the data
  • Adds the capability to have replication move forward to a specific point
    in the transaction log

This commit also refactors tabletserver and tx_engine, moving logic of
state transitions into the tx engine.

(This is a squashed version of #4310)

To make this possible, some things are added:
 - The capability to lock all tables on a tablet, to momenterily stop updates
 - Once the database is locked, we can create multiple consistent snapshot
   transactions that all share the same view of the data
 - Adds the capability to have replication move forward to a specific point
   in the transaction log

This commit also refactors tabletserver and tx_engine, moving logic of
state transitions into the tx engine.

Signed-off-by: Andres Taylor <antaylor@squareup.com>
@sougou
Copy link
Copy Markdown
Contributor

sougou commented Jan 18, 2019

🎉

@sougou sougou merged commit 69a2183 into vitessio:master Jan 18, 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.

2 participants