This repository has been archived by the owner on Nov 15, 2024. It is now read-only.
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Seek the write buffer to zero after flushing
While `.truncate(0)` is called on the buffer object after writing, this won't reset the current position to zero. Subsequent writes will therefore just keep extending the buffer and writing more and more data. The fix is pretty simple -- `.seek(0)` after truncating. It looks like this will come up any time an avro file grows past 64,000 bytes (i.e., SYNC_INTERVAL bytes).
- Loading branch information