Uploaded image for project: 'Hadoop Common'
  1. Hadoop Common
  2. HADOOP-10829

Iteration on CredentialProviderFactory.serviceLoader is thread-unsafe

VotersWatch issueWatchersCreate sub-taskLinkCloneUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    XMLWordPrintableJSON

Details

    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

        1. HADOOP-10829.patch
          1 kB
          Benoy Antony
        2. HADOOP-10829.patch
          1 kB
          Benoy Antony
        3. HADOOP-10829.003.patch
          2 kB
          Rakesh Radhakrishnan

        Issue Links

        Activity

          This comment will be Viewable by All Users Viewable by All Users
          Cancel

          People

            benoyantony Benoy Antony
            benoyantony Benoy Antony
            Votes:
            0 Vote for this issue
            Watchers:
            9 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Slack

                Issue deployment