-
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
Distributed Transaction Resolver #16381
Conversation
Review ChecklistHello reviewers! 👋 Please follow this checklist when reviewing this Pull Request. General
Tests
Documentation
New flags
If a workflow is added or modified:
Backward compatibility
|
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #16381 +/- ##
==========================================
+ Coverage 68.66% 68.67% +0.01%
==========================================
Files 1548 1549 +1
Lines 199071 199205 +134
==========================================
+ Hits 136683 136796 +113
- Misses 62388 62409 +21 ☔ View full report in Codecov by Sentry. |
77fa3a2
to
d14508d
Compare
Signed-off-by: Harshit Gangal <[email protected]>
Signed-off-by: Harshit Gangal <[email protected]>
…sactions Signed-off-by: Harshit Gangal <[email protected]>
Signed-off-by: Harshit Gangal <[email protected]>
Signed-off-by: Harshit Gangal <[email protected]>
…ther to conclude unresolved transactions Signed-off-by: Harshit Gangal <[email protected]>
e128c9a
to
c0eda0f
Compare
…is api Signed-off-by: Harshit Gangal <[email protected]>
Signed-off-by: Harshit Gangal <[email protected]>
Signed-off-by: Harshit Gangal <[email protected]>
Signed-off-by: Harshit Gangal <[email protected]>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM!
Signed-off-by: Harshit Gangal <[email protected]>
Signed-off-by: Harshit Gangal <[email protected]>
go/vt/vtgate/tx_conn.go
Outdated
callerID := callerid.EffectiveCallerIDFromContext(ctx) | ||
|
||
// Test code to simulate a failure after RM prepare | ||
if failNow, err := checkTestFailure(callerID, "TRCreated_FailNow", nil); failNow { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm confused. Isn't this test code? What is it doing here?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We will add the go build
logic to include test and non-test functions. There is already a task to make the changes on the commit flow. That will be added as part of the PR.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done! In the latest commits! 🚀
…atus Signed-off-by: Manan Gupta <[email protected]>
… in CI Signed-off-by: Manan Gupta <[email protected]>
Description
This PR changes VTGate to watch on transaction unresolved signal from the health stream. When received it invokes transaction resolution for that
keyspace:shard
. The transaction resolver retrieves the unresolved transaction list and resolves those transactions based on the current state i.e. commit/rollback/prepare.Related Issue(s)
Checklist