RPM installer starts the service and corrupts the DB
Bug #1226850 reported by
monty solomon
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Percona Server moved to https://jira.percona.com/projects/PS |
Invalid
|
Undecided
|
Unassigned | ||
5.1 |
Won't Fix
|
High
|
Unassigned | ||
5.5 |
Invalid
|
Undecided
|
Unassigned | ||
5.6 |
Invalid
|
Undecided
|
Unassigned |
Bug Description
The upstream RPM script for version 5.1 contains logic to determine if the installed server should be started.
The Percona RPM script for version 5.1 is missing that logic and always starts the server.
As a result, an already installed DB is sometimes corrupted by Percona Server and can't be recovered.
That scenario happens when the DB is present but the my.cnf is not yet configured and Percona Server is confused about where to find the InnoDB files.
130917 21:02:51 InnoDB: Initializing buffer pool, size = 128.0M dev.mysql. com/doc/ refman/ 5.1/en/ forcing- innodb- recovery. html
130917 21:02:51 InnoDB: Completed initialization of buffer pool
130917 21:02:51 InnoDB: Log file ./ib_logfile0 did not exist: new to be created
InnoDB: Setting log file ./ib_logfile0 size to 128 MB
InnoDB: Database physically writes the file full: wait...
InnoDB: Progress in MB: 100
130917 21:02:52 InnoDB: Log file ./ib_logfile1 did not exist: new to be created
InnoDB: Setting log file ./ib_logfile1 size to 128 MB
InnoDB: Database physically writes the file full: wait...
InnoDB: Progress in MB: 100
130917 21:02:53 InnoDB: highest supported file format is Barracuda.
InnoDB: The log sequence number in ibdata files does not match
InnoDB: the log sequence number in the ib_logfiles!
130917 21:02:53 InnoDB: Database was not shut down normally!
InnoDB: Starting crash recovery.
InnoDB: Reading tablespace information from the .ibd files...
InnoDB: Restoring possible half-written data pages from the doublewrite
InnoDB: buffer...
130917 21:02:53 InnoDB: Error: page 4 log sequence number 24128906350
InnoDB: is in the future! Current system log sequence number 8068106764.
InnoDB: Your database may be corrupt or you may have copied the InnoDB
InnoDB: tablespace but not the InnoDB log files. See
InnoDB: http://
InnoDB: for more information.