Return-Path: X-Original-To: apmail-hadoop-hdfs-issues-archive@minotaur.apache.org Delivered-To: apmail-hadoop-hdfs-issues-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 2F5CFD904 for ; Thu, 20 Sep 2012 19:43:09 +0000 (UTC) Received: (qmail 42961 invoked by uid 500); 20 Sep 2012 19:43:08 -0000 Delivered-To: apmail-hadoop-hdfs-issues-archive@hadoop.apache.org Received: (qmail 42922 invoked by uid 500); 20 Sep 2012 19:43:08 -0000 Mailing-List: contact hdfs-issues-help@hadoop.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: hdfs-issues@hadoop.apache.org Delivered-To: mailing list hdfs-issues@hadoop.apache.org Received: (qmail 42860 invoked by uid 99); 20 Sep 2012 19:43:08 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 20 Sep 2012 19:43:08 +0000 Date: Fri, 21 Sep 2012 06:43:08 +1100 (NCT) From: "Suresh Srinivas (JIRA)" To: hdfs-issues@hadoop.apache.org Message-ID: <22356839.104376.1348170188774.JavaMail.jiratomcat@arcas> Subject: [jira] [Updated] (HDFS-3961) FSEditLog preallocate() needs to reset the position of PREALLOCATE_BUFFER when more than 1MB size is needed MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/HDFS-3961?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Suresh Srinivas updated HDFS-3961: ---------------------------------- Affects Version/s: (was: 1.2.0) 1.1.0 > FSEditLog preallocate() needs to reset the position of PREALLOCATE_BUFFER when more than 1MB size is needed > ----------------------------------------------------------------------------------------------------------- > > Key: HDFS-3961 > URL: https://issues.apache.org/jira/browse/HDFS-3961 > Project: Hadoop HDFS > Issue Type: Bug > Affects Versions: 1.1.0 > Reporter: Jing Zhao > Attachments: HDFS-3961.patch > > > In the new preallocate() function, when the required size is larger 1MB, we need to reset the position for PREALLOCATION_BUFFER every time when we have allocated 1MB. Otherwise seems only 1MB can be allocated even if need is larger than 1MB. -- This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrators For more information on JIRA, see: http://www.atlassian.com/software/jira