Details
-
Bug
-
Status: Reopened
-
Major
-
Resolution: Unresolved
-
None
-
None
Description
The caller of JavaKeyStoreProvider#renameOrFail assumes that it throws FileNotFoundException if the src does not exist. However, JavaKeyStoreProvider#renameOrFail calls the old rename API. In DistributedFileSystem, the old API returns false if the src does not exist.
That way JavaKeyStoreProvider fails to create a new key if the keystore is HDFS.
Attachments
Issue Links
- is broken by
-
HADOOP-13427 Eliminate needless uses of FileSystem#{exists(), isFile(), isDirectory()}
- Resolved
- is duplicated by
-
HADOOP-18450 JavaKeyStoreProvider should throw FileNotFoundException in renameOrFail
- Open
- relates to
-
HADOOP-15412 Hadoop KMS with HDFS keystore: No FileSystem for scheme "hdfs"
- Resolved
- links to