You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Currently, when a distributed transaction is started in ybclient in CQL proxy, ybclient makes a RPC call (yb.master.MasterService.GetTableLocations) to master to fetch the IDs of all tablets of the "system.transactions" table and pick a random tablet to use as the status tablet for the transaction.
For performance, we should pick a tablet that is local to CQL proxy if possible so the begin transaction and commit will be local.
Also, we should cache the result to avoid the RPC call to master.
The text was updated successfully, but these errors were encountered:
Summary: Prefer tablets that has local leader, when picking status tablet for transaction.
Test Plan: Jenkins
Reviewers: mikhail, pritam.damania, robert
Reviewed By: robert
Subscribers: bogdan, ybase, bharat
Differential Revision: https://phabricator.dev.yugabyte.com/D4972
…ed to the
earlier commit 28442cc
Original commit message:
(#331) ENG-3407: Pick local transaction status tablet
Summary: Prefer tablets that has local leader, when picking status tablet for transaction.
Test Plan: Jenkins
Reviewers: mikhail, pritam.damania, robert
Reviewed By: robert
Subscribers: bogdan, ybase, bharat
Differential Revision: https://phabricator.dev.yugabyte.com/D4972
mbautin
pushed a commit
to mbautin/yugabyte-db
that referenced
this issue
Jul 16, 2019
Summary: Prefer tablets that has local leader, when picking status tablet for transaction.
Test Plan: Jenkins
Reviewers: mikhail, pritam.damania, robert
Reviewed By: robert
Subscribers: bogdan, ybase, bharat
Differential Revision: https://phabricator.dev.yugabyte.com/D4972
Note:
This commit provides additional functionality that is logically related to
the earlier commit yugabyte@28442cc
and supersedes the commit yugabyte@01f7b08
Currently, when a distributed transaction is started in ybclient in CQL proxy, ybclient makes a RPC call (yb.master.MasterService.GetTableLocations) to master to fetch the IDs of all tablets of the "system.transactions" table and pick a random tablet to use as the status tablet for the transaction.
For performance, we should pick a tablet that is local to CQL proxy if possible so the begin transaction and commit will be local.
Also, we should cache the result to avoid the RPC call to master.
The text was updated successfully, but these errors were encountered: