GitHub user NicoK opened a pull request: https://github.com/apache/flink/pull/4950
[hotfix][s3] fix HadoopS3FileSystemITCase leaving test directories behind in S3 ## What is the purpose of the change This PR fixes `HadoopS3FileSystemITCase` leaving a test directory behind since it always created a random test (base) directory in S3 which was never cleaned up. Please note, that the individual tests create sub-directories and also always delete those. ## Brief change log - if S3 tests are run, add a cleanup that removes the created test directory - make sure that the test does not operate on an existing directory so that we do not accidentally remove something we shouldn't ## Verifying this change This change modifies tests and can be verified as follows: - manually checked the created test directory is deleted from S3 ## Does this pull request potentially affect one of the following parts: - Dependencies (does it add or upgrade a dependency): (no) - The public API, i.e., is any changed class annotated with `@Public(Evolving)`: (no) - The serializers: (no) - The runtime per-record code paths (performance sensitive): (no) - Anything that affects deployment or recovery: JobManager (and its components), Checkpointing, Yarn/Mesos, ZooKeeper: (no) ## Documentation - Does this pull request introduce a new feature? (no) - If yes, how is the feature documented? (not applicable) You can merge this pull request into a Git repository by running: $ git pull https://github.com/NicoK/flink flink-7988 Alternatively you can review and apply these changes as the patch at: https://github.com/apache/flink/pull/4950.patch To close this pull request, make a commit to your master/trunk branch with (at least) the following in the commit message: This closes #4950 ---- commit 4e12d2e216aa223950a4d7c167c99b5ca6d5a306 Author: Nico Kruber <n...@data-artisans.com> Date: 2017-11-02T18:38:48Z [hotfix][s3] fix HadoopS3FileSystemITCase leaving test directories behind in S3 ---- ---