Perform post copy actions in atomic copy#18411
Conversation
Signed-off-by: Noble Mittal <noblemittal@outlook.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 ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #18411 +/- ##
==========================================
- Coverage 67.51% 67.50% -0.02%
==========================================
Files 1607 1607
Lines 262684 262699 +15
==========================================
- Hits 177343 177325 -18
- Misses 85341 85374 +33 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
Signed-off-by: Noble Mittal <noblemittal@outlook.com>
mattlord
left a comment
There was a problem hiding this comment.
Would be good to have a new test included here, which fails on main and passes in the PR branch. From looking at the code, this should be good. But any fix should have a corresponding test that confirms 1. it catches the bug and reproduces the failure 2. that the fix actually fixes it.
|
Hi @mattlord, TestFKWorkflow was modified here to do so. This test fails on main, but passes in this PR. |
Ah, I see! I didn't originally pick up on that from the snippet in the diff but when expanding it it's clear. Sorry about that. ❤️ |
|
Should this be backported? |
…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
copyAll()) where we missed executing post copy actions.TestFKWorkflowto confirm secondary keys in the target schema._vt. post_copy_actionalong with the existing state deletion from_vt.copy_stateRelated Issue(s)
Checklist
Deployment Notes