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

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

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Minor
    • Resolution: Won't Fix
    • Affects Version/s: 0.7.1
    • Fix Version/s: None
    • Component/s: core
    • Labels:
      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

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

              Dates

              • Created:
                Updated:
                Resolved: