Return-Path: X-Original-To: apmail-hadoop-common-issues-archive@minotaur.apache.org Delivered-To: apmail-hadoop-common-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 02C3E10B06 for ; Fri, 28 Feb 2014 15:54:50 +0000 (UTC) Received: (qmail 20656 invoked by uid 500); 28 Feb 2014 15:54:35 -0000 Delivered-To: apmail-hadoop-common-issues-archive@hadoop.apache.org Received: (qmail 20465 invoked by uid 500); 28 Feb 2014 15:54:29 -0000 Mailing-List: contact common-issues-help@hadoop.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: common-issues@hadoop.apache.org Delivered-To: mailing list common-issues@hadoop.apache.org Received: (qmail 20393 invoked by uid 99); 28 Feb 2014 15:54:28 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 28 Feb 2014 15:54:28 +0000 Date: Fri, 28 Feb 2014 15:54:28 +0000 (UTC) From: "Steve Loughran (JIRA)" To: common-issues@hadoop.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Created] (HADOOP-10375) Local FS doesn't raise an error on mkdir() over a file MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 Steve Loughran created HADOOP-10375: --------------------------------------- Summary: Local FS doesn't raise an error on mkdir() over a file Key: HADOOP-10375 URL: https://issues.apache.org/jira/browse/HADOOP-10375 Project: Hadoop Common Issue Type: Bug Components: fs Affects Versions: 2.3.0 Reporter: Steve Loughran Assignee: Steve Loughran Priority: Minor if you mkdir() on a path where there is already a file, the operation does not fail. Instead the operation returns 0. This is at odds with the behaviour of HDFS. HADOOP-6229 add the check for the parent dir not being a file, but something similar is needed for the destination dir itself -- This message was sent by Atlassian JIRA (v6.1.5#6160)