Details
-
Bug
-
Status: Resolved
-
Minor
-
Resolution: Fixed
-
3.4.0, 3.3.6
-
None
Description
Calling the Path.suffix method on root raises a NullPointerException. Tested with hadoop-client-api 3.3.2
Scenario:
import org.apache.hadoop.fs.* Path root = new Path("/") root.getParent == null // true root.suffix("bar") // NPE is raised
Stack:
23/03/03 15:13:18 ERROR Uncaught throwable from user code: java.lang.NullPointerException at org.apache.hadoop.fs.Path.<init>(Path.java:104) at org.apache.hadoop.fs.Path.<init>(Path.java:93) at org.apache.hadoop.fs.Path.suffix(Path.java:361)
Attachments
Issue Links
- is depended upon by
-
HADOOP-18856 Spark insertInto with location GCS bucket root not supported
- Open
- is duplicated by
-
HDFS-16941 Path.suffix raises NullPointerException
- Resolved
- links to