Kafka
  1. Kafka
  2. KAFKA-407

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

    Details

    • Type: Bug Bug
    • Status: Open
    • Priority: Minor Minor
    • Resolution: Unresolved
    • 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.

        Activity

        Tony Stevenson made changes -
        Workflow Apache Kafka Workflow [ 13051089 ] no-reopen-closed, patch-avail [ 13054532 ]
        Tony Stevenson made changes -
        Field Original Value New Value
        Workflow no-reopen-closed, patch-avail [ 12717132 ] Apache Kafka Workflow [ 13051089 ]
        Lorenzo Alberton created issue -

          People

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

            Dates

            • Created:
              Updated:

              Development