Skip to content

Make MoveTables Create async#302

Merged
nickvanw merged 2 commits intomainfrom
nvanwiggeren/async-move-tables-create
Apr 7, 2026
Merged

Make MoveTables Create async#302
nickvanw merged 2 commits intomainfrom
nvanwiggeren/async-move-tables-create

Conversation

@nickvanw
Copy link
Copy Markdown
Contributor

@nickvanw nickvanw commented Apr 6, 2026

Summary

  • MoveTables Create can take a long time for databases with thousands of tables, causing request timeouts
  • Change MoveTablesService.Create to return *VtctldOperationReference instead of json.RawMessage, matching the pattern already used by SwitchTraffic, ReverseTraffic, and Complete
  • Callers should poll GetOperation with the returned ID to get the result

Breaking change: MoveTablesService.Create return type changed from (json.RawMessage, error) to (*VtctldOperationReference, error).

MoveTables Create can take a long time for databases with thousands of
tables. Change it to use the async operation pattern (returning a
VtctldOperationReference) like SwitchTraffic, ReverseTraffic, and
Complete already do. Callers should poll GetOperation for the result.

This is a breaking change to the MoveTablesService interface.
@nickvanw nickvanw requested a review from a team as a code owner April 6, 2026 23:26
@nickvanw nickvanw enabled auto-merge April 7, 2026 21:22
@nickvanw nickvanw merged commit ee3b635 into main Apr 7, 2026
4 of 5 checks passed
@nickvanw nickvanw deleted the nvanwiggeren/async-move-tables-create branch April 7, 2026 21:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants