-
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
Deprecate twopc_enable
flag
#17279
base: main
Are you sure you want to change the base?
Deprecate twopc_enable
flag
#17279
Conversation
Signed-off-by: Harshit Gangal <harshit@planetscale.com>
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 ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #17279 +/- ##
==========================================
+ Coverage 67.37% 67.39% +0.02%
==========================================
Files 1573 1573
Lines 253113 253129 +16
==========================================
+ Hits 170538 170601 +63
+ Misses 82575 82528 -47 ☔ View full report in Codecov by Sentry. 🚨 Try these New Features:
|
Signed-off-by: Harshit Gangal <harshit@planetscale.com>
|
||
#### <a id="vttablet-flags"/>Deprecated VTTablet Flags</a> | ||
|
||
- `twopc_enable` flag is deprecated, `twopc_abandonage` flag if set will be used to determine if 2PC is enabled or not. |
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.
Are we really determining whether to allow 2PC based on twopc_abandonage
? Ideally it should be controlled solely by transaction_mode
on vtgate, and vttablets should be able to participate.
My suggestion would be to pick a reasonable default for twopc_abandonage
and use that. Also we should be changing that to a Duration
field instead of float
which I assume is being interpreted as seconds.
Description
This PR deprecate
twopc_enable
flag to enable TwoPC.The
twopc_abandonage
is still mandatory to be set on VTTablet for TwoPC transactions prepare to work.Related Issue(s)
Checklist
Deployment Notes