-
Notifications
You must be signed in to change notification settings - Fork 1.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
[docdb] Geo-partitioning support for the transaction status table #9980
Comments
From @bmatican:
There are two possible approaches:
From a discussion with @spolitov, the second approach (multiple status tablets) seems easier. This will involve periodically refreshing the information about the complete set of transaction status tables/tablets on each transaction client (YBClient). |
existing limitations
notes from meeting on the topic
@mbautin @kgupta-yb in case I missed anything |
Followup clarification from Sergei, on how any queries to the txn status tablet would be handled, after a txn is started (eg: conflict resolution)
|
Jira Link: [DB-359](https://yugabyte.atlassian.net/browse/DB-359)
Phase 1 -- Done
Proof of concept for this work. User should be able to create txn tables manually, control local vs global behavior via a session variable and get appropriate errors when trying to do global work against local transaction tables.
✅ Ability to create new transaction tables with custom placement (#10157)
✅ Ability for a TS to use a local vs global transaction table (#10158)
✅ Session variable to control local vs global transaction table usage (#10159)
Phase 2 -- Done
Improve usability, by automatically creating tables for the user, by piggybacking on tablespaces, as the means to configure this feature in YSQL. New, local txn tables, will be created on the first table added to a tablespace, either via CREATE TABLE or via ALTER TABLE SET TABLESPACE.
✅ Create txn table on first table in a tablespace (#10783)
✅ Create txn table on first use of ALTER TABLE SET TABLESPACE (#11353)
Phase 3 -- 2.13
Further improve usability by also removing the local vs global error for the user, allowing them to start in a local context and be able to execute global queries, without receiving an error, by transparently promoting their transaction to a global one.
✅ Automatically promote from local to global transactions when necessary (#10537)
Future work
⬜️ Support for ALTER TABLESPACE (#11075)
✅ Support for deleting local txn tables (#11123)
The text was updated successfully, but these errors were encountered: