hadoop/hadoop-tools
Steve Loughran 0c82eb0324
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

Change-Id: I0e6ea2c35e487267033b1664228c8837279a35c7
2020-09-10 17:29:33 +01:00
..
hadoop-aliyun Preparing for 3.3.1 development 2020-04-30 13:33:42 +09:00
hadoop-archive-logs Preparing for 3.3.1 development 2020-04-30 13:33:42 +09:00
hadoop-archives Preparing for 3.3.1 development 2020-04-30 13:33:42 +09:00
hadoop-aws HADOOP-17244. S3A directory delete tombstones dir markers prematurely. (#2280) 2020-09-10 17:29:33 +01:00
hadoop-azure HADOOP-17158. Test timeout for ITestAbfsInputStreamStatistics#testReadAheadCounters (#2272) 2020-09-08 14:02:28 +01:00
hadoop-azure-datalake Preparing for 3.3.1 development 2020-04-30 13:33:42 +09:00
hadoop-datajoin Preparing for 3.3.1 development 2020-04-30 13:33:42 +09:00
hadoop-distcp HADOOP-17122: Preserving Directory Attributes in DistCp with Atomic Copy (#2133) 2020-08-22 18:51:10 +01:00
hadoop-dynamometer Preparing for 3.3.1 development 2020-04-30 13:33:42 +09:00
hadoop-extras Preparing for 3.3.1 development 2020-04-30 13:33:42 +09:00
hadoop-fs2img Preparing for 3.3.1 development 2020-04-30 13:33:42 +09:00
hadoop-gridmix Preparing for 3.3.1 development 2020-04-30 13:33:42 +09:00
hadoop-kafka Preparing for 3.3.1 development 2020-04-30 13:33:42 +09:00
hadoop-openstack Preparing for 3.3.1 development 2020-04-30 13:33:42 +09:00
hadoop-pipes Preparing for 3.3.1 development 2020-04-30 13:33:42 +09:00
hadoop-resourceestimator Preparing for 3.3.1 development 2020-04-30 13:33:42 +09:00
hadoop-rumen Preparing for 3.3.1 development 2020-04-30 13:33:42 +09:00
hadoop-sls HADOOP-17100. Replace Guava Supplier with Java8+ Supplier in Hadoop. Contributed by Ahmed Hussein. 2020-07-22 18:21:14 +05:30
hadoop-streaming Preparing for 3.3.1 development 2020-04-30 13:33:42 +09:00
hadoop-tools-dist Preparing for 3.3.1 development 2020-04-30 13:33:42 +09:00
pom.xml Preparing for 3.3.1 development 2020-04-30 13:33:42 +09:00