Bug #71104 | error on database start activate crashing recovery. | ||
---|---|---|---|
Submitted: | 6 Dec 2013 12:43 | Modified: | 10 Mar 2014 21:59 |
Reporter: | massimo mico | Email Updates: | |
Status: | Closed | Impact on me: | |
Category: | MySQL Server: Errors | Severity: | S1 (Critical) |
Version: | 5.7.3-m13 | OS: | Windows (w2008 r2) |
Assigned to: | CPU Architecture: | Any |
[6 Dec 2013 12:43]
massimo mico
[6 Dec 2013 14:56]
MySQL Verification Team
Please attach the whole error file compressed. Thanks.
[6 Dec 2013 14:59]
Peter Laursen
I think it is important how the 5.7.2 server was stopped as well as the installation method (using the "MySQL Instller" or some other method). Obviously 5.7.2 was not shut down properly. This could be both a human error or a bug in an automated installer or a bug in MySQL 5.7.2 (what could then possibly also exist in 5.7.3). Peter (not a MySQL/Oracle person)
[6 Dec 2013 16:07]
massimo mico
i've installed mysql 5.7.3 with clean unzip file and copied my.ini file in new mysql directory and next i've restored a dump file created with version 5.7.2. Isn't database corruption! because i've tested to make a full clean installation of 5.7.3 version and after start mysql with no restore dump of database, i receive the same error. I think this is a bug on shutdown or start database procedure. Thanks
[6 Dec 2013 16:11]
massimo mico
LOG FILE MYSQL
Attachment: SERVER-2-1.zip (application/x-zip-compressed, text), 9.54 KiB.
[6 Dec 2013 16:24]
Peter Laursen
Question are then: With what tool was the dump created? If you used 'mysqldump' what was then the full command? IMO it is interesting if --flush-logs and --single-transaction were used (or what similar options another tool has, if another tool was used. Decent GUI tolls will have checkboxes or similar for the options). Some old GUI clients may not be fit for dumping InnoDB data (due to lack of proper options support). Not sure about phpMyAdmin. The problem is with the dump itself. It is/was in an inconsistent state. MySQL 7.0.3 recovery does what it must: bring the database to a consistent state (including rolling back non-committed transactions)
[6 Dec 2013 16:37]
massimo mico
hi Peter, dump created with mysqldump on mysql 5.7.2 with the following line command: mysqldump -u root -p --all-databases >c:\mysql\dump20131203.sql but the problem occur also in full clean installation with no restore dump databases. Thanks
[6 Dec 2013 16:41]
Peter Laursen
ok .. let Miguel or another MySQL supporter handle. If this error log occurs first time you start the server - and even before any user data are created, it looks weird.
[6 Dec 2013 17:08]
Sveta Smirnova
Thank you for the feedback. What is the actual file size of InnoDB log files?
[6 Dec 2013 17:10]
massimo mico
Ok, thank Peter! I precise that mysql server run on virtual machine enviroment, the virtual machine have a Windows 2008 R2 server installed, and the host machine have Windows 2012 server with Hyper-V role. thanks
[6 Dec 2013 19:43]
massimo mico
hi Sveta, the actual size of innodb log file is 256M. I've tested also with 64M, 128M. Thanks
[9 Dec 2013 11:37]
massimo mico
I think the bug is in shutdown procedure of InnoDB plugin, because in clean installation with no database restore, the server start and create file log, at first shutdown log are cut in shutdown plugin: 2013-12-07T11:19:14.512085Z 0 [Note] Shutting down plugin 'INNODB_SYS_FIELDS' after this no shutdown plugin is logged when server stop. i add zip file with log of clean installation to verify this.
[9 Dec 2013 11:38]
massimo mico
LOG OF CLEAN NEW INSTALLATION 5.7.3
Attachment: CLEAN INST SERVER LOG.zip (application/x-zip-compressed, text), 1.88 KiB.
[10 Dec 2013 18:51]
MySQL Verification Team
Something is wrong with your installation. There are no messages about plugins being shut down ... So, server can't find them, which is a consequence of bad installation ...
[10 Dec 2013 19:36]
massimo mico
i've downloaded a Windows x64 version zip file, after i've unzip file in root folder and add in mysql directory MY.INI file and create a temp folder. This is my installation.
[11 Dec 2013 19:10]
MySQL Verification Team
The crucial question is: How do you shutdown MySQL server ???? If you shut it down with any other means except: mysqladmin shutdown then what you get is expected behavior !!! This is because you have this value: innodb_flush_log_at_trx_commit=2 and because you can not have clean startup even if you would set all recovery features on.
[11 Dec 2013 20:00]
massimo mico
I don't think this is the problem! Because i've a 5.7.2-m12 version installed in the same machine with same configuration and no problem occur in this version!
[11 Dec 2013 22:48]
massimo mico
however i stop mysql with command "net stop mysql" (stop Windows service) is the same of mysqladmin shutdown, however i've same problem also i stop with mysqladmin and remove innodb_flush_log_at_trx_commit=2 in configuration file.
[17 Dec 2013 11:46]
massimo mico
i think the bug is in mysqld.exe in shutdown procedure when MySql is installed as Windows service. Infact, if i start server with command line mysqld and stop server with command mysqladmin shutdown, the server start and stop correctly with no error messages. When i stop the server as Windows service with net stop Mysql command a shutdown procedure not activated shutdown of INNODB plugin. In log file i've only this: 2013-12-17T11:33:18.660914Z 0 [Note] c:\mysql\bin\mysqld: Normal shutdown 2013-12-17T11:33:18.663844Z 0 [Note] Giving 0 client threads a chance to die gracefully 2013-12-17T11:33:18.664820Z 0 [Note] Shutting down slave threads 2013-12-17T11:33:18.666773Z 0 [Note] Forcefully disconnecting 0 remaining clients 2013-12-17T11:33:18.667750Z 0 [Note] Event Scheduler: Purging the queue. 0 events 2013-12-17T11:33:18.670679Z 0 [Note] Binlog end
[19 Dec 2013 16:01]
MySQL Verification Team
Thank you for the bug report. Verified on Windows 8.1.
[21 Dec 2013 9:44]
massimo mico
thank you for verification.,
[10 Mar 2014 21:59]
Paul DuBois
Noted in MySQL 5.7.5 changelog. When MySQL runs as service on Windows, NTService.Stop() initiates shutdown and exit events during shutdown. After a code reorganization in MySQL 5.7.3, a call to clean_up() was missed, resulting in initiation of crash recovery.