Changing Fedora's shutdown timeouts
Changing Fedora's shutdown timeouts
Posted Jan 24, 2023 2:13 UTC (Tue) by Wol (subscriber, #4433)In reply to: Changing Fedora's shutdown timeouts by madscientist
Parent article: Changing Fedora's shutdown timeouts
You're making the exact same mistake the filesystem guys did at the transition from ext3 to ext4. The users don't give a damn about the filesystem, or the database. THEY CARE ABOUT THEIR DATA.
By journalling the filesystem metadata, ext4 reduced the need for a fsck and sped up boot times after a crash. The problem was, ext3 saved the user's data in the event of a crash, ext4 corrupted it. The user doesn't give a monkeys if the system recovers 10 minutes quicker, if the result is waiting ten hours for your corrupted files to be recovered from a backup.
Likewise, users don't give a monkeys that the database recovers quickly by replaying a journal, if the database has been corrupted by losing "data in flight". If the system crashes with a power outage, then maybe it's acceptable, it's hard to protect 100% against it. But (as we are discussing here) for data in flight to get lost because the system can't be bothered to wait for the database to flush its buffers? THAT IS TOTALLY UNACCEPTABLE. My employer is a supermarket. If customers commit a transaction, the LAST thing we want is for the system to "crash" and lose those transactions. But if the system does not give the database time to flush those transactions to the log, that is exactly what will happen.
It all depends what you mean by "a corrupted database". To you it means a database where the file STRUCTURE is damaged and needs to be repaired. To me it means a database where the file CONTENTS have been damaged, and may be irretrievably lost.
Cheers,
Wol
