Lorenzo Alberton created KAFKA-407:
--------------------------------------
Summary: Uncaught InputStream.close() exception in
CompressionUtils.compress()
Key: KAFKA-407
URL: https://issues.apache.org/jira/browse/KAFKA-407
Project: Kafka
Issue Type: Bug
Components: core
Affects Versions: 0.7.1
Reporter: Lorenzo Alberton
Priority: Minor
In CompressionUtils.compress(), in this try/catch block:
==========
try {
cf.write(messageByteBuffer.array)
} catch {
case e: IOException => error("Error while writing to the GZIP output
stream", e)
cf.close()
throw e
} finally {
cf.close()
}
==========
cf.close() might throw an IOException, which is not handled.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators:
https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira