Uploaded image for project: 'Hadoop Common'
  1. Hadoop Common
  2. HADOOP-16829 Über-jira: S3A Hadoop 3.4 features
  3. HADOOP-15489

S3Guard to self update on directory listings of S3

    XMLWordPrintableJSON

    Details

    • Type: Sub-task
    • Status: Open
    • Priority: Minor
    • Resolution: Unresolved
    • Affects Version/s: 3.1.0
    • Fix Version/s: None
    • Component/s: fs/s3
    • Labels:
      None
    • Environment:

      s3guard

      Description

      S3Guard updates its table on a getFileStatus call, but not on a directory listing.

      While this makes directory listings faster (no need to push out an update), it slows down subsequent queries of the files, such as a sequence of:

      statuses = s3a.listFiles(dir)
      for (status: statuses) {
        if (status.isFile) {
            try(is = s3a.open(status.getPath())) {
              ... do something
            }
      }
      

      this is because the open() is doing the getFileStatus check, even after the listing.

      Updating the DDB tables after a listing would give those reads a speedup, albeit at the expense of initiating a (bulk) update in the list call. Of course, we could consider making that async, though that design (essentially a write-buffer) would require the buffer to be checked in the reads too.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                Unassigned
                Reporter:
                stevel@apache.org Steve Loughran
              • Votes:
                0 Vote for this issue
                Watchers:
                4 Start watching this issue

                Dates

                • Created:
                  Updated: