Skip to content

VReplication: When will the VReplication entry in mysql.vreplication table be deleted? #354

Answered by newborn22
newborn22 asked this question in Q&A
Discussion options

You must be logged in to vote

The vreplication entry will be deleted in the func (e *Executor) deleteVReplicationEntry(ctx context.Context, tableSchema string, uuid string) error. There are two places where this function is called:

  1. In the gcArtifacts phase of the onlineDDL sheduler: after onlineDDL completes, if the current time has passed a certain time from the completion time (24 hours in the code), the corresponding entry will be deleted.
  2. When the user cancels the onlineDDL task, or the onlineDDL task is detected as stale in the reviewStaleMigrations phase of the onlineDDL sheduler, the function terminateMigration will be called, and this function will call deleteEntry.

Replies: 1 comment

Comment options

newborn22
Nov 8, 2023
Maintainer Author

You must be logged in to vote
0 replies
Answer selected by newborn22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
1 participant