4 ms·
That's a good point but I think the system will still be correct in this scenario just unavailable. If a transaction ever fails to fully write a transaction met
by eatonphil 2y ago
That's a good point but I think the system will still be correct in this scenario just unavailable. If a transaction ever fails to fully write a transaction metadata file all future transactions will crash while reading it. You can recover by deleting the faulty and final transaction file. Link is a better choice though you're right. I didn't remember it will fail if the new file already exists too. I'll rewrite my code. Thanks!
- yencabulator 2y agoOnly by virtue of the code seeming to store everything in JSON. If you used a format where binary data could be stored as-is, you could end up with a zeroed sector in the middle of a large value. If you used a format that allowed zero bytes, you could end up with a structure that could be confused for something legal (e.g. list of TLV with many type=0 len=0 objects ignored).
- eatonphil 2y ago> Only by virtue of the code seeming to store everything in JSON Yep.