You are viewing a plain text version of this content. The canonical link for it is here.
Posted to hdfs-dev@hadoop.apache.org by "Anbang Hu (JIRA)" <ji...@apache.org> on 2018/05/15 01:38:00 UTC

[jira] [Created] (HDFS-13557) TestDFSAdmin#testListOpenFiles fails on Windows

Anbang Hu created HDFS-13557:
--------------------------------

             Summary: TestDFSAdmin#testListOpenFiles fails on Windows
                 Key: HDFS-13557
                 URL: https://issues.apache.org/jira/browse/HDFS-13557
             Project: Hadoop HDFS
          Issue Type: Bug
            Reporter: Anbang Hu
            Assignee: Anbang Hu


Different from Unix-like system, Windows usesĀ \r\n to signify an enter is pressed.

{color:#d04437}[ERROR] Tests run: 1, Failures: 1, Errors: 0, Skipped: 0, Time elapsed: 91.891 s <<< FAILURE! - in org.apache.hadoop.hdfs.tools.TestDFSAdmin{color}
{color:#d04437}[ERROR] testListOpenFiles(org.apache.hadoop.hdfs.tools.TestDFSAdmin) Time elapsed: 91.752 s <<< FAILURE!{color}
{color:#d04437}java.lang.AssertionError:{color}

{color:#d04437}Expected: is a string containing "/tmp/files/open-file-14\n"{color}
{color:#d04437} but: was "Formatting using clusterid: testClusterID{color}
{color:#d04437}Client Host Client Name Open File Path{color}
{color:#d04437}127.0.0.1 DFSClient_NONMAPREDUCE_-1619541836_214 /tmp/files/open-file-0{color}
{color:#d04437}127.0.0.1 DFSClient_NONMAPREDUCE_-1619541836_214 /tmp/files/open-file-1{color}
{color:#d04437}127.0.0.1 DFSClient_NONMAPREDUCE_-1619541836_214 /tmp/files/open-file-2{color}
{color:#d04437}127.0.0.1 DFSClient_NONMAPREDUCE_-1619541836_214 /tmp/files/open-file-3{color}
{color:#d04437}127.0.0.1 DFSClient_NONMAPREDUCE_-1619541836_214 /tmp/files/open-file-4{color}
{color:#d04437}127.0.0.1 DFSClient_NONMAPREDUCE_-1619541836_214 /tmp/files/open-file-5{color}
{color:#d04437}127.0.0.1 DFSClient_NONMAPREDUCE_-1619541836_214 /tmp/files/open-file-6{color}
{color:#d04437}127.0.0.1 DFSClient_NONMAPREDUCE_-1619541836_214 /tmp/files/open-file-7{color}
{color:#d04437}127.0.0.1 DFSClient_NONMAPREDUCE_-1619541836_214 /tmp/files/open-file-8{color}
{color:#d04437}127.0.0.1 DFSClient_NONMAPREDUCE_-1619541836_214 /tmp/files/open-file-9{color}
{color:#d04437}127.0.0.1 DFSClient_NONMAPREDUCE_-1619541836_214 /tmp/files/open-file-10{color}
{color:#d04437}127.0.0.1 DFSClient_NONMAPREDUCE_-1619541836_214 /tmp/files/open-file-11{color}
{color:#d04437}127.0.0.1 DFSClient_NONMAPREDUCE_-1619541836_214 /tmp/files/open-file-12{color}
{color:#d04437}127.0.0.1 DFSClient_NONMAPREDUCE_-1619541836_214 /tmp/files/open-file-13{color}
{color:#d04437}127.0.0.1 DFSClient_NONMAPREDUCE_-1619541836_214 /tmp/files/open-file-14{color}
{color:#d04437}"{color}
{color:#d04437} at org.hamcrest.MatcherAssert.assertThat(MatcherAssert.java:20){color}
{color:#d04437} at org.junit.Assert.assertThat(Assert.java:865){color}
{color:#d04437} at org.junit.Assert.assertThat(Assert.java:832){color}
{color:#d04437} at org.apache.hadoop.hdfs.tools.TestDFSAdmin.verifyOpenFilesListing(TestDFSAdmin.java:664){color}
{color:#d04437} at org.apache.hadoop.hdfs.tools.TestDFSAdmin.testListOpenFiles(TestDFSAdmin.java:644){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.InvokeMethod.evaluate(InvokeMethod.java:17){color}
{color:#d04437} at org.junit.internal.runners.statements.FailOnTimeout$StatementThread.run(FailOnTimeout.java:74){color}



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

---------------------------------------------------------------------
To unsubscribe, e-mail: hdfs-dev-unsubscribe@hadoop.apache.org
For additional commands, e-mail: hdfs-dev-help@hadoop.apache.org