Bug #48850 The test backup_xpfm_compat_backup_lctn2 hangs on Windows
Submitted: 17 Nov 2009 20:22 Modified: 4 Dec 2009 6:24
Reporter: Chuck Bell Email Updates:
Status: Duplicate Impact on me:
None 
Category:MySQL Server: Backup Severity:S3 (Non-critical)
Version: OS:Windows
Assigned to: Assigned Account CPU Architecture:Any

[17 Nov 2009 20:22] Chuck Bell
Description:
The test backup_xpfm_compat_backup_lctn2 will hang on the Windows platform. This can be seen in PB2 for mysql-6.0-backup-merge on the win x86_64_max platform.

I have also verified it occurs on Windows 7 32-bit.

NOTE: A workaround will be put in place to ensure the tables are flushed before the DROP DATABASE commands. The FLUSH TABLES command should be removed when this bug is fixed.

=== modified file 'mysql-test/suite/backup/include/backup_xpfm_compat_backup.inc'
--- mysql-test/suite/backup/include/backup_xpfm_compat_backup.inc	2009-07-20 09:27:48 +0000
+++ mysql-test/suite/backup/include/backup_xpfm_compat_backup.inc	2009-11-17 19:24:17 +0000
@@ -897,6 +897,9 @@ DROP USER 'no_user'@'%';
 DROP USER 'bup_user1'@'%';
 DROP USER 'BUP_USER2';
 DROP USER 'BupUser3'@'%';
+--disable_query_log
+FLUSH TABLES;
+--enable_query_log
 DROP DATABASE bup_xpfm_compat_db1;
 DROP DATABASE BUP_XPFM_COMPAT_DB2;
 DROP DATABASE BupXPfmCompat_db3;

How to repeat:
If you use manual debug you will see warnings like the following during the DROP DATABASE commands at the end of the included test.

091117 11:48:12  InnoDB: Warning: MySQL is trying to drop database `bup_xpfm_com
pat_db1`.`` InnoDB: though there are still open handles to table `bup_xpfm_compat_db1`.`table2`.
091117 11:48:13  InnoDB: Warning: MySQL is trying to drop database `bup_xpfm_com
pat_db1`.`` InnoDB: though there are still open handles to table `bup_xpfm_compat_db1`.`table2`.
091117 11:48:14  InnoDB: Warning: MySQL is trying to drop database `bup_xpfm_com
pat_db1`.`` InnoDB: though there are still open handles to table `bup_xpfm_compat_db1`.`table2`.
091117 11:48:17  InnoDB: Warning: MySQL is trying to drop database `bup_xpfm_com
pat_db1`.`` InnoDB: though there are still open handles to table `bup_xpfm_compat_db1`.`table2`.
091117 11:48:18  InnoDB: Warning: MySQL is trying to drop database `bup_xpfm_com
pat_db1`.`` InnoDB: though there are still open handles to table `bup_xpfm_compat_db1`.`table2`.

If you change InnoDB to MyISAM you get this:

CURRENT_TEST: backup.backup_xpfm_compat_backup_lctn2
mysqltest: In included file ".\suite\backup\include\backup_xpfm_compat_backup.in
c": At line 903: query 'DROP DATABASE bup_xpfm_compat_db1' failed: 1010: Error d
ropping database (can't rmdir '.\bup_xpfm_compat_db1', errno: 41)

An inspection of the folder shows the folder is empty.

Suggested fix:
Unknown.
[18 Nov 2009 13:54] Chuck Bell
May be related to BUG#48151.
[4 Dec 2009 6:24] Thava Alagu
This bug does not reproduce after the fix for Bug#48923. Hence closing this as duplicate.
[20 Feb 2010 9:17] Bugs System
Pushed into 6.0.14-alpha (revid:ingo.struewing@sun.com-20100218152520-s4v1ld76bif06eqn) (version source revid:ingo.struewing@sun.com-20100119103538-wtp5alpz4p2jayl5) (merge vers: 6.0.14-alpha) (pib:16)