Return-Path: X-Original-To: apmail-hadoop-hdfs-dev-archive@minotaur.apache.org Delivered-To: apmail-hadoop-hdfs-dev-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id DB63E106B3 for ; Mon, 7 Apr 2014 17:53:25 +0000 (UTC) Received: (qmail 24713 invoked by uid 500); 7 Apr 2014 17:53:19 -0000 Delivered-To: apmail-hadoop-hdfs-dev-archive@hadoop.apache.org Received: (qmail 24612 invoked by uid 500); 7 Apr 2014 17:53:17 -0000 Mailing-List: contact hdfs-dev-help@hadoop.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: hdfs-dev@hadoop.apache.org Delivered-To: mailing list hdfs-dev@hadoop.apache.org Received: (qmail 24199 invoked by uid 99); 7 Apr 2014 17:53:16 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 07 Apr 2014 17:53:16 +0000 Date: Mon, 7 Apr 2014 17:53:16 +0000 (UTC) From: "Chris Nauroth (JIRA)" To: hdfs-dev@hadoop.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Created] (HDFS-6197) Rolling upgrade rollback on Windows can fail attempting to rename edit log segment files to a destination that already exists. MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 Chris Nauroth created HDFS-6197: ----------------------------------- Summary: Rolling upgrade rollback on Windows can fail attempting to rename edit log segment files to a destination that already exists. Key: HDFS-6197 URL: https://issues.apache.org/jira/browse/HDFS-6197 Project: Hadoop HDFS Issue Type: Bug Components: namenode Affects Versions: 3.0.0, 2.4.0 Reporter: Chris Nauroth Assignee: Chris Nauroth Priority: Minor As part of a rollback from a rolling upgrade in progress, we discard edit log segments by renaming the file with suffix ".trash". If no new edits arrive in between multiple attempts, then the ".trash" file may still exist. On Windows, {{java.io.File#renameTo}} fails if the destination already exists though. This is visible right now as a failure in {{TestRollingUpgrade#testRollback}} when running on Windows. -- This message was sent by Atlassian JIRA (v6.2#6252)