You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@kafka.apache.org by "Jozef Koval (JIRA)" <ji...@apache.org> on 2017/04/15 20:06:41 UTC
[jira] [Commented] (KAFKA-407) Uncaught InputStream.close()
exception in CompressionUtils.compress()
[ https://issues.apache.org/jira/browse/KAFKA-407?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15970109#comment-15970109 ]
Jozef Koval commented on KAFKA-407:
-----------------------------------
Hi [~junrao] and [~quipo], I wanted to work on this one but could not get the source. Does CompressionUtils still exists in the codebase?
> 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 was sent by Atlassian JIRA
(v6.3.15#6346)