5 ms·
And what if it's not your PhD thesis in Libre Office but a busy database server which can easily get corrupted if you don't flush. > I don't think I've had a f
by slashdotaccount 13y ago
And what if it's not your PhD thesis in Libre Office but a busy database server which can easily get corrupted if you don't flush.
> I don't think I've had a freeze that was the kernel and not just X.
Device drivers sometimes have bugs, especially when the device is not working properly (I had system freezes when there was a misbehaving capacitor on the graphics card).
- garblegarble 13y ago> And what if it's not your PhD thesis in Libre Office but a busy database server which can easily get corrupted if you don't flush. Wouldn't that make it an unsafe database server?
- slashdotaccount 13y agoYes, I agree, but just several weeks ago I had to recover a MySQL InnoDB database after a power problem. MySQL is very popular, and it turns out it is an unsafe database server according to your definition. Well maybe it is. Edit: Besides, hard drives have write caches, and they can report a successful write operation to the OS when the data is still in its cache physically.
- deelowe 13y agoI don't believe MySQL is ACID compliant. You may have just ran into one of the reasons how.
- cookiecaper 13y agoMySQL is only ACID compliant under a very specific set of configuration parameters. This makes it even more dangerous than an RDBMS with binary acidity.
- marcosdumay 13y agoYep, MySQL is an unsafe database. The fact that it's popular just goes to show how powerful marketing is on th emind of most people. Hard drivers are supposed to flush their caches before they report the end of a flush operation to the OS (some flush into flash, but they flush). If your does not, it's defective. Go ahead and make use of the warranty.
- fulafel 13y agoRe HD lying, this is rare except with dubious cheap flash sticks. The caching command set is well defined and operating systems know how to issue the relevant SCSI/SATA commands. It's critical for correct functioning of journaling filesystems such as NTFS and Ext4.
- zorlem 13y ago> And what if it's not your PhD thesis in Libre Office but a busy database server which can easily get corrupted if you don't flush. No properly configured and working ACID compliant RDBMS should lose any data when the server is reset or stopped. If it does, then it is either a problem with the hardware, OS, configuration or the RDBMS itself. The application must also be able to handle the DB disappearing, though. Sadly this is often not the case.
- dalore 13y agoYou mean lose data after it's been committed. I can send something to the database just as it's dying and it's been lost.
- fulafel 13y agoSQL commit is not allowed to finish before the data is safely on disk (that's the D in ACID).
- icebraining 13y agoThat's assuming that the RDBMS can tell. The disks may lie:|
- plorg 13y agoThus the 's' in reisub?
- kelnos 13y agoThe disk may lie. The 's' will get the OS to send everything out to the disk. Actually writing it to the platter (or flash part, or whatever) is at the disk's discretion.
- fulafel 13y agoIt's at the disk's discretion as far as the laws of physics are concerned, but this would a severely broken disk prone to losing data and if it was a major server disk vendor, the vendor would take a pretty serious hit to its reputation.