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

geo: Synchronous global round-trip incurred for transaction promotion #12863

Open
es1024 opened this issue Jun 13, 2022 · 0 comments
Open

geo: Synchronous global round-trip incurred for transaction promotion #12863

es1024 opened this issue Jun 13, 2022 · 0 comments
Assignees
Labels
area/docdb YugabyteDB core features kind/enhancement This is an enhancement of an existing feature priority/medium Medium priority issue

Comments

@es1024
Copy link
Contributor

es1024 commented Jun 13, 2022

Jira Link: DB-2624

Description

Context: #9980

When we promote a transaction from local to global, we essentially start a new transaction with the same transaction id using the new global transaction status tablet, then point all participant tablets to the new tablet. There is a synchronous global RPC when registering the transaction with the global status tablet, during which no writes can be done. This is analogous to the first heartbeat of a newly created transaction needing to finish before writes start.

For transactions that start with the correct locality, we avoid this by using precreated transactions with the transaction pool, but we don't have this option for promotion due to reusing the transaction id. This can be fixed by making changes to allow the new transaction to use a different id (but this will require handling existing intents which have the old transaction id), then using a precreated transaction from the global transactions pool.

@es1024 es1024 added area/docdb YugabyteDB core features status/awaiting-triage Issue awaiting triage labels Jun 13, 2022
@es1024 es1024 self-assigned this Jun 13, 2022
@es1024 es1024 added this to To Do in Row Level Geo Partitioning via automation Jun 13, 2022
@yugabyte-ci yugabyte-ci added kind/bug This issue is a bug priority/medium Medium priority issue labels Jun 13, 2022
@es1024 es1024 removed the kind/bug This issue is a bug label Jun 13, 2022
@es1024 es1024 changed the title [DocDB] Synchronous global round-trip incurred for transaction promotion geo: Synchronous global round-trip incurred for transaction promotion Jun 13, 2022
@yugabyte-ci yugabyte-ci added kind/bug This issue is a bug and removed status/awaiting-triage Issue awaiting triage labels Jun 14, 2022
@yugabyte-ci yugabyte-ci added kind/enhancement This is an enhancement of an existing feature and removed kind/bug This issue is a bug labels Jul 29, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/docdb YugabyteDB core features kind/enhancement This is an enhancement of an existing feature priority/medium Medium priority issue
Development

No branches or pull requests

2 participants