Details
Description
Different from Unix-like system, Windows usesĀ \r\n to signify an enter is pressed.
[ERROR] Tests run: 1, Failures: 1, Errors: 0, Skipped: 0, Time elapsed: 91.891 s <<< FAILURE! - in org.apache.hadoop.hdfs.tools.TestDFSAdmin
[ERROR] testListOpenFiles(org.apache.hadoop.hdfs.tools.TestDFSAdmin) Time elapsed: 91.752 s <<< FAILURE!
java.lang.AssertionError:
Expected: is a string containing "/tmp/files/open-file-14\n"
but: was "Formatting using clusterid: testClusterID
Client Host Client Name Open File Path
127.0.0.1 DFSClient_NONMAPREDUCE_-1619541836_214 /tmp/files/open-file-0
127.0.0.1 DFSClient_NONMAPREDUCE_-1619541836_214 /tmp/files/open-file-1
127.0.0.1 DFSClient_NONMAPREDUCE_-1619541836_214 /tmp/files/open-file-2
127.0.0.1 DFSClient_NONMAPREDUCE_-1619541836_214 /tmp/files/open-file-3
127.0.0.1 DFSClient_NONMAPREDUCE_-1619541836_214 /tmp/files/open-file-4
127.0.0.1 DFSClient_NONMAPREDUCE_-1619541836_214 /tmp/files/open-file-5
127.0.0.1 DFSClient_NONMAPREDUCE_-1619541836_214 /tmp/files/open-file-6
127.0.0.1 DFSClient_NONMAPREDUCE_-1619541836_214 /tmp/files/open-file-7
127.0.0.1 DFSClient_NONMAPREDUCE_-1619541836_214 /tmp/files/open-file-8
127.0.0.1 DFSClient_NONMAPREDUCE_-1619541836_214 /tmp/files/open-file-9
127.0.0.1 DFSClient_NONMAPREDUCE_-1619541836_214 /tmp/files/open-file-10
127.0.0.1 DFSClient_NONMAPREDUCE_-1619541836_214 /tmp/files/open-file-11
127.0.0.1 DFSClient_NONMAPREDUCE_-1619541836_214 /tmp/files/open-file-12
127.0.0.1 DFSClient_NONMAPREDUCE_-1619541836_214 /tmp/files/open-file-13
127.0.0.1 DFSClient_NONMAPREDUCE_-1619541836_214 /tmp/files/open-file-14
"
at org.hamcrest.MatcherAssert.assertThat(MatcherAssert.java:20)
at org.junit.Assert.assertThat(Assert.java:865)
at org.junit.Assert.assertThat(Assert.java:832)
at org.apache.hadoop.hdfs.tools.TestDFSAdmin.verifyOpenFilesListing(TestDFSAdmin.java:664)
at org.apache.hadoop.hdfs.tools.TestDFSAdmin.testListOpenFiles(TestDFSAdmin.java:644)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:498)
at org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:47)
at org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:12)
at org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:44)
at org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.java:17)
at org.junit.internal.runners.statements.FailOnTimeout$StatementThread.run(FailOnTimeout.java:74)
Attachments
Attachments
Issue Links
- is related to
-
HADOOP-15475 Fix broken unit tests on Windows
- Open