hadoop-common-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Steve Loughran (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (HADOOP-11572) s3a delete() operation fails during a concurrent delete of child entries
Date Wed, 22 Feb 2017 14:45:44 GMT

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

Steve Loughran commented on HADOOP-11572:
-----------------------------------------

The MultiObjectDeleteException doesn't take a string as part of its constructor, and I don't
want to play subclass games with it. Instead I'll log more before the rethrow.

This is what will be logged at error when the problem arises: a full stack trace and a list
of every file + cause
{code}
2017-02-22 14:43:15,243 [JUnit-testMultiObjectDeleteNoPermissions] DEBUG s3a.S3AFileSystem
(S3AStorageStatistics.java:incrementCounter(60)) - object_delete_requests += 1  ->  1
2017-02-22 14:43:15,430 [JUnit-testMultiObjectDeleteNoPermissions] ERROR s3a.S3AFileSystem
(S3AFileSystem.java:deleteObjects(1022)) - Partial failure of delete, 1 errors
com.amazonaws.services.s3.model.MultiObjectDeleteException: One or more objects could not
be deleted (Service: null; Status Code: 200; Error Code: null; Request ID: 4F986C40502C1D94),
S3 Extended Request ID: Ikdez7AG8gabOP8DQTFRwWy8gb7GmcvlMciUa/lAooBu9MOMMtvyBHcfm/Ls5C+sBEsnHuu10vU=
	at com.amazonaws.services.s3.AmazonS3Client.deleteObjects(AmazonS3Client.java:2096)
	at org.apache.hadoop.fs.s3a.S3AFileSystem.deleteObjects(S3AFileSystem.java:1018)
	at org.apache.hadoop.fs.s3a.S3AFileSystem.removeKeys(S3AFileSystem.java:1247)
	at org.apache.hadoop.fs.s3a.ITestS3AFailureHandling.removeKeys(ITestS3AFailureHandling.java:159)
	at org.apache.hadoop.fs.s3a.ITestS3AFailureHandling.testMultiObjectDeleteNoPermissions(ITestS3AFailureHandling.java:180)
	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.ExpectException.evaluate(ExpectException.java:19)
	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)
2017-02-22 14:43:15,433 [JUnit-testMultiObjectDeleteNoPermissions] ERROR s3a.S3AFileSystem
(S3AFileSystem.java:deleteObjects(1024)) - scene_list.gz: "AccessDenied" - Access Denied
{code}

> s3a delete() operation fails during a concurrent delete of child entries
> ------------------------------------------------------------------------
>
>                 Key: HADOOP-11572
>                 URL: https://issues.apache.org/jira/browse/HADOOP-11572
>             Project: Hadoop Common
>          Issue Type: Sub-task
>          Components: fs/s3
>    Affects Versions: 2.6.0
>            Reporter: Steve Loughran
>            Assignee: Steve Loughran
>         Attachments: HADOOP-11572-001.patch
>
>
> Reviewing the code, s3a has the problem raised in HADOOP-6688: deletion of a child entry
during a recursive directory delete is propagated as an exception, rather than ignored as
a detail which idempotent operations should just ignore.
> the exception should be caught and, if a file not found problem, logged rather than propagated



--
This message was sent by Atlassian JIRA
(v6.3.15#6346)

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


Mime
View raw message