Uploaded image for project: 'Hadoop Common'
  1. Hadoop Common
  2. HADOOP-18477 Über-jira: S3A Hadoop 3.3.9 features
  3. HADOOP-13611

FileSystem/s3a processDeleteOnExit to skip the exists() check

    XMLWordPrintableJSON

Details

    • Sub-task
    • Status: Open
    • Trivial
    • Resolution: Unresolved
    • 2.7.3
    • None
    • fs, fs/s3
    • None

    Description

      If you look at FileSystem.processDeleteOnExit(), it does an exists() check for each entry, before calling delete().

      That exists() check is superfluous; on s3 it add an extra 1-4 HTTP GETs

      This could be fixed with a subclass in s3a to avoid it, but as the call is superfluous in all filesystems, it could be removed in FileSystem and so picked up by all object stores.

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              stevel@apache.org Steve Loughran
              Votes:
              0 Vote for this issue
              Watchers:
              6 Start watching this issue

              Dates

                Created:
                Updated: