-
Notifications
You must be signed in to change notification settings - Fork 2.1k
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 capability to create consistent transactions #4310
Commits on Jan 10, 2019
-
Add capability create consistent transactions
To make this possible, two 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 Signed-off-by: Andres Taylor <antaylor@squareup.com>
Configuration menu - View commit details
-
Copy full SHA for b6987f7 - Browse repository at this point
Copy the full SHA b6987f7View commit details -
Always restart the engine when changing server type
Signed-off-by: Andres Taylor <antaylor@squareup.com>
Configuration menu - View commit details
-
Copy full SHA for d7cb371 - Browse repository at this point
Copy the full SHA d7cb371View commit details -
Restore tests removed by mistake
Signed-off-by: Andres Taylor <antaylor@squareup.com>
Configuration menu - View commit details
-
Copy full SHA for 1468d91 - Browse repository at this point
Copy the full SHA 1468d91View commit details -
Configuration menu - View commit details
-
Copy full SHA for bee8e6e - Browse repository at this point
Copy the full SHA bee8e6eView commit details -
Move logic of state transitions into the tx engine.
Instead of the tabletserver keeping track of when it's safe to close transactions to change serving type, the tx engine now keeps track of it's current state and what is needed for safe state changes. Signed-off-by: Andres Taylor <antaylor@squareup.com>
Configuration menu - View commit details
-
Copy full SHA for bdb292e - Browse repository at this point
Copy the full SHA bdb292eView commit details -
Signed-off-by: Andres Taylor <antaylor@squareup.com>
Configuration menu - View commit details
-
Copy full SHA for 9612e40 - Browse repository at this point
Copy the full SHA 9612e40View commit details -
Make the tablet server stop keeping track of the tx engine state
Signed-off-by: Andres Taylor <antaylor@squareup.com>
Configuration menu - View commit details
-
Copy full SHA for dfa9126 - Browse repository at this point
Copy the full SHA dfa9126View commit details -
* Handle the case when ReadOnly is requested during transition. * Instead of allowing the outside deciding when to forcefully shut down transactions, hide this behaviour behind a method, so state can properly be updated. Signed-off-by: Andres Taylor <antaylor@squareup.com>
Configuration menu - View commit details
-
Copy full SHA for 03de7e4 - Browse repository at this point
Copy the full SHA 03de7e4View commit details -
* Remove unused splitColumns argument * Remove unused error argument Signed-off-by: Andres Taylor <antaylor@squareup.com>
Configuration menu - View commit details
-
Copy full SHA for 549c161 - Browse repository at this point
Copy the full SHA 549c161View commit details -
tabletserver.go now uses the TxEngineStateController interface instea…
…d of the TxEngine class Signed-off-by: Andres Taylor <antaylor@squareup.com>
Configuration menu - View commit details
-
Copy full SHA for aaa4dde - Browse repository at this point
Copy the full SHA aaa4ddeView commit details -
Moved the beginRequests waitGroup into the tx_engine
Signed-off-by: Andres Taylor <antaylor@squareup.com>
Configuration menu - View commit details
-
Copy full SHA for 4bc7937 - Browse repository at this point
Copy the full SHA 4bc7937View commit details -
Signed-off-by: Andres Taylor <antaylor@squareup.com>
Configuration menu - View commit details
-
Copy full SHA for 6393b07 - Browse repository at this point
Copy the full SHA 6393b07View commit details -
Split test file in two to get around test harness problem
Signed-off-by: Andres Taylor <antaylor@squareup.com>
Configuration menu - View commit details
-
Copy full SHA for a57c799 - Browse repository at this point
Copy the full SHA a57c799View commit details -
Make sure to stop race condititions
The particular race condition is: * Thread 1: tsv.Begin is called, which calls startRequest through execRequest. * Thread 1: tsv.mu is released once startRequest returns. * Thread 2: A call to setServingType is received. * Thread 2: goes in: there are no begin requests in the wait group. So, it closes the TxEngine, or changes its state. * Thread 1: TxEngine.Begin executes on a TxEngine. If the state has changed so that a transaction should not be allowed, an error will not be returned. Signed-off-by: Andres Taylor <antaylor@squareup.com>
Configuration menu - View commit details
-
Copy full SHA for 505458f - Browse repository at this point
Copy the full SHA 505458fView commit details -
Removed boolean flag that was not needed any more
Signed-off-by: Andres Taylor <antaylor@squareup.com>
Configuration menu - View commit details
-
Copy full SHA for 018ca33 - Browse repository at this point
Copy the full SHA 018ca33View commit details -
Make all state transitions blocking
Signed-off-by: Andres Taylor <antaylor@squareup.com>
Configuration menu - View commit details
-
Copy full SHA for c3db459 - Browse repository at this point
Copy the full SHA c3db459View commit details
Commits on Jan 11, 2019
-
Don't touch the internals unnecessarily
Signed-off-by: Andres Taylor <antaylor@squareup.com>
Configuration menu - View commit details
-
Copy full SHA for 5785cdd - Browse repository at this point
Copy the full SHA 5785cddView commit details -
Prepare tests for read only transactions
Signed-off-by: Andres Taylor <antaylor@squareup.com>
Configuration menu - View commit details
-
Copy full SHA for 1ee033c - Browse repository at this point
Copy the full SHA 1ee033cView commit details -
Moving code around to make it easier to read
Signed-off-by: Andres Taylor <antaylor@squareup.com>
Configuration menu - View commit details
-
Copy full SHA for e0e52e5 - Browse repository at this point
Copy the full SHA e0e52e5View commit details -
Reject write transactions when in read only mode
Signed-off-by: Andres Taylor <antaylor@squareup.com>
Configuration menu - View commit details
-
Copy full SHA for fabc520 - Browse repository at this point
Copy the full SHA fabc520View commit details -
Make sure the schema engine is initialized
Signed-off-by: Andres Taylor <antaylor@squareup.com>
Configuration menu - View commit details
-
Copy full SHA for f99a185 - Browse repository at this point
Copy the full SHA f99a185View commit details -
Configuration menu - View commit details
-
Copy full SHA for caaad26 - Browse repository at this point
Copy the full SHA caaad26View commit details
Commits on Jan 14, 2019
-
Merge remote-tracking branch 'upstream/master' into lock-tables
* upstream/master: Skip ACL checks for dual pseudotable Makes sure the schema engine has started up before getting debug information. Support tables that have columns named desc exec_cases: add passing messages OnDup test exec_cases: add failing tests for msgs on dupe planbuilder: support ‘on duplicate key’ for msgs
Configuration menu - View commit details
-
Copy full SHA for 1f5524d - Browse repository at this point
Copy the full SHA 1f5524dView commit details -
Revert "Split test file in two to get around test harness problem"
This reverts commit a57c799. Signed-off-by: Andres Taylor <antaylor@squareup.com>
Configuration menu - View commit details
-
Copy full SHA for 611ec92 - Browse repository at this point
Copy the full SHA 611ec92View commit details -
Merge remote-tracking branch 'upstream/master' into lock-tables
* upstream/master: helm: release 1.0.5 vreplication: address review comments tlstest_test: Go 1.12 / TLS 1.3 fix vreplication: vstream final tweaks vreplication: tests are done vreplication: handle singleton and mariadb issues vreplication: moved tests into vstreamer dir vreplication: more vstreamer tests vreplication: MariaDB test tweaks and more tests vreplication: tests: statements and DDL add column vreplication: make a singleton srvtopo.Server vreplication: got some basic tests working vreplication: tabletserver inits and other tweaks vreplication: vstreamer, plan and filtering vreplication: streamer planbuilder vreplication: vstreamer Engine Signed-off-by: Andres Taylor <antaylor@squareup.com>
Configuration menu - View commit details
-
Copy full SHA for 37c25bb - Browse repository at this point
Copy the full SHA 37c25bbView commit details -
Configuration menu - View commit details
-
Copy full SHA for 830917d - Browse repository at this point
Copy the full SHA 830917dView commit details
Commits on Jan 15, 2019
-
Return tx_engine to the old behaviours of rolling back transactions
Signed-off-by: Andres Taylor <antaylor@squareup.com>
Configuration menu - View commit details
-
Copy full SHA for 05826a1 - Browse repository at this point
Copy the full SHA 05826a1View commit details -
Signed-off-by: Andres Taylor <antaylor@squareup.com>
Configuration menu - View commit details
-
Copy full SHA for 3966d01 - Browse repository at this point
Copy the full SHA 3966d01View commit details -
Merge remote-tracking branch 'upstream/master' into lock-tables
* upstream/master: vtctl: run BackupShard on replica, rdonly or spare Expose `glog.MaxSize` as `-log_rotate_max_size` flag inline ok check; while-range instead of bare while test the signal handler reload db-credentials-file upon SIGHUP change ClusterAlias in _vt.local_metadata to be keyspace/shard instead of keyspace.shard Signed-off-by: Andres Taylor <antaylor@squareup.com>
Configuration menu - View commit details
-
Copy full SHA for 6626e4d - Browse repository at this point
Copy the full SHA 6626e4dView commit details -
Continue restoring the old behaviour back
Signed-off-by: Andres Taylor <antaylor@squareup.com>
Configuration menu - View commit details
-
Copy full SHA for 20ba0f5 - Browse repository at this point
Copy the full SHA 20ba0f5View commit details
Commits on Jan 17, 2019
-
Signed-off-by: Sugu Sougoumarane <ssougou@gmail.com>
Configuration menu - View commit details
-
Copy full SHA for 4fafca8 - Browse repository at this point
Copy the full SHA 4fafca8View commit details -
Make sure to not start 2PC when in read-only mode
Signed-off-by: Andres Taylor <antaylor@squareup.com>
Configuration menu - View commit details
-
Copy full SHA for 79f7894 - Browse repository at this point
Copy the full SHA 79f7894View commit details -
Merge remote-tracking branch 'upstream/master' into lock-tables
* upstream/master: Adds a test to check regressions in parser Adding in SQL commands to prepare an instance to join an existing shard Revert "Support tables that have columns named desc" Use a truly random Destination for DestinationAnyShard Signed-off-by: Andres Taylor <antaylor@squareup.com>
Configuration menu - View commit details
-
Copy full SHA for fe00e51 - Browse repository at this point
Copy the full SHA fe00e51View commit details
Commits on Jan 18, 2019
-
Signed-off-by: Andres Taylor <antaylor@squareup.com>
Configuration menu - View commit details
-
Copy full SHA for d9882d8 - Browse repository at this point
Copy the full SHA d9882d8View commit details -
Signed-off-by: Andres Taylor <antaylor@squareup.com>
Configuration menu - View commit details
-
Copy full SHA for 3c5b742 - Browse repository at this point
Copy the full SHA 3c5b742View commit details -
Configuration menu - View commit details
-
Copy full SHA for 16a95a3 - Browse repository at this point
Copy the full SHA 16a95a3View commit details -
Trying to make it clearer what we are testing. Signed-off-by: Andres Taylor <antaylor@squareup.com>
Configuration menu - View commit details
-
Copy full SHA for 21303bb - Browse repository at this point
Copy the full SHA 21303bbView commit details