Hi, all. I am reading the SequenceFile code, and I have a question about hadoop compression io. The code in org.apache.io.SequenceFile.BlockCompressWriter.writeBuffer:
deflateOut.flush(); deflateFilter.finish(); Why the flush() is called first? I think the compressor.finish() should be called before flush the output stream.