-
Notifications
You must be signed in to change notification settings - Fork 2.3k
vtorc: move shard primary timestamp to time type
#18401
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
vtorc: move shard primary timestamp to time type
#18401
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]>
Signed-off-by: Tim Vaillancourt <[email protected]>
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #18401 +/- ##
==========================================
- Coverage 67.49% 67.49% -0.01%
==========================================
Files 1603 1603
Lines 262495 262495
==========================================
- Hits 177180 177170 -10
- Misses 85315 85325 +10 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
|
There is a minor memory implication to this. In the current approach, and empty timestamp is stored as just If this is a concern I could use |
GuptaManan100
left a comment
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 don't think VTOrc performance is that much of a concern. In our experiements we found it wasn't a CPU or memory bound workload. Mostly dependent on the network calls, so its fine I think
@GuptaManan100 yeah, I agree. For us a I think the only resource we'd be concerned to increase is CPU or remote topo calls 👍 |
Signed-off-by: Tim Vaillancourt <[email protected]>
…tests * origin/master: (32 commits) test: Fix race condition in TestStreamRowsHeartbeat (vitessio#18414) VReplication: Improve permission check logic on external tablets on SwitchTraffic (vitessio#18348) Perform post copy actions in atomic copy (vitessio#18411) Update `operator.yaml` (vitessio#18364) Feature(onlineddl): Add shard-specific completion to online ddl (vitessio#18331) Set parsed comments in operator for subqueries (vitessio#18369) `vtorc`: move shard primary timestamp to time type (vitessio#18401) `vtorc`: rename `isClusterWideRecovery` -> `isShardWideRecovery` (vitessio#18351) `vtorc`: remove dupe keyspace/shard in replication analysis (vitessio#18395) Topo: Add NamedLock test for zk2 and consul and get them passing (vitessio#18407) Handle MySQL 9.x as New Flavor in getFlavor() (vitessio#18399) Add support for sending grpc server backend metrics via ORCA (vitessio#18282) asthelpergen: add design documentation (vitessio#18403) `vtorc`: add keyspace/shard labels to recoveries stats (vitessio#18304) `vtorc`: cleanup `database_instance` location fields (vitessio#18339) avoid derived tables for UNION when possible (vitessio#18393) [Bugfix] Broken Heartbeat system in Row Streamer (vitessio#18390) Update MAINTAINERS.md (vitessio#18394) move vmg to emeritus (vitessio#18388) Make sure to check if the server is closed in etcd2topo (vitessio#18352) ...
Description
This PR move the shard primary timestamp in VTOrc to be represented as a real
time.Time, not just astring(that is currently only compared with!=and==)While updating this, I noticed the
.GetTime()method of rows insqlutilsis broken. It seems the waytime.Timeis represented as.String()changed since the time this code was written. We've been unaffected by this breakage because, before this PR,.GetTime()was called in a single place where we never use the value, so we don't know it's broken (an emptytime.Time{}). See unit tests for more contextRelated Issue(s)
Aides in implementation of #18337. Aside from this, having a time-comparable timestamp will aid in a future feature I would like to add
Checklist
Deployment Notes