List:General Discussion« Previous MessageNext Message »
From:Rich Lafferty Date:February 24 2005 2:53pm
Subject:Re: wikipedia down, slashdot covering, mysql mentioned
View as plain text  
On Thu, Feb 24, 2005 at 02:38:46PM +0200, DebugasRu <debugas@stripped> wrote:
> 
> > Probably fsync() had failed to flush some part of a 16 kB page to
> > disk.
> so what ? one of trade-offs would be to re-read the data from the disk
> and compare it with what it should be (another copy on the disk) and
> only after that fix the transaction,

That didn't get rid of the race condition, it just moved it. So now you
write the transaction, and you read it off, and then you write that it
was OK -- but what if that write gets interrupted?

So you write the transaction, and you read it off, and then you write
that it was OK, and then you read that off, and then you write that the
OK was OK. No, that could get interrupted to...

Meanwhile, it turns out that you've been reading back from cache instead
of platters all along. Or perhaps it turns out that the battery-backed
cache in the disk controller has a dead battery, or simply doesn't work.

If the disk promises data is written but it is not then there is nothing
MySQL can do to *tell* that something is amiss. 

I think you've confused an RDBMS with a system administrator. Next
thing you know you'll be complaining that MySQL isn't ACID-compliant
because it can't survive a fire.

  -Rich

-- 
Rich Lafferty --------------+-----------------------------------------------
 Ottawa, Ontario, Canada    |  Save the Pacific Northwest Tree Octopus!
 http://www.lafferty.ca/    |    http://zapatopi.net/treeoctopus.html
rich@stripped -----------+-----------------------------------------------
Thread
wikipedia down, slashdot covering, mysql mentionedScott Haneda22 Feb
  • Re: wikipedia down, slashdot covering, mysql mentionedDebugasRu22 Feb
  • Re: wikipedia down, slashdot covering, mysql mentionedPeter Wilm22 Feb
  • Re: wikipedia down, slashdot covering, mysql mentionedDaniel Kasak22 Feb
    • Re: wikipedia down, slashdot covering, mysql mentionedGreg Whalin22 Feb
      • Re: wikipedia down, slashdot covering, mysql mentionedDaniel Kasak22 Feb
        • Re: wikipedia down, slashdot covering, mysql mentionedGreg Whalin23 Feb
        • Re: wikipedia down, slashdot covering, mysql mentionedDebugasRu24 Feb
          • Re: wikipedia down, slashdot covering, mysql mentionedRich Lafferty24 Feb
            • Re: wikipedia down, slashdot covering, mysql mentionedGreg Whalin24 Feb
              • Re: wikipedia down, slashdot covering, mysql mentionedRich Lafferty24 Feb
                • Re: wikipedia down, slashdot covering, mysql mentionedGreg Whalin24 Feb
              • Re[2]: wikipedia down, slashdot covering, mysql mentionedDebugasRu24 Feb
Re: wikipedia down, slashdot covering, mysql mentionedHeikki Tuuri22 Feb
  • Re: wikipedia down, slashdot covering, mysql mentionedGreg Whalin22 Feb
  • Re: wikipedia down, slashdot covering, mysql mentionedJochem van Dieten23 Feb
Re: wikipedia down, slashdot covering, mysql mentionedHeikki Tuuri23 Feb
Re: wikipedia down, slashdot covering, mysql mentionedHeikki Tuuri23 Feb
Re: wikipedia down, slashdot covering, mysql mentionedHeikki Tuuri23 Feb