Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

BlockCompressorStream#finish add check compressor.getBytesRead()>0 #4

Open
wants to merge 1 commit into
base: trunk
Choose a base branch
from

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
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant