Bug Report: Reshard Cancel
deletes shards form the topology
#17965
Labels
Content-Length: 205304 | pFad | http://github.com/vitessio/vitess/issues/17965
E1Reshard Cancel
deletes shards form the topology
#17965
Fetched URL: http://github.com/vitessio/vitess/issues/17965
Alternative Proxies:
Overview of the Issue
When cancelling a reshard workflow via the
Reshard Cancel
command, Vitess currently "cleans up" the target shards of the reshard workflow by deleting them from the topology.This seems unintended, as it causes two problems:
vttablet
s for the deleted shards just keep executing the workflow.This seems to be happening here:
vitess/go/vt/wrangler/traffic_switcher.go
Lines 721 to 724 in eef0e47
And here:
vitess/go/vt/vtctl/workflow/server.go
Lines 1993 to 1995 in eef0e47
I don't think we should be dropping the target shards here. Instead, we should only drop the tables on the target shards, to restore them to the state they had before resharding was started.
Reproduction Steps
Create new shards and start a
Reshard
workflow. Cancel theReshard
workflow viaReshard Cancel
command.Notice that the shards and tablets have been deleted from the topology. Check the tablet status pages to see that the tablets are still running the reshard workflow.
Binary Version
Operating System and Environment details
Log Fragments
The text was updated successfully, but these errors were encountered: