Details
-
Sub-task
-
Status: Resolved
-
Minor
-
Resolution: Won't Fix
-
3.4.0
-
None
-
None
Description
This is minor and we may want to WONTFIX; noticed during work on directory markers.
If you call listLocatedStatus(file) then a LIST call is always made to S3, even when S3Guard is present and has the record to say "this is a file"
Does this matter enough to fix?
- The
HADOOP-16465work moved the list before falling back to getFileStatus - that listing calls s3guard.listChildren(path) to list the children.
- which only returns the chlldren of a path, not a record of the path itself.
- so we get an empty list back, triggering the LIST
- its only after that LIST fails that we fall back to getFileStatus and hence look for the actual file record.
Attachments
Issue Links
- is caused by
-
HADOOP-16465 Tune S3AFileSystem.listLocatedStatus
- Resolved