@Override
    public void flush() throws IOException {
        if (os != null)
            os.flush();
    }
Blocks the running thread if running out of disk space.

@throws AbortedException
            if the running thread is interrupted while acquiring a
            semaphore
aws-java-sdk-s3/src/main/java/com/amazonaws/services/s3/internal/MultiFileOutputStream.java