Return-Path: Delivered-To: apmail-lucene-hadoop-dev-archive@locus.apache.org Received: (qmail 23286 invoked from network); 20 Dec 2006 00:30:43 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 20 Dec 2006 00:30:43 -0000 Received: (qmail 41777 invoked by uid 500); 20 Dec 2006 00:30:50 -0000 Delivered-To: apmail-lucene-hadoop-dev-archive@lucene.apache.org Received: (qmail 41750 invoked by uid 500); 20 Dec 2006 00:30:50 -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 41741 invoked by uid 99); 20 Dec 2006 00:30:50 -0000 Received: from herse.apache.org (HELO herse.apache.org) (140.211.11.133) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 19 Dec 2006 16:30:50 -0800 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests= 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; Tue, 19 Dec 2006 16:30:42 -0800 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id 52B4F7141BE for ; Tue, 19 Dec 2006 16:30:22 -0800 (PST) Message-ID: <29489811.1166574622336.JavaMail.jira@brutus> Date: Tue, 19 Dec 2006 16:30:22 -0800 (PST) From: "Owen O'Malley (JIRA)" To: hadoop-dev@lucene.apache.org Subject: [jira] Updated: (HADOOP-836) unit tests fail on windows (/C:/cygwin/... is invalid) In-Reply-To: <32781184.1166571201144.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 [ http://issues.apache.org/jira/browse/HADOOP-836?page=all ] Owen O'Malley updated HADOOP-836: --------------------------------- Attachment: dos-dfs.patch Paths without schemes were being used in MapTask.java. So the local split file was being written into dfs by mistake. This patch fixes that problem, makes the dfs client reject illegal names immediately, and adds a new static method to get the local file system. > unit tests fail on windows (/C:/cygwin/... is invalid) > ------------------------------------------------------ > > Key: HADOOP-836 > URL: http://issues.apache.org/jira/browse/HADOOP-836 > Project: Hadoop > Issue Type: Bug > Components: mapred > Affects Versions: 0.10.0 > Reporter: Owen O'Malley > Assigned To: Owen O'Malley > Fix For: 0.10.0 > > Attachments: dos-dfs.patch > > > Under windows, I get the following exception from some of the unit tests: > java.io.IOException: Invalid file name: /C:/cygwin/home/hadoopwin/owen/hadoop/build/test/mapre > d/local/50062_0/taskTracker/jobcache/job_0001/task_0001_m_000002_0/.split.dta.crc > at org.apache.hadoop.dfs.FSNamesystem.startFile(FSNamesystem.java:416) > at org.apache.hadoop.dfs.NameNode.create(NameNode.java:238) > 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:585) > at org.apache.hadoop.ipc.RPC$Server.call(RPC.java:337) > at org.apache.hadoop.ipc.Server$Handler.run(Server.java:538) -- This message is automatically generated by JIRA. - If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa - For more information on JIRA, see: http://www.atlassian.com/software/jira