You are viewing a plain text version of this content. The canonical link for it is here.
Posted to common-issues@hadoop.apache.org by "Xiao Liang (JIRA)" <ji...@apache.org> on 2018/05/11 11:45:00 UTC
[jira] [Comment Edited] (HADOOP-15458)
org.apache.hadoop.fs.TestLocalFileSystem#testFSOutputStreamBuilder fails on
Windows
[ https://issues.apache.org/jira/browse/HADOOP-15458?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16471775#comment-16471775 ]
Xiao Liang edited comment on HADOOP-15458 at 5/11/18 11:44 AM:
---------------------------------------------------------------
The error message for this test case on Windows is like:
{color:#d04437}2018-05-11 04:42:08,909 WARN fs.FileUtil: Failed to delete file or dir [D:\Git\Hadoop\hadoop-common-project\hadoop-common\target\test\data\work-dir\localfs\testBuilder]: it still exists.{color}
{color:#d04437}java.lang.AssertionError{color}
{color:#d04437} at org.junit.Assert.fail(Assert.java:86){color}
{color:#d04437} at org.junit.Assert.assertTrue(Assert.java:41){color}
{color:#d04437} at org.junit.Assert.assertTrue(Assert.java:52){color}
{color:#d04437} at org.apache.hadoop.fs.TestLocalFileSystem.after(TestLocalFileSystem.java:99){color}
{color:#d04437} at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method){color}
{color:#d04437} at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62){color}
{color:#d04437} at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43){color}
{color:#d04437} at java.lang.reflect.Method.invoke(Method.java:498){color}
{color:#d04437} at org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:47){color}
{color:#d04437} at org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:12){color}
{color:#d04437} at org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:44){color}
{color:#d04437} at org.junit.internal.runners.statements.RunAfters.evaluate(RunAfters.java:33){color}
{color:#d04437} at org.junit.internal.runners.statements.FailOnTimeout$StatementThread.run(FailOnTimeout.java:74){color}
With [^HADOOP-15458.000.patch], it's passed.
was (Author: surmountian):
The error message for this test case on Windows is like:
{color:#d04437}2018-05-11 04:42:08,909 WARN fs.FileUtil: Failed to delete file or dir [D:\Git\Hadoop\hadoop-common-project\hadoop-common\target\test\data\work-dir\localfs\testBuilder]: it still exists.{color}
{color:#d04437}java.lang.AssertionError{color}
{color:#d04437} at org.junit.Assert.fail(Assert.java:86){color}
{color:#d04437} at org.junit.Assert.assertTrue(Assert.java:41){color}
{color:#d04437} at org.junit.Assert.assertTrue(Assert.java:52){color}
{color:#d04437} at org.apache.hadoop.fs.TestLocalFileSystem.after(TestLocalFileSystem.java:99){color}
{color:#d04437} at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method){color}
{color:#d04437} at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62){color}
{color:#d04437} at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43){color}
{color:#d04437} at java.lang.reflect.Method.invoke(Method.java:498){color}
{color:#d04437} at org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:47){color}
{color:#d04437} at org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:12){color}
{color:#d04437} at org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:44){color}
{color:#d04437} at org.junit.internal.runners.statements.RunAfters.evaluate(RunAfters.java:33){color}
{color:#d04437} at org.junit.internal.runners.statements.FailOnTimeout$StatementThread.run(FailOnTimeout.java:74){color}
With the patch, it's passed.
> org.apache.hadoop.fs.TestLocalFileSystem#testFSOutputStreamBuilder fails on Windows
> -----------------------------------------------------------------------------------
>
> Key: HADOOP-15458
> URL: https://issues.apache.org/jira/browse/HADOOP-15458
> Project: Hadoop Common
> Issue Type: Test
> Reporter: Xiao Liang
> Assignee: Xiao Liang
> Priority: Major
> Labels: windows
> Attachments: HADOOP-15458.000.patch
>
>
> In *org.apache.hadoop.fs.TestLocalFileSystem#testFSOutputStreamBuilder* a FSDataOutputStream object is unnecessarily created and not closed, which makes org.apache.hadoop.fs.TestLocalFileSystem#after fails to delete the folder on Windows.
>
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)
---------------------------------------------------------------------
To unsubscribe, e-mail: common-issues-unsubscribe@hadoop.apache.org
For additional commands, e-mail: common-issues-help@hadoop.apache.org