Return-Path: Delivered-To: apmail-hadoop-core-dev-archive@www.apache.org Received: (qmail 97161 invoked from network); 18 Nov 2008 01:57:11 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 18 Nov 2008 01:57:11 -0000 Received: (qmail 17690 invoked by uid 500); 18 Nov 2008 01:57:13 -0000 Delivered-To: apmail-hadoop-core-dev-archive@hadoop.apache.org Received: (qmail 17656 invoked by uid 500); 18 Nov 2008 01:57:13 -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 17645 invoked by uid 99); 18 Nov 2008 01:57:12 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 17 Nov 2008 17:57: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, 18 Nov 2008 01:55:59 +0000 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id 36BED234C287 for ; Mon, 17 Nov 2008 17:56:44 -0800 (PST) Message-ID: <934255597.1226973404223.JavaMail.jira@brutus> Date: Mon, 17 Nov 2008 17:56:44 -0800 (PST) From: "Pete Wyckoff (JIRA)" To: core-dev@hadoop.apache.org Subject: [jira] Updated: (HADOOP-4619) hdfs_write infinite loop when dfs fails and cannot write files > 2 GB In-Reply-To: <1539217653.1226100944402.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-4619?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Pete Wyckoff updated HADOOP-4619: --------------------------------- Attachment: HADOOP-4619.txt good catch - attaching new patch that does the error checking on the size relative to SIZE_MAX rather than ULONG_MAX. This does mean however that the size that can be written on a 32 bit machine is only 4GB. Should we change from using size_t to using long long in this case? > hdfs_write infinite loop when dfs fails and cannot write files > 2 GB > --------------------------------------------------------------------- > > Key: HADOOP-4619 > URL: https://issues.apache.org/jira/browse/HADOOP-4619 > 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.19.1, 0.20.0 > > Attachments: HADOOP-4619.txt, HADOOP-4619.txt, HADOOP-4619.txt, HADOOP-4619.txt, HADOOP-4619.txt > > > 1. hdfs_write does not check hdfsWrite return code so -1 return code is ignored. > 2. hdfs_write uses int for overall file length -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.