reset avro write buffer