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 9FF40F9C8 for ; Thu, 21 Mar 2013 08:15:17 +0000 (UTC) Received: (qmail 59693 invoked by uid 500); 21 Mar 2013 08:15:17 -0000 Delivered-To: apmail-hadoop-hdfs-issues-archive@hadoop.apache.org Received: (qmail 59569 invoked by uid 500); 21 Mar 2013 08:15:17 -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 59356 invoked by uid 99); 21 Mar 2013 08:15:16 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 21 Mar 2013 08:15:16 +0000 Date: Thu, 21 Mar 2013 08:15:16 +0000 (UTC) From: "Ivan Mitic (JIRA)" To: hdfs-issues@hadoop.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (HDFS-4584) Fix TestNNWithQJM failures 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-4584?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13608736#comment-13608736 ] Ivan Mitic commented on HDFS-4584: ---------------------------------- Hi Arpit, thanks for the patch. I was thinking whether it's possible to alter the problematic test {{testNewNamenodeTakesOverWriter}} in a way such that it can still run on Windows. What do you think about doing the following: 1. cluster1#format(true)#build() - same as now, this will generate local image file and namespace id 2. cluster1#shutdown() - release file locks 3. FileUtil#copy() - 4. cluster1#format(false)#build() 5. cluster1#FileSystem#mkdirs() - move mkdirs here such that it is saved in the edits log 6. cluster2#format(false)#build() This should preserve the intent of the test and still allow it to run on Windows I think. Let me know if this works. I am fine with the current patch if not. > Fix TestNNWithQJM failures on Windows > ------------------------------------- > > Key: HDFS-4584 > URL: https://issues.apache.org/jira/browse/HDFS-4584 > Project: Hadoop HDFS > Issue Type: Bug > Components: test > Affects Versions: 3.0.0 > Environment: Windows > Reporter: Arpit Agarwal > Assignee: Arpit Agarwal > Fix For: 3.0.0 > > Attachments: HDFS-4584.1.patch, HDFS-4584.2.patch, HDFS-4584.3.patch > > > Multiple test cases fail in TestNNWithQJM. > List of failing test cases: > - testNewNamenodeTakesOverWriter(org.apache.hadoop.hdfs.qjournal.TestNNWithQJM): The process cannot access the file because another process has locked a portion of the file > - testMismatchedNNIsRejected(org.apache.hadoop.hdfs.qjournal.TestNNWithQJM): Could not format one or more JournalNodes. 1 exceptions thrown: > - testWebPageHasQjmInfo(org.apache.hadoop.hdfs.qjournal.TestNNWithQJM): Could not format one or more JournalNodes. 1 exceptions thrown: -- This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrators For more information on JIRA, see: http://www.atlassian.com/software/jira