-
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
Transaction watcher and notifier #16363
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
|
Signed-off-by: Harshit Gangal <harshit@planetscale.com>
…action watcher Signed-off-by: Harshit Gangal <harshit@planetscale.com>
Signed-off-by: Harshit Gangal <harshit@planetscale.com>
b6fc184
to
2aac6ae
Compare
Signed-off-by: Harshit Gangal <harshit@planetscale.com>
…ved prepared transactions Signed-off-by: Harshit Gangal <harshit@planetscale.com>
…ck > prepare Signed-off-by: Harshit Gangal <harshit@planetscale.com>
Signed-off-by: Harshit Gangal <harshit@planetscale.com>
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #16363 +/- ##
==========================================
- Coverage 68.67% 68.65% -0.02%
==========================================
Files 1548 1548
Lines 199081 199044 -37
==========================================
- Hits 136722 136659 -63
- Misses 62359 62385 +26 ☔ View full report in Codecov by Sentry. |
Signed-off-by: Harshit Gangal <harshit@planetscale.com>
This comment was marked as resolved.
This comment was marked as resolved.
Signed-off-by: Andres Taylor <andres@planetscale.com>
test helper
This will be done by doc-gen workflow. |
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.
Rest LGTM!
PREPARE = 1; | ||
COMMIT = 2; | ||
ROLLBACK = 3; | ||
ROLLBACK = 2; | ||
COMMIT = 3; |
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.
Why are we changing this? Is this required?
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.
This is to keep the order of state such that if we order on the transaction state, the commit state comes on top.
Signed-off-by: Harshit Gangal <harshit@planetscale.com> Signed-off-by: Andres Taylor <andres@planetscale.com> Co-authored-by: Andres Taylor <andres@planetscale.com> Signed-off-by: Florent Poinsard <florent.poinsard@outlook.fr>
Description
This PR watches unresolved transactions and uses the vttablet health stream to notify.
Related Issue(s)
Checklist