Return-Path: X-Original-To: apmail-hadoop-hdfs-issues-archive@minotaur.apache.org Delivered-To: apmail-hadoop-hdfs-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 AEC8117CF1 for ; Fri, 1 May 2015 23:19:06 +0000 (UTC) Received: (qmail 1070 invoked by uid 500); 1 May 2015 23:19:06 -0000 Delivered-To: apmail-hadoop-hdfs-issues-archive@hadoop.apache.org Received: (qmail 1014 invoked by uid 500); 1 May 2015 23:19:06 -0000 Mailing-List: contact hdfs-issues-help@hadoop.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: hdfs-issues@hadoop.apache.org Delivered-To: mailing list hdfs-issues@hadoop.apache.org Received: (qmail 794 invoked by uid 99); 1 May 2015 23:19:06 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 01 May 2015 23:19:06 +0000 Date: Fri, 1 May 2015 23:19:06 +0000 (UTC) From: "Xiaoyu Yao (JIRA)" To: hdfs-issues@hadoop.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Updated] (HDFS-8309) Skip unit test using DataNodeTestUtils#injectDataDirFailure() on Windows MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/HDFS-8309?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Xiaoyu Yao updated HDFS-8309: ----------------------------- Attachment: HDFS-8309.00.patch Attach a patch that ensure all tests that use DataNodeTestUtils.injectDataDirFailure() are skipped for Windows and update comments. > Skip unit test using DataNodeTestUtils#injectDataDirFailure() on Windows > ------------------------------------------------------------------------ > > Key: HDFS-8309 > URL: https://issues.apache.org/jira/browse/HDFS-8309 > Project: Hadoop HDFS > Issue Type: Sub-task > Affects Versions: 2.7.0 > Reporter: Xiaoyu Yao > Assignee: Xiaoyu Yao > Priority: Minor > Attachments: HDFS-8309.00.patch > > > As [~cnauroth] noted in HDFS-7917 below, DataNodeTestUtils.injectDataDirFailure() won't work for Windows as rename will fail due to open handles on data node dir. This ticket is opened to skip these tests for Windows. > bq.Unfortunately, I just remembered that the rename isn't going to work on Windows. It typically doesn't allow you to rename a directory where there are open file handles anywhere in the sub-tree. We'd have to shutdown the DataNode before doing the rename and then start it up. By doing that, we'd be changing the meaning of the test from covering an online failure to covering a failure at DataNode startup, so I don't think we can make that change. > Below are the two test cases that need to be fixed: > # TestDataNodeVolumeFailure#testFailedVolumeBeingRemovedFromDataNode > # TestDataNodeHotSwapVolumes.testDirectlyReloadAfterCheckDiskError -- This message was sent by Atlassian JIRA (v6.3.4#6332)