-
VReplication: When will the VReplication entry in mysql.vreplication table be deleted? When one vreplication workflow of onlineDDL finished, it will still keep its entry in mysql.vreplication table, just like this:
|
Beta Was this translation helpful? Give feedback.
Answered by
newborn22
Nov 8, 2023
Replies: 1 comment
-
The vreplication entry will be deleted in the
|
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
newborn22
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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: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.stale
in thereviewStaleMigrations
phase of the onlineDDL sheduler, the functionterminateMigration
will be called, and this function will calldeleteEntry
.