I think the issue might be that the file written may not have all the keys because of a full disk.