Revenue Source

Welcome to the Revenue Source affiliate marketing forums.

You are viewing our internet marketing and SEO forums as a guest which gives you limited access to most of our discussions.  By joining our free community, you will have access to post affiliate marketing topics, communicate privately with other members (PM), exchange SEO strategies, and access many other special features.  Registration is fast, simple and absolutely free so please, join our community today!

If you have any problems, please don't hesitate to contact us.

Go Back   Revenue Source > Site Design & Development > Databases
Reload this Page Add an option to Fail on Innodb Initialize failure, Please ?
Tags: , , , , ,

Reply
 
LinkBack Thread Tools Search this Thread
Old
  (#1 (permalink))
Affiliate Blogs is Offline
Revenue Source Veteran
Affiliate Blogs has a brilliant future here!
 
Affiliate Blogs's Avatar
 
Join Date: Oct 2005
Posts: 9,225
Jack of All Trades
CyberSpace United States
   
Add an option to Fail on Innodb Initialize failure, Please ? - 10-11-2007

I already wrote about this issue but as I is third team I'm helping customers to resolve this "frm corruption" issue it is the time to return to it again.
During MySQL 5.0 release cycle the change was made so now MySQL does not stop if Innodb storage engine failed to initialize but starts properly... just having Innodb tables unavailable. I honestly do not know any case when this behavior change helps... of course you silently want to get good portion of your database unavailable right ? But I guess this change was made for reasons quite far from improving user experience.
It is worth to note MySQL 5.0 introduces STRICT option which will makes error control more strict, what is often expected by the Enterprise users - so instead of cutting the string lengths or converging NULLs to zeros MySQL can be tuned to abort such statements. In this, in my opinion much more serious case there is no option to only start MySQL if all enabled storage engines could be initialized. It should be pretty trivial to add one I think.
Note if we use typical comparison of Storage Engines to File Systems - you have an option to specify which of file systems are mandatory so system will not complete boot up without having these systems clearly mounted. The reason is same - you do not want to deal with all kind of gotchas which may happen when system is partially functional in such crazy way. It is much better to have it safely down so monitoring will scream and let you to get out quickly and fix things.
But it gets worse. Innodb failed initialization is not only very hidden - you will not see it unless you look in MySQL server Error Logs but the error message accessing Innodb tables is also very obfuscated:
PLAIN TEXT
SQL:
  1. [FONT='Courier New', Courier, monospace]error : Incorrect information IN file: './prod/user.frm' [/font]



How this supposed to tell you Innodb (or for that sake any other Storage Engine) failed to initialize ?
This error suppose to mean .frm file is corrupted, and indeed you still can get this error message in such case, but now it is used for completely different reason.
Why not to have error message "Storage Engine is Not Available" or something similar ?
Users are confused by this error message and think it is indeed .frm corruption - trying to restore .frm from backup or other servers and being extremely frustrated as it does not work.
Of course if something looks wrong with your server you should first take a look at MySQL Server error logs but few people do it or spend a time examining error messages accurately enough.
Again if you made your made on this behavior, please at least add option such as --strict-start which would require server to start without serious errors in order to start listening on the sockets.
Entry posted by peter | No comment
Add to: | | | |


Add an option to Fail on Innodb Initialize failure, Please ? - Read More...
  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads for: Add an option to Fail on Innodb Initialize failure, Please ?
Thread Thread Starter Forum Replies Last Post
FAILURE - An Affiliates Best Friend Affiliate Blogs Affiliate Marketing 0 07-10-2007 04:47 PM
Linkbait not a total failure Affiliate Blogs Affiliate Marketing 0 03-06-2007 04:02 PM
5 Reasons Why Blogs Fail CodrutTurcanu SEO / SEM 0 01-08-2007 09:56 AM
Affiliate Newbies often fail because… Affiliate Blogs Affiliate Marketing 0 11-20-2006 12:04 AM
PayPerPost.com Will Be The Biggest Failure In Blogging History, & Here's Why - ReveNe Affiliate Blogs Affiliate Marketing 0 11-06-2006 04:08 AM



© 2004-6 RevenueSource.com.  All rights reserved.  Do not duplicate or redistribute in any form.
This website and its logos/design are property of RevenueSource.com.  All rights reserved. vBSEO 3.2.0 RC7


1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34