hadoop-common-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Eli Collins (JIRA)" <j...@apache.org>
Subject [jira] Created: (HADOOP-6803) ZlibCompressor hangs on close
Date Wed, 02 Jun 2010 23:11:56 GMT
ZlibCompressor hangs on close

                 Key: HADOOP-6803
                 URL: https://issues.apache.org/jira/browse/HADOOP-6803
             Project: Hadoop Common
          Issue Type: Bug
          Components: io
    Affects Versions: 0.21.0, 0.22.0
            Reporter: Eli Collins
            Assignee: Eli Collins
             Fix For: 0.21.0, 0.22.0

Looking at ZlibCompressor I noticed that the finished member is never modified, and is therefore
always false. This means ZlibCompressor#finished will always return false so CompressorStream#close
loops indefinitely in finish:

      while (!compressor.finished()) {

I modifed TestCodec#testGzipCodecWrite to also cover writing using the native lib and confirmed
the hang with jstack. The fix is simple, ZlibCompressor should record when it's been finished.

This message is automatically generated by JIRA.
You can reply to this email to add a comment to the issue online.

View raw message