hadoop-common-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Benoy Antony (JIRA)" <j...@apache.org>
Subject [jira] [Created] (HADOOP-10829) Iteration on CredentialProviderFactory.serviceLoader is thread-unsafe
Date Tue, 15 Jul 2014 17:01:09 GMT
Benoy Antony created HADOOP-10829:

             Summary: Iteration on CredentialProviderFactory.serviceLoader  is thread-unsafe
                 Key: HADOOP-10829
                 URL: https://issues.apache.org/jira/browse/HADOOP-10829
             Project: Hadoop Common
          Issue Type: Bug
          Components: security
            Reporter: Benoy Antony
            Assignee: Benoy Antony

CredentialProviderFactory uses _ServiceLoader_ framework to load _CredentialProviderFactory_
  private static final ServiceLoader<CredentialProviderFactory> serviceLoader =
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.

This message was sent by Atlassian JIRA

View raw message