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 "Steve Loughran (JIRA)" <ji...@apache.org> on 2017/12/19 16:15:03 UTC

[jira] [Commented] (HADOOP-15131) ADL TestAdlContractRenameLive.testRenameFileUnderFile failing

    [ https://issues.apache.org/jira/browse/HADOOP-15131?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16297025#comment-16297025 ] 

Steve Loughran commented on HADOOP-15131:
-----------------------------------------

{code}
[ERROR] Tests run: 10, Failures: 0, Errors: 1, Skipped: 0, Time elapsed: 16.634 s <<< FAILURE! - in org.apache.hadoop.fs.adl.live.TestAdlContractRenameLive
[ERROR] testRenameFileUnderFile(org.apache.hadoop.fs.adl.live.TestAdlContractRenameLive)  Time elapsed: 1.348 s  <<< ERROR!
org.apache.hadoop.security.AccessControlException: RENAME failed with error 0x83090c88 (Forbidden. Parent path is not a folder.). [8278d388-9e16-49b0-842c-e123a781d8fd][2017-12-19T07:58:17.8952425-08:00] [ServerRequestId:8278d388-9e16-49b0-842c-e123a781d8fd]
	at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
	at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:423)
	at com.microsoft.azure.datalake.store.ADLStoreClient.getRemoteException(ADLStoreClient.java:1167)
	at com.microsoft.azure.datalake.store.ADLStoreClient.getExceptionFromResponse(ADLStoreClient.java:1132)
	at com.microsoft.azure.datalake.store.ADLStoreClient.rename(ADLStoreClient.java:673)
	at com.microsoft.azure.datalake.store.ADLStoreClient.rename(ADLStoreClient.java:642)
	at org.apache.hadoop.fs.adl.AdlFileSystem.rename(AdlFileSystem.java:515)
	at org.apache.hadoop.fs.contract.AbstractFSContractTestBase.rename(AbstractFSContractTestBase.java:372)
	at org.apache.hadoop.fs.contract.AbstractContractRenameTest.expectRenameUnderFileFails(AbstractContractRenameTest.java:327)
	at org.apache.hadoop.fs.contract.AbstractContractRenameTest.testRenameFileUnderFile(AbstractContractRenameTest.java:299)
	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.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)
{code}

> ADL TestAdlContractRenameLive.testRenameFileUnderFile failing
> -------------------------------------------------------------
>
>                 Key: HADOOP-15131
>                 URL: https://issues.apache.org/jira/browse/HADOOP-15131
>             Project: Hadoop Common
>          Issue Type: Sub-task
>          Components: fs/adl, test
>    Affects Versions: 3.1.0
>            Reporter: Steve Loughran
>            Priority: Minor
>
> {{TestAdlContractRenameLive.testRenameFileUnderFile}} raises an AccessControlException when you try to rename something under a file. 
> Failure is a good outcome, though rename() normally likes to fail silently with an error code of "false" in such a situation
> Options:
> #  catch the specific exception, look for the text "Forbidden. Parent path is not a folder." and downgrade to a fail.
> # declare this is a valid outcome, override the test case to expect it.



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)

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