Bug #43881 Backup files not removed after backup aborted
Submitted: 26 Mar 2009 13:12 Modified: 6 May 2009 17:36
Reporter: Wen Xiong Email Updates:
Status: Verified Impact on me:
Category:MySQL Cluster: Cluster (NDB) storage engine Severity:S1 (Critical)
Version:mysql-5.1-telco-6.3 OS:Solaris
Assigned to: CPU Architecture:Any

[26 Mar 2009 13:12] Wen Xiong
The backup files are not removed when doing 
ndb_mgm -e "ABORT BACKUP backup_id"
during backup.

There is the message when aborting backup 2:
2009-03-26 13:32:00 [MgmSrvr] INFO     -- Node 1: Backup 2 started from node 3
2009-03-26 13:32:01 [MgmSrvr] ALERT    -- Node 1: Backup 2 started from 3 has been aborted. Error: 1321

So, backup 2 has been aborted. Also, all the files for backup 2 should be removed as well. But actually, the files are still there, and when we want to backup again  using the aborted backup_id, then problem happens.

How to repeat:
1. Start a cluster with one ndb_mgmd and two ndbd
3. Verify backup id
4. ndb_mgm -e "ABORT BACKUP backup_id" 
Note: step 4 should be done during backup but not until backup has finished
[11 May 2009 13:43] Jonathan Miller
mysql-5.1.31-ndb-6.3.22, mysql-5.1.32-ndb-7.0.5

Should look for complete marker before it decides to overwrite