|
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: |
Answered by
newborn22
Nov 8, 2023
Replies: 1 comment
|
The vreplication entry will be deleted in the
|
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:gcArtifactsphase 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.stalein thereviewStaleMigrationsphase of the onlineDDL sheduler, the functionterminateMigrationwill be called, and this function will calldeleteEntry.