Return-Path: Delivered-To: apmail-hadoop-core-dev-archive@www.apache.org Received: (qmail 54409 invoked from network); 18 Nov 2008 00:28:11 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 18 Nov 2008 00:28:11 -0000 Received: (qmail 59073 invoked by uid 500); 18 Nov 2008 00:28:13 -0000 Delivered-To: apmail-hadoop-core-dev-archive@hadoop.apache.org Received: (qmail 59041 invoked by uid 500); 18 Nov 2008 00:28:12 -0000 Mailing-List: contact core-dev-help@hadoop.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: core-dev@hadoop.apache.org Delivered-To: mailing list core-dev@hadoop.apache.org Received: (qmail 59029 invoked by uid 99); 18 Nov 2008 00:28:12 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 17 Nov 2008 16:28:12 -0800 X-ASF-Spam-Status: No, hits=-2000.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.140] (HELO brutus.apache.org) (140.211.11.140) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 18 Nov 2008 00:26:59 +0000 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id 5E581234C28A for ; Mon, 17 Nov 2008 16:27:44 -0800 (PST) Message-ID: <1883792809.1226968064385.JavaMail.jira@brutus> Date: Mon, 17 Nov 2008 16:27:44 -0800 (PST) From: "Hong Tang (JIRA)" To: core-dev@hadoop.apache.org Subject: [jira] Created: (HADOOP-4673) IFile.Writer close() uses compressor after returning it to CodecPool. MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org IFile.Writer close() uses compressor after returning it to CodecPool. ---------------------------------------------------------------------- Key: HADOOP-4673 URL: https://issues.apache.org/jira/browse/HADOOP-4673 Project: Hadoop Core Issue Type: Bug Affects Versions: 0.18.2, 0.18.1 Reporter: Hong Tang The problem is of the same nature as HADOOP-4195. The compression codec is returned to the CodecPool, and later is finished in "out.close()". {code:title=IFile.java|borderStyle=solid} public void close() throws IOException { // Close the serializers keySerializer.close(); valueSerializer.close(); // Write EOF_MARKER for key/value length WritableUtils.writeVInt(out, EOF_MARKER); WritableUtils.writeVInt(out, EOF_MARKER); decompressedBytesWritten += 2 * WritableUtils.getVIntSize(EOF_MARKER); if (compressOutput) { // Flush data from buffers into the compressor out.flush(); // Flush & return the compressor compressedOut.finish(); compressedOut.resetState(); CodecPool.returnCompressor(compressor); compressor = null; } // Close the stream rawOut.flush(); compressedBytesWritten = rawOut.getPos() - start; // Close the underlying stream iff we own it... if (ownOutputStream) { out.close(); } out = null; } {code} -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.