Return-Path: Delivered-To: apmail-hadoop-hdfs-issues-archive@minotaur.apache.org Received: (qmail 557 invoked from network); 29 Oct 2009 02:47:23 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 29 Oct 2009 02:47:23 -0000 Received: (qmail 99879 invoked by uid 500); 29 Oct 2009 02:47:23 -0000 Delivered-To: apmail-hadoop-hdfs-issues-archive@hadoop.apache.org Received: (qmail 99821 invoked by uid 500); 29 Oct 2009 02:47:23 -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 99811 invoked by uid 99); 29 Oct 2009 02:47:23 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 29 Oct 2009 02:47:23 +0000 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, 29 Oct 2009 02:47:21 +0000 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id 6991B234C045 for ; Wed, 28 Oct 2009 19:46:59 -0700 (PDT) Message-ID: <1834147933.1256784419417.JavaMail.jira@brutus> Date: Thu, 29 Oct 2009 02:46:59 +0000 (UTC) From: "Eli Collins (JIRA)" To: hdfs-issues@hadoop.apache.org Subject: [jira] Commented: (HDFS-727) bug setting block size hdfsOpenFile In-Reply-To: <1112204818.1256247419492.JavaMail.jira@brutus> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 X-Virus-Checked: Checked by ClamAV on apache.org [ https://issues.apache.org/jira/browse/HDFS-727?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12771264#action_12771264 ] Eli Collins commented on HDFS-727: ---------------------------------- hdfs_test doesn't catch this, I confirmed hdfsOpenFile as used in the test does set the block size incorrectly but I suspect the create path isn't going through the BlockManager (which would fail the write because no DN matches the requested block size). I'll update the test to catch this bug. > bug setting block size hdfsOpenFile > ------------------------------------ > > Key: HDFS-727 > URL: https://issues.apache.org/jira/browse/HDFS-727 > Project: Hadoop HDFS > Issue Type: Bug > Reporter: Eli Collins > Assignee: Eli Collins > Fix For: 0.20.2, 0.21.0 > > Attachments: hdfs727.patch > > > In hdfsOpenFile in libhdfs invokeMethod needs to cast the block size argument to a jlong so a full 8 bytes are passed (rather than 4 plus some garbage which causes writes to fail due to a bogus block size). -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.