Skip to content

[docdb] Geo-partitioning support for the transaction status table #9980

@mbautin

Description

@mbautin

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)

Metadata

Metadata

Assignees

Labels

area/docdbYugabyteDB core featureskind/bugThis issue is a bugpriority/mediumMedium priority issueroadmap-tracking-issueThis issue tracks a major roadmap item, and usually appears in the roadmap list.

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions