Details
-
Bug
-
Status: Resolved
-
Major
-
Resolution: Fixed
-
2.6.0
Description
CredentialProviderFactory uses ServiceLoader framework to load CredentialProviderFactory
private static final ServiceLoader<CredentialProviderFactory> serviceLoader = ServiceLoader.load(CredentialProviderFactory.class);
The ServiceLoader framework does lazy initialization of services which makes it thread unsafe. If accessed from multiple threads, it is better to synchronize the access.
Similar synchronization has been done while loading compression codec providers via HADOOP-8406.
Attachments
Attachments
Issue Links
- is related to
-
HADOOP-10607 Create an API to Separate Credentials/Password Storage from Applications
- Closed
-
HADOOP-10826 Iteration on KeyProviderFactory.serviceLoader is thread-unsafe
- Closed