XMLWordPrintableJSON

Details

    • Sub-task
    • Status: Resolved
    • Major
    • Resolution: Duplicate
    • 3.2.1
    • None
    • fs/s3
    • None

    Description

      S3A innerMkdirs() calls getFileStatus() to probe dest path for being a file or dir, then goes to reject/no-op.

      The HEAD path + / in that code may add a 404 to the S3 load balancers, so subsequent probes for the path fail.

      Proposed: only look for file then LIST underneath

      if no entry found: probe for parent being a dir (LIST; HEAD + /), if true create the marker entry. If not, start the walk (or should we then check?)

      This increases the cost of mkdir on an existing empty dir marker; reduces it on a non-empty dir. Creates dir markers above dir markers to avoid those cached 404s.

      Attachments

        Issue Links

          Activity

            People

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

              Dates

                Created:
                Updated:
                Resolved: