Bug #39780 | Allow restore to skip gap event during restore on master | ||
---|---|---|---|
Submitted: | 1 Oct 2008 15:43 | Modified: | 15 Apr 2009 1:22 |
Reporter: | Chuck Bell | Email Updates: | |
Status: | Closed | Impact on me: | |
Category: | MySQL Server: Backup | Severity: | S4 (Feature request) |
Version: | 6.0.8 | OS: | Any |
Assigned to: | Chuck Bell | CPU Architecture: | Any |
[1 Oct 2008 15:43]
Chuck Bell
[5 Jan 2009 16:31]
Chuck Bell
Analysis of the two suggested implementations --------------------------------------------- 1) Using a variable. A variable would be very easy to implement. If it were local only then there would be less opportunity for leaving the setting turned on when not intended. However, a variable would require users to remember yet another tidbit of 'how to do it'. 2) Using an override on the command. An override option would allow users to ignore the gap event for that restore only. It has no possibility of mistaken settings like the variable (other than the obvious user error). However, an override would require changing the parser to recognize yet another exception to the normal flow. It may also complicate later efforts to streamline the RESTORE command code to use key/value pairs (not currently in progress but discussed as a possibility). Conclusion ---------- The override option would be easier to implement and easier for the user to use.
[6 Jan 2009 20:29]
Bugs System
A patch for this bug has been committed. After review, it may be pushed to the relevant source trees for release in the next version. You can access the patch from: http://lists.mysql.com/commits/62560 2746 Chuck Bell 2009-01-06 BUG#39780 Allow restore to skip gap event during restore on master This patch adds a new option to the restore command: skip_gap_event. It is used to skip writing the incident event when a restore is run on a master in an active replication topology (gap event).
[9 Jan 2009 18:52]
Ingo Strüwing
Back to "In progress" while waiting for a reply to my review.
[9 Feb 2009 22:24]
Bugs System
A patch for this bug has been committed. After review, it may be pushed to the relevant source trees for release in the next version. You can access the patch from: http://lists.mysql.com/commits/65674 2764 Chuck Bell 2009-02-09 BUG#39780 Allow restore to skip gap event during restore on master This patch adds a new option to the restore command: skip_gap_event. It is used to skip writing the incident event when a restore is run on a master in an active replication topology (gap event).
[11 Feb 2009 13:20]
Jørgen Løland
Good to push.
[11 Feb 2009 16:32]
Bugs System
A patch for this bug has been committed. After review, it may be pushed to the relevant source trees for release in the next version. You can access the patch from: http://lists.mysql.com/commits/65929 2768 Chuck Bell 2009-02-11 BUG#39780 Allow restore to skip gap event during restore on master This patch adds a new option to the restore command: skip_gap_event. It is used to skip writing the incident event when a restore is run on a master in an active replication topology (gap event).
[26 Mar 2009 12:34]
Bugs System
Pushed into 6.0.11-alpha (revid:alik@sun.com-20090326121822-pt84kzxxayzho4mn) (version source revid:rafal.somla@sun.com-20090302164601-znhm4tadplfi2iqu) (merge vers: 6.0.11-alpha) (pib:6)
[8 Apr 2009 0:18]
Paul DuBois
"This patch adds a new option to the restore command: skip_gap_event." Please specify what the syntax of RESTORE is after this addition.
[14 Apr 2009 14:01]
Chuck Bell
The new syntax is: RESTORE FROM 'image_file_name' [OVERWRITE] [SKIP_GAP_EVENT] :)
[15 Apr 2009 1:22]
Paul DuBois
Noted in 6.0.11 changelog. The RESTORE statement now has a SKIP_GAP_EVENT option that causes the restore operation not to write the gap event to the binary log that causes any replication slaves to stop replication. This is useful when RESTORE is run on a master server and the backup image does not contain databases that are replicated to the slaves.