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

SecurityUtil has unnecessary synchronization on collection used for only tests

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • 2.4.0, 3.0.0-alpha1
    • 2.5.0
    • security
    • None
    • Reviewed

    Description

      The function SecurityUtil.getKerberosInfo() is a function used during authentication and authorization.

      It has two synchronized blocks and one of them is on testProviders. This is an unnecessary lock given that the testProviders is empty in real scenario.

      Attachments

        1. HADOOP-10678.patch
          2 kB
          Benoy Antony
        2. HADOOP-10678.patch
          1 kB
          Benoy Antony

        Issue Links

          Activity

            People

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

              Dates

                Created:
                Updated:
                Resolved: