[
https://issues.apache.org/jira/browse/HADOOP-13927?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15810706#comment-15810706
]
John Zhuge commented on HADOOP-13927:
-------------------------------------
{{AdlFileSystem#delete}} calls {{ADLSStoreClient#enumerateDirectory}} with
{{maxEntriesToRetrieve}} set to 1. So I experimented the value 0 and 2, both
fixed the issue! Please note the unit test created 2 entries in the root.
I suspect ADLS REST server has a subtle bug for this query
{{op=LISTSTATUS&listSize=1&api-version=2016-11-01}}, while ok for the following
strings:
* {{op=LISTSTATUS&api-version=2016-11-01}}
* {{op=LISTSTATUS&listSize=2&api-version=2016-11-01}}
* {{op=LISTSTATUS&listSize=1&api-version=2015-10-01-preview}} which is the
query string used by {{2.0.4-SNAPSHOT}} SDK
Engaging Microsoft to investigate.
> ADLS TestAdlContractRootDirLive.testRmNonEmptyRootDirNonRecursive failed
> ------------------------------------------------------------------------
>
> Key: HADOOP-13927
> URL: https://issues.apache.org/jira/browse/HADOOP-13927
> Project: Hadoop Common
> Issue Type: Bug
> Components: fs/adl, test
> Affects Versions: 3.0.0-alpha2
> Reporter: John Zhuge
> Assignee: John Zhuge
> Priority: Critical
>
> {noformat}
> Tests run: 9, Failures: 1, Errors: 0, Skipped: 0, Time elapsed: 18.095 sec
> <<< FAILURE! - in org.apache.hadoop.fs.adl.live.TestAdlContractRootDirLive
> testRmNonEmptyRootDirNonRecursive(org.apache.hadoop.fs.adl.live.TestAdlContractRootDirLive)
> Time elapsed: 1.085 sec <<< FAILURE!
> java.lang.AssertionError: non recursive delete should have raised an
> exception, but completed with exit code false
> at org.junit.Assert.fail(Assert.java:88)
> at
> org.apache.hadoop.fs.contract.AbstractContractRootDirectoryTest.testRmNonEmptyRootDirNonRecursive(AbstractContractRootDirectoryTest.java:132)
> 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:497)
> 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.RunBefores.evaluate(RunBefores.java:26)
> at
> org.junit.internal.runners.statements.RunAfters.evaluate(RunAfters.java:27)
> at org.junit.rules.TestWatcher$1.evaluate(TestWatcher.java:55)
> at
> org.junit.internal.runners.statements.FailOnTimeout$StatementThread.run(FailOnTimeout.java:74)
> {noformat}
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]