Return-Path: Delivered-To: apmail-lucene-hadoop-dev-archive@locus.apache.org Received: (qmail 51442 invoked from network); 11 Apr 2007 18:50:56 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 11 Apr 2007 18:50:56 -0000 Received: (qmail 78505 invoked by uid 500); 11 Apr 2007 18:50:59 -0000 Delivered-To: apmail-lucene-hadoop-dev-archive@lucene.apache.org Received: (qmail 78454 invoked by uid 500); 11 Apr 2007 18:50:59 -0000 Mailing-List: contact hadoop-dev-help@lucene.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: hadoop-dev@lucene.apache.org Delivered-To: mailing list hadoop-dev@lucene.apache.org Received: (qmail 78422 invoked by uid 99); 11 Apr 2007 18:50:59 -0000 Received: from herse.apache.org (HELO herse.apache.org) (140.211.11.133) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 11 Apr 2007 11:50:59 -0700 X-ASF-Spam-Status: No, hits=-100.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.4] (HELO brutus.apache.org) (140.211.11.4) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 11 Apr 2007 11:50:52 -0700 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id 882F3714079 for ; Wed, 11 Apr 2007 11:50:32 -0700 (PDT) Message-ID: <17040809.1176317432554.JavaMail.jira@brutus> Date: Wed, 11 Apr 2007 11:50:32 -0700 (PDT) From: "Hairong Kuang (JIRA)" To: hadoop-dev@lucene.apache.org Subject: [jira] Created: (HADOOP-1248) FSNamesystem.startFile throws an IOException when the number of chosen targets is less than the required minimum number MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org FSNamesystem.startFile throws an IOException when the number of chosen targets is less than the required minimum number ----------------------------------------------------------------------------------------------------------------------- Key: HADOOP-1248 URL: https://issues.apache.org/jira/browse/HADOOP-1248 Project: Hadoop Issue Type: Bug Components: dfs Affects Versions: 0.12.3 Reporter: Hairong Kuang Fix For: 0.13.0 When I ran a test on a one-node dfs cluster, the test failed because of the exception listed below. First of all, I wonder why chooseTarget returns 0 target when # of datanodes is 1. Secondly I think it would be nicer if startFile retries chooseTarget before throws the exception back to client. java.io.IOException: Failed to create file /user/hairong/xxx on client 127.0.0.1 because there were not enough datanodes available. Found 0 datanodes but MIN_REPLICATION for the cluster is configured to be 1. at org.apache.hadoop.dfs.FSNamesystem.startFile(FSNamesystem.java:813) at org.apache.hadoop.dfs.NameNode.create(NameNode.java:294) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:597) at org.apache.hadoop.ipc.RPC$Server.call(RPC.java:339) at org.apache.hadoop.ipc.Server$Handler.run(Server.java:573) -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.