Rebuild it
Build a toy GFS in one process: a master object that maps /logs/clicks to its chunks, three chunkserver objects S1, S2 and S3 that each keep a copy of the last chunk as a byte array, and a client library with record append. Scale it down so it runs instantly: 64-byte chunks and records of at most 16 bytes, a quarter of a chunk as in the paper. Make S1 the primary. Follow section 3.3: the client pushes the record to all three copies, then asks S1 to append; S1 picks the offset, pads the chunk and sends the client to the next chunk if the record would not fit, and otherwise tells S2 and S3 to write at its offset. Let a test make any copy fail a write, and have the client retry on failure. Give every record a checksum and a unique ID, and write J, a reader that skips bad checksums and repeated IDs. Test it two ways. First, script the story: R1 and R2 land one after the other, S3 fails R2, the retry lands after them, and J, reading any one copy, returns R1 and R2 exactly once. Then run a few thousand random seeds with many writers and random failures, and after every run assert that each append that reported success sits whole at the same offset on all three copies, and that J returns every acknowledged record once, from whichever copy it reads.