Uploaded image for project: 'Kafka'
  1. Kafka
  2. KAFKA-407

Uncaught InputStream.close() exception in CompressionUtils.compress()

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Minor
    • Resolution: Won't Fix
    • 0.7.1
    • None
    • core
    • None

    Description

      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.

      Attachments

        Activity

          People

            Unassigned Unassigned
            quipo Lorenzo Alberton
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: