Open lyricnz opened 2 weeks ago
Technically this can happen with files too, not just S3, since fs.writeFile()
is not atomic.
@abukharov thoughts?
For emergency fix, I split the files to be unique by account+region, but this makes for rather messy output directory/S3 bucket.
The audit log from a run last night appears to be missing entries:
Suspect race-condition in appending to the S3 audit log? Multiple accounts are running at the same time, and the S3 file writer doesn't have native/atomic file append, so fakes this by reading contents + appending + writing, which could result in lost-writes.