[
https://issues.apache.org/jira/browse/HDFS-14874?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16937751#comment-16937751
]
Ayush Saxena commented on HDFS-14874:
-------------------------------------
Thanx [~gabor.bota].
I guess since the changes are in hadoop-common the affected tests won't run as
part of Jenkins.
Well I verified at my local :
{{TestHDFSCLI}} passed with the fix, but {{TestDFSShell}} wasn't passing at my
local, but the error was different :
{noformat}
[INFO] -------------------------------------------------------
[INFO] T E S T S
[INFO] -------------------------------------------------------
[INFO] Running org.apache.hadoop.hdfs.TestDFSShell
[ERROR] Tests run: 50, Failures: 1, Errors: 0, Skipped: 0, Time elapsed: 78.774
s <<< FAILURE! - in org.apache.hadoop.hdfs.TestDFSShell
[ERROR] testCopyCommandsWithPreserveOption(org.apache.hadoop.hdfs.TestDFSShell)
Time elapsed: 1.678 s <<< FAILURE!
java.lang.AssertionError: expected:<1569419090697> but was:<1569419091714>
at org.junit.Assert.fail(Assert.java:88)
at org.junit.Assert.failNotEquals(Assert.java:834)
at org.junit.Assert.assertEquals(Assert.java:645)
at org.junit.Assert.assertEquals(Assert.java:631)
at
org.apache.hadoop.hdfs.TestDFSShell.testCopyCommandsWithPreserveOption(TestDFSShell.java:2260)
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:50)
at
org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:12)
at
org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:47)
at
org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.java:17)
at
org.junit.internal.runners.statements.FailOnTimeout$CallableStatement.call(FailOnTimeout.java:298)
at
org.junit.internal.runners.statements.FailOnTimeout$CallableStatement.call(FailOnTimeout.java:292)
at java.util.concurrent.FutureTask.run(FutureTask.java:266)
at java.lang.Thread.run(Thread.java:748)
{noformat}
Can you too verify once.
> Fix TestHDFSCLI and TestDFSShell test break because of logging change in mkdir
> ------------------------------------------------------------------------------
>
> Key: HDFS-14874
> URL: https://issues.apache.org/jira/browse/HDFS-14874
> Project: Hadoop HDFS
> Issue Type: Bug
> Components: hdfs
> Affects Versions: 3.3.0
> Reporter: Gabor Bota
> Assignee: Gabor Bota
> Priority: Major
>
> The change in HADOOP-16138 breaks TestHDFSCLI and TestDFSShell
> Since it changed the text in the exception :
> {code:java}
> - throw new PathNotFoundException(itemParentPath.toString());
> + throw new PathNotFoundException(String.format(
> + "mkdir failed for path: %s. Item parent path not found: %s.",
> + itemPath.toString(), itemParentPath.toString()));
> }
> {code}
> For reference :
> https://builds.apache.org/job/PreCommit-HDFS-Build/27958/testReport/
> The way I plan to fix it: create this jira where I `revert` this change in
> the sense that I will create a PR with the original log. No need for the
> additional logging what we added
> Thanks [~ayushtkn] for finding this issue.
--
This message was sent by Atlassian Jira
(v8.3.4#803005)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]