In OpenZFS and Btrfs, everyone was just guessing
phoronix.com
In OpenZFS and Btrfs, everyone was just guessing
1–10 of 172 posts
Re: In OpenZFS and Btrfs, everyone was just guessing
#2Re: In OpenZFS and Btrfs, everyone was just guessing
#3When filesystem or databases have serious bugs, they are often heisenbugs. Incredibly hard to pin down. You need to be able to replicate the bug to find what is happening.
In one of the first jobs I had, large Oracle database started to corrupt data repeatedly about once a month or so. Oracle had to send on-site team to monitor the database operations to catch the bug in action. They basically had their own datacenter to record all the logs from database, networks and operating system.
It took weeks for them to catch the bug. It was related to certain network driver in the operating system and the bug manifested only with some specific network traffic pattern.
Re: In OpenZFS and Btrfs, everyone was just guessing
#4Re: In OpenZFS and Btrfs, everyone was just guessing
#5It looks like they managed to exactly pin down what was happening.
Re: In OpenZFS and Btrfs, everyone was just guessing
#6Re: In OpenZFS and Btrfs, everyone was just guessing
#7The bug was finally fixed with the following commit: https://github.com/openzfs/zfs/pull/15579/commits/679738cc40... It looks like they managed to exactly pin down what was happening.
Re: In OpenZFS and Btrfs, everyone was just guessing
#8Reading the comment re: what the FS dev teams should do by someone who I bet didn't pay a dime for the software just upsets me.
Re: In OpenZFS and Btrfs, everyone was just guessing
#9Reading the comment re: what the FS dev teams should do by someone who I bet didn't pay a dime for the software just upsets me.
Re: In OpenZFS and Btrfs, everyone was just guessing
#10https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=275308
Second, I don't like the editorialization of this title ("In OpenZFS and Btrfs, everyone was just guessing") at all. No, nobody was "just guessing", but as far as I know there is no featureful FS that has undergone formal verification. It's a large codebase started by a now long defunct company that solved critical problems and delivered a lot of value, but there absolutely can be issues lurking over long time periods. It's a testament if anything that work and usage did uncover the issue, it wasn't brushed away at all but instead drilled down on and solved in short order, and now the already extensive test suites are expanded again in an organized way. And spekaing of "critical problems":
Third, a lot of the commentary around these sorts of things seems to indulge in noticing the rare misses while ignoring many hits. Amongst other reasons part of the core motivation for me to switch to ZFS 100% in 2010/2011 or so and doggedly stick with it ever since was precisely because I experienced data rot (permanent corruption) with my data under previous filesystems where that WAS NOT A BUG. HFS/UFS/NTFS/XFS/whatever, none of them offer any guarantees of data integrity in the first place! Bit flips somewhere, hardware has issues, copying has noise, whatever? RAID-5 write hole? Those or lots of other things are not a bugs at all in old filesystems, because that's just how those primitive things were. I've been carrying forward data since my first Apple IIe, and went back to find some of my old work, early digital photos and drawings I cared about, and somewhere along the line it had gotten mucked up. I know not where or when, because there was no chain of checksumming and trust that would have a chance to alert me. It's impossible for a human to keep up with terabytes of data manually, it has to be fully automated, baked in. At least in ZFS there being any corruption is a drop-everything big deal problem that is incredibly rare and niche and serious people will care very much about. Pretending the old stuff was good or even acceptable is pure bullshit.
It doesn't have to be mathematically perfect to deliver value, and importantly to be far superior to everything that came before. And it's inarguable that it's been battle tested very very hard for a very long time at this point. It's certainly saved my bacon a few times.