Skip to content

Conversation

@millfreedom
Copy link

preventing race conditions, accountable for broken file structure.

why:
Multiple writers open the same path with APPEND and write at the same time. Java’s BufferedWriter/OutputStreamWriter will encode and write the big string in multiple underlying writes, so chunks from different threads can interleave (and, in fact - it's exactly what was happening).

preventing race conditions, accountable for broken file structure.

why:
Multiple writers open the same path with APPEND and write at the same time. Java’s BufferedWriter/OutputStreamWriter will encode and write the big string in multiple underlying writes, so chunks from different threads can interleave (and, in fact - it's exactly what was happening).
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant