Details
-
Sub-task
-
Status: Resolved
-
Major
-
Resolution: Fixed
-
None
-
None
-
Incompatible change, Reviewed
-
Unify the behavior of dfs.getEZForPath() API when getting a non-existent normal file and non-existent ezone file by throwing FileNotFoundException
Description
Presently dfs.getEZForPath() API is behaving differently for a non-existent normal file and non-existent ezone file:
- If user pass a normal non-existent file then it will return null value. For example, Path("/nonexistentfile")
- If user pass a non-existent file but which is under an existing encryption zone then it is returning the parent's encryption zone info. For example, Path("/ezone/nonexistentfile")
Here the proposed idea is to unify the behavior by throwing FileNotFoundException. Please refer the discussion thread.
Attachments
Attachments
Issue Links
- breaks
-
HDFS-10850 getEZForPath should NOT throw FNF
- Resolved