Return-Path: X-Original-To: apmail-hadoop-common-dev-archive@www.apache.org Delivered-To: apmail-hadoop-common-dev-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id F219410BAF for ; Tue, 30 Dec 2014 03:09:14 +0000 (UTC) Received: (qmail 94667 invoked by uid 500); 30 Dec 2014 03:09:13 -0000 Delivered-To: apmail-hadoop-common-dev-archive@hadoop.apache.org Received: (qmail 94568 invoked by uid 500); 30 Dec 2014 03:09:13 -0000 Mailing-List: contact common-dev-help@hadoop.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: common-dev@hadoop.apache.org Delivered-To: mailing list common-dev@hadoop.apache.org Received: (qmail 94554 invoked by uid 99); 30 Dec 2014 03:09:13 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 30 Dec 2014 03:09:13 +0000 Date: Tue, 30 Dec 2014 03:09:13 +0000 (UTC) From: "Yi Liu (JIRA)" To: common-dev@hadoop.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Created] (HADOOP-11452) Revisit org.apache.hadoop.fs.FileSystem#rename MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 Yi Liu created HADOOP-11452: ------------------------------- Summary: Revisit org.apache.hadoop.fs.FileSystem#rename Key: HADOOP-11452 URL: https://issues.apache.org/jira/browse/HADOOP-11452 Project: Hadoop Common Issue Type: Task Components: fs Reporter: Yi Liu Assignee: Yi Liu Currently in {{FileSystem}}, {{rename}} with _Rename options_ is protected and with _deprecated_ annotation. And the default implementation is not atomic. So this method is not able to be used outside. On the other hand, HDFS has a good and atomic implementation. (Also an interesting thing in {{DFSClient}}, the _deprecated_ annotations for these two methods are opposite). It makes sense to make public for {{rename}} with _Rename options_, since it's atomic for rename+overwrite, also it saves RPC calls if user desires rename+overwrite. -- This message was sent by Atlassian JIRA (v6.3.4#6332)