-
Notifications
You must be signed in to change notification settings - Fork 2.3k
vtorc: use *topoprotopb.TabletAlias for tablet alias
#18389
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
base: main
Are you sure you want to change the base?
vtorc: use *topoprotopb.TabletAlias for tablet alias
#18389
Conversation
Signed-off-by: Tim Vaillancourt <[email protected]>
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: Tim Vaillancourt <[email protected]>
Signed-off-by: Tim Vaillancourt <[email protected]>
Codecov Report❌ Patch coverage is Additional details and impacted files@@ Coverage Diff @@
## main #18389 +/- ##
==========================================
- Coverage 69.90% 69.89% -0.02%
==========================================
Files 1612 1612
Lines 215796 215832 +36
==========================================
- Hits 150858 150845 -13
- Misses 64938 64987 +49 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
Signed-off-by: Tim Vaillancourt <[email protected]>
Signed-off-by: Tim Vaillancourt <[email protected]>
Signed-off-by: Tim Vaillancourt <[email protected]>
…etAlias Signed-off-by: Tim Vaillancourt <[email protected]>
…etAlias Signed-off-by: Tim Vaillancourt <[email protected]>
Signed-off-by: Tim Vaillancourt <[email protected]>
Signed-off-by: Tim Vaillancourt <[email protected]>
Signed-off-by: Tim Vaillancourt <[email protected]>
|
This PR is being marked as stale because it has been open for 30 days with no activity. To rectify, you may do any of the following:
If no action is taken within 7 days, this PR will be closed. |
…etAlias Signed-off-by: Tim Vaillancourt <[email protected]>
…etAlias Signed-off-by: Tim Vaillancourt <[email protected]>
Signed-off-by: Tim Vaillancourt <[email protected]>
Signed-off-by: Tim Vaillancourt <[email protected]>
Signed-off-by: Tim Vaillancourt <[email protected]>
…etAlias Signed-off-by: Tim Vaillancourt <[email protected]>
…etAlias Signed-off-by: Tim Vaillancourt <[email protected]>
…etAlias Signed-off-by: Tim Vaillancourt <[email protected]>
Signed-off-by: Tim Vaillancourt <[email protected]>
|
This PR is being marked as stale because it has been open for 30 days with no activity. To rectify, you may do any of the following:
If no action is taken within 7 days, this PR will be closed. |
|
This PR is being marked as stale because it has been open for 30 days with no activity. To rectify, you may do any of the following:
If no action is taken within 7 days, this PR will be closed. |
…etAlias Signed-off-by: Tim Vaillancourt <[email protected]>
Signed-off-by: Tim Vaillancourt <[email protected]>
Signed-off-by: Tim Vaillancourt <[email protected]>
Signed-off-by: Tim Vaillancourt <[email protected]>
Description
This PR refactors VTOrc to use
*topoprotopb.TabletAlias(vs atopoproto.TabletAliasString(...)-encodedstring) to reference a tablet throughout the codeCurrently the VTOrc encode/decodes
string-based tablet aliases usingtopoproto.TabletAliasString(...)andtopoproto.ParseTabletAlias(...). This PR continues to do this same conversion, but only in places where it is required, lower in the code:structs asstrings in sqlite.String()method on*topoprotopb.TabletAliasproduces a weird prototext format sotopoproto.TabletAliasString(...)-encodedstringis still usedstring)Finally, a huge
ifblock was moved toswitchininst.GetDetectionAnalysisThis change aids in the implementation of these RFCs:
*topoprotopb.TabletAlias(that's my plan at least)vtorc#17190 - having to decode/encode tablet aliases asstringis really just an implementation detail of the current sqlite backend. Future backends don't need to be hindered by this, so lets use function signatures that use real*topoprotopb.TabletAliasRelated Issue(s)
vtorc#17190Checklist
Deployment Notes