Return-Path: Delivered-To: apmail-hadoop-core-dev-archive@www.apache.org Received: (qmail 62304 invoked from network); 11 Nov 2008 01:26:07 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 11 Nov 2008 01:26:07 -0000 Received: (qmail 86727 invoked by uid 500); 11 Nov 2008 01:26:14 -0000 Delivered-To: apmail-hadoop-core-dev-archive@hadoop.apache.org Received: (qmail 86263 invoked by uid 500); 11 Nov 2008 01:26: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 86252 invoked by uid 99); 11 Nov 2008 01:26:12 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 10 Nov 2008 17:26: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, 11 Nov 2008 01:25:01 +0000 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id 4F128234C290 for ; Mon, 10 Nov 2008 17:25:44 -0800 (PST) Message-ID: <1193637043.1226366744322.JavaMail.jira@brutus> Date: Mon, 10 Nov 2008 17:25:44 -0800 (PST) From: "Pete Wyckoff (JIRA)" To: core-dev@hadoop.apache.org Subject: [jira] Commented: (HADOOP-4629) libhdfs sets read return code to 0 when hadoop returns < 0 In-Reply-To: <1822122370.1226363864238.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-4629?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12646435#action_12646435 ] Pete Wyckoff commented on HADOOP-4629: -------------------------------------- a valid return for hadoop read is 0 bytes though - that does not mean EOF. How does the caller differentiate between 0 bytes read and EOF in this case? > libhdfs sets read return code to 0 when hadoop returns < 0 > ----------------------------------------------------------- > > Key: HADOOP-4629 > URL: https://issues.apache.org/jira/browse/HADOOP-4629 > Project: Hadoop Core > Issue Type: Bug > Components: libhdfs > Affects Versions: 0.19.0, 0.20.0 > Reporter: Pete Wyckoff > Assignee: Pete Wyckoff > Fix For: 0.20.0 > > Attachments: HADOOP-4629.txt > > > libhdfs is changing the return code to 0 whenever hadoop returns < 0 on a read. This means EOF cannot be determined correctly since it should have a return code of -1. -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.