Return-Path: Delivered-To: apmail-hadoop-core-dev-archive@www.apache.org Received: (qmail 25252 invoked from network); 24 Oct 2008 20:04:37 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 24 Oct 2008 20:04:37 -0000 Received: (qmail 26201 invoked by uid 500); 24 Oct 2008 20:04:38 -0000 Delivered-To: apmail-hadoop-core-dev-archive@hadoop.apache.org Received: (qmail 25984 invoked by uid 500); 24 Oct 2008 20:04:38 -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 25968 invoked by uid 99); 24 Oct 2008 20:04:38 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 24 Oct 2008 13:04:38 -0700 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; Fri, 24 Oct 2008 20:03:35 +0000 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id 418D1234C234 for ; Fri, 24 Oct 2008 13:03:44 -0700 (PDT) Message-ID: <1549145701.1224878624267.JavaMail.jira@brutus> Date: Fri, 24 Oct 2008 13:03:44 -0700 (PDT) From: "dhruba borthakur (JIRA)" To: core-dev@hadoop.apache.org Subject: [jira] Commented: (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:comment-tabpanel&focusedCommentId=12642529#action_12642529 ] dhruba borthakur commented on HADOOP-4508: ------------------------------------------ Yes, we should avoid returning an array of size 1. That part was mostly a hack to determine if this was this works. We need to the size of the file returned to the caller. > 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, 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.