Details
-
Improvement
-
Status: Resolved
-
Major
-
Resolution: Fixed
-
2.7.1
-
None
-
Incompatible change, Reviewed
-
Unsupported FileSystem operations now throw an UnsupportedOperationException rather than an IOException.
Description
In the FileSystem implementation classes, unsupported operations throw new IOException("Not supported"), which makes it needlessly difficult to distinguish an actual error from an unsupported operation. They should instead throw new UnsupportedOperationException().
It's possible that this anti-idiom is used elsewhere in the code base. This JIRA should include finding and cleaning up those instances as well.
Attachments
Attachments
Issue Links
- breaks
-
MAPREDUCE-6767 TestSlive fails after a common change
- Resolved
- is related to
-
HADOOP-13172 And an UnsupportedFeatureException for Filesystems to throw on unsupported operations
- Resolved