Details
-
Bug
-
Status: Patch Available
-
Major
-
Resolution: Unresolved
-
3.1.2
-
None
-
None
Description
The HDFS implementation of getFileBlockLocations(path, offset, len) throws an exception if the path references a directory.
The base implementation (and all other filesystems) just return an empty array, something implemented in getFileBlockLocations(filestatsus, offset, len); something written up in filesystem.md as the correct behaviour.
- has been shown to break things:
SPARK-14959 - there's no contract tests for these APIs; shows up in
HADOOP-15044. - even if this is considered a wontfix, it should raise something like PathIsDirectoryException rather than FNFE
Attachments
Attachments
Issue Links
- breaks
-
SPARK-14959 Problem Reading partitioned ORC or Parquet files
- Resolved
- is related to
-
HADOOP-14943 Add common getFileBlockLocations() emulation for object stores, including S3A
- Patch Available