Offset storage writer is already flushing. So your code will never append any content.