Re:Jepsen Disputes MongoDB's Data Consistency Claims
by andreareina on Sunday May 24, 2020 @06:38AM
(#23290611)
That's how git stores its objects:
18:35 $ tree .git/objects/
.git/objects/
├── 02
│ └── 9581d0c8ecb87cf1771afc0b4c2f1d9f7bfa82
├── 3b
│ └── 97b950623230bd218cef6aebd983eb826b2078
(...)
├── info
└── pack
├── pack-b1fe2364423805afb6b1c03be0811c93b19dedc9.idx
└── pack-b1fe2364423805afb6b1c03be0811c93b19dedc9.pack
10 directories, 10 files
Re:Jepsen Disputes MongoDB's Data Consistency Claims
by nieve on Sunday May 24, 2020 @04:05AM
(#23289995)
One important note: make sure you carefully consider using atomic renames and such for manipulating the files! Overwrite in place is a great way to end up with a corrupted item if something goes desperately wrong and you're not protected by COW or data journaling.
Basically if you're manually scanning the heirarchy for anything but a consistency check or garbage collection you've already lost.