Return-Path: Delivered-To: apmail-hadoop-core-dev-archive@www.apache.org Received: (qmail 55371 invoked from network); 13 Nov 2008 09:38:37 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 13 Nov 2008 09:38:37 -0000 Received: (qmail 19369 invoked by uid 500); 13 Nov 2008 09:38:42 -0000 Delivered-To: apmail-hadoop-core-dev-archive@hadoop.apache.org Received: (qmail 19335 invoked by uid 500); 13 Nov 2008 09:38:42 -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 19324 invoked by uid 99); 13 Nov 2008 09:38:42 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 13 Nov 2008 01:38:42 -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; Thu, 13 Nov 2008 09:37:30 +0000 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id 4CD67234C25C for ; Thu, 13 Nov 2008 01:37:44 -0800 (PST) Message-ID: <625703692.1226569064299.JavaMail.jira@brutus> Date: Thu, 13 Nov 2008 01:37:44 -0800 (PST) From: "dhruba borthakur (JIRA)" To: core-dev@hadoop.apache.org Subject: [jira] Updated: (HADOOP-4508) FSDataOutputStream.getPos() == 0when appending to existing file and should be file length In-Reply-To: <241331534.1224785564428.JavaMail.jira@brutus> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org [ https://issues.apache.org/jira/browse/HADOOP-4508?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] dhruba borthakur updated HADOOP-4508: ------------------------------------- Attachment: appendGetPos3.patch Removed the "synchronized" on getInitialLength() because the initialFileSize is initialized in the constructor itself. (I am not finding i very elegant to make it final because it is set inside one constructor invokes the other constructor) > FSDataOutputStream.getPos() == 0when appending to existing file and should be file length > ----------------------------------------------------------------------------------------- > > Key: HADOOP-4508 > URL: https://issues.apache.org/jira/browse/HADOOP-4508 > Project: Hadoop Core > Issue Type: Bug > Components: fs > Affects Versions: 0.19.0, 0.20.0 > Reporter: Pete Wyckoff > Assignee: dhruba borthakur > Attachments: appendGetPos.patch, appendGetPos2.patch, appendGetPos3.patch, HADOOP-4508.txt > > > does not seem getPos is set correctly when opening an existing file with non-zero length in append mode. -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.