hadoop/hadoop-common-project
Steve Loughran 9960c01a25
HADOOP-17244. S3A directory delete tombstones dir markers prematurely. (#2280)
This changes directory tree deletion so that only files are incrementally deleted
from S3Guard after the objects are deleted; the directories are left alone
until metadataStore.deleteSubtree(path) is invoke.

This avoids directory tombstones being added above files/child directories,
which stop the treewalk and delete phase from working.

Also:

* Callback to delete objects splits files and dirs so that
any problems deleting the dirs doesn't trigger s3guard updates
* New statistic to measure #of objects deleted, alongside request count.
* Callback listFilesAndEmptyDirectories renamed listFilesAndDirectoryMarkers
  to clarify behavior.
* Test enhancements to replicate the failure and verify the fix

Contributed by Steve Loughran
2020-09-10 17:03:52 +01:00
..
hadoop-annotations Preparing for 3.4.0 development 2020-03-29 23:24:25 +05:30
hadoop-auth Preparing for 3.4.0 development 2020-03-29 23:24:25 +05:30
hadoop-auth-examples Preparing for 3.4.0 development 2020-03-29 23:24:25 +05:30
hadoop-common HADOOP-17244. S3A directory delete tombstones dir markers prematurely. (#2280) 2020-09-10 17:03:52 +01:00
hadoop-kms HADOOP-17204. Fix typo in Hadoop KMS document. Contributed by Xieming Li. 2020-08-12 16:08:36 +09:00
hadoop-minikdc Preparing for 3.4.0 development 2020-03-29 23:24:25 +05:30
hadoop-nfs Preparing for 3.4.0 development 2020-03-29 23:24:25 +05:30
hadoop-registry Preparing for 3.4.0 development 2020-03-29 23:24:25 +05:30
pom.xml Preparing for 3.4.0 development 2020-03-29 23:24:25 +05:30