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 12243DA1E for ; Sat, 14 Jul 2012 14:04:41 +0000 (UTC) Received: (qmail 53455 invoked by uid 500); 14 Jul 2012 14:04:39 -0000 Delivered-To: apmail-hadoop-hdfs-issues-archive@hadoop.apache.org Received: (qmail 52588 invoked by uid 500); 14 Jul 2012 14:04:38 -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 51904 invoked by uid 99); 14 Jul 2012 14:04:35 -0000 Received: from issues-vm.apache.org (HELO issues-vm) (140.211.11.160) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 14 Jul 2012 14:04:35 +0000 Received: from isssues-vm.apache.org (localhost [127.0.0.1]) by issues-vm (Postfix) with ESMTP id 0654314285A for ; Sat, 14 Jul 2012 14:04:35 +0000 (UTC) Date: Sat, 14 Jul 2012 14:04:35 +0000 (UTC) From: "Hudson (JIRA)" To: hdfs-issues@hadoop.apache.org Message-ID: <1136290059.52771.1342274675027.JavaMail.jiratomcat@issues-vm> Subject: [jira] [Commented] (HDFS-470) libhdfs should handle 0-length reads from FSInputStream correctly 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-470?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13414405#comment-13414405 ] Hudson commented on HDFS-470: ----------------------------- Integrated in Hadoop-Mapreduce-trunk #1136 (See [https://builds.apache.org/job/Hadoop-Mapreduce-trunk/1136/]) HDFS-470. libhdfs should handle 0-length reads from FSInputStream correctly. Contributed by Colin Patrick McCabe (Revision 1361446) Result = SUCCESS eli : http://svn.apache.org/viewcvs.cgi/?root=Apache-SVN&view=rev&rev=1361446 Files : * /hadoop/common/trunk/hadoop-hdfs-project/hadoop-hdfs/CHANGES.txt * /hadoop/common/trunk/hadoop-hdfs-project/hadoop-hdfs/src/main/native/hdfs.c * /hadoop/common/trunk/hadoop-hdfs-project/hadoop-hdfs/src/main/native/hdfs.h > libhdfs should handle 0-length reads from FSInputStream correctly > ----------------------------------------------------------------- > > Key: HDFS-470 > URL: https://issues.apache.org/jira/browse/HDFS-470 > Project: Hadoop HDFS > Issue Type: Bug > Reporter: Pete Wyckoff > Assignee: Colin Patrick McCabe > Priority: Minor > Fix For: 2.0.1-alpha > > Attachments: HDFS-470.001.patch, HDFS-470.002.patch > > > libhdfs changes Java read semantics to posix semantics. As such, if Hadoop ever returns 0 bytes read, libhdfs should return -1 and set errno = EINTER. -- This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa For more information on JIRA, see: http://www.atlassian.com/software/jira