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 CBA5CF030 for ; Sun, 21 Apr 2013 19:33:17 +0000 (UTC) Received: (qmail 79018 invoked by uid 500); 21 Apr 2013 19:33:16 -0000 Delivered-To: apmail-hadoop-common-dev-archive@hadoop.apache.org Received: (qmail 78944 invoked by uid 500); 21 Apr 2013 19:33:15 -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 78935 invoked by uid 99); 21 Apr 2013 19:33:15 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 21 Apr 2013 19:33:15 +0000 Date: Sun, 21 Apr 2013 19:33:15 +0000 (UTC) From: "Ivan Mitic (JIRA)" To: common-dev@hadoop.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Created] (HADOOP-9490) LocalFileSystem#reportChecksumFailure not closing the checksum file handle before rename MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 Ivan Mitic created HADOOP-9490: ---------------------------------- Summary: LocalFileSystem#reportChecksumFailure not closing the checksum file handle before rename Key: HADOOP-9490 URL: https://issues.apache.org/jira/browse/HADOOP-9490 Project: Hadoop Common Issue Type: Bug Reporter: Ivan Mitic Assignee: Ivan Mitic Fix For: 3.0.0 LocalFileSystem#reportChecksumFailure is not closing the open stream on the checksum file before it moves it to the bad_files folder, what causes the operation to fail on Windows. TestLocalFileSystem fail on Windows because of this: {code} testReportChecksumFailure(org.apache.hadoop.fs.TestLocalFileSystem) Time elapsed: 31 sec <<< FAILURE! java.lang.AssertionError: at org.junit.Assert.fail(Assert.java:91) at org.junit.Assert.assertTrue(Assert.java:43) at org.junit.Assert.assertTrue(Assert.java:54) at org.apache.hadoop.fs.TestLocalFileSystem.testReportChecksumFailure(TestLocalFileSystem.java:335) {code} -- 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