Skip to content

Conversation

@famosss
Copy link

@famosss famosss commented Jan 5, 2016

org.apache.hadoop.io.compress.BlockCompressorStream#finish is a public function,so other apps can call the method directly,such as flume,but when compressor.getBytesRead() == 0 then it will write a null data,and then the data after the null data will not be read as they lost. So,please add the check in the method.
Thank you.

@famosss famosss changed the title org.apache.hadoop.io.compress.BlockCompressorStream#finish add check … BlockCompressorStream#finish add check compressor.getBytesRead()>0 Jan 5, 2016
jojochuang pushed a commit to jojochuang/hadoop-common that referenced this pull request Apr 8, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant