Return-Path: Delivered-To: apmail-hadoop-common-issues-archive@minotaur.apache.org Received: (qmail 66548 invoked from network); 18 Jul 2009 01:49:31 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 18 Jul 2009 01:49:31 -0000 Received: (qmail 69006 invoked by uid 500); 18 Jul 2009 01:50:37 -0000 Delivered-To: apmail-hadoop-common-issues-archive@hadoop.apache.org Received: (qmail 68968 invoked by uid 500); 18 Jul 2009 01:50:37 -0000 Mailing-List: contact common-issues-help@hadoop.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: common-issues@hadoop.apache.org Delivered-To: mailing list common-issues@hadoop.apache.org Received: (qmail 68958 invoked by uid 99); 18 Jul 2009 01:50:37 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 18 Jul 2009 01:50:37 +0000 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; Sat, 18 Jul 2009 01:50:35 +0000 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id CF890234C044 for ; Fri, 17 Jul 2009 18:50:14 -0700 (PDT) Message-ID: <236654617.1247881814836.JavaMail.jira@brutus> Date: Fri, 17 Jul 2009 18:50:14 -0700 (PDT) From: "Chris Douglas (JIRA)" To: common-issues@hadoop.apache.org Subject: [jira] Updated: (HADOOP-5879) GzipCodec should read compression level etc from configuration MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 X-Virus-Checked: Checked by ClamAV on apache.org [ https://issues.apache.org/jira/browse/HADOOP-5879?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Chris Douglas updated HADOOP-5879: ---------------------------------- Assignee: He Yongqiang Status: Open (was: Patch Available) The latest patch looks good. A few notes: * BuiltInZlibDeflater can use the setLevel and setStrategy methods on java.util.zip.Deflater to implement reset * This should definitely have a unit test, particularly involving CodecPool * The javadoc for reinit should describe the contract for that method; the implementations should also describe what happens for that particular codec. * In ZlibCompression::reinit, shouldn't end() be called before reconfiguring the codec? * The direct buffer size should not be reconfigured. Codecs are pooled because recreating direct buffers is very expensive; allocating new direct buffers on a cache hit defeats the purpose of pooling them. The buffer size doesn't affect correctness of zlib compression. * This should add methods like ZlibCompression::setCompressionLevel(Configuration, ) to set the {{zlib.compress.*}} properties > GzipCodec should read compression level etc from configuration > -------------------------------------------------------------- > > Key: HADOOP-5879 > URL: https://issues.apache.org/jira/browse/HADOOP-5879 > Project: Hadoop Common > Issue Type: Improvement > Components: io > Reporter: Zheng Shao > Assignee: He Yongqiang > Attachments: hadoop-5879-5-21.patch, hadoop-5879-7-13-2.patch, hadoop-5879-7-13-3.patch > > > GzipCodec currently uses the default compression level. We should allow overriding the default value from Configuration. > {code} > static final class GzipZlibCompressor extends ZlibCompressor { > public GzipZlibCompressor() { > super(ZlibCompressor.CompressionLevel.DEFAULT_COMPRESSION, > ZlibCompressor.CompressionStrategy.DEFAULT_STRATEGY, > ZlibCompressor.CompressionHeader.GZIP_FORMAT, 64*1024); > } > } > {code} -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.