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

SecurityUtil has unnecessary synchronization on collection used for only tests

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 2.4.0, 3.0.0-alpha1
    • Fix Version/s: 2.5.0
    • Component/s: security
    • Labels:
      None
    • Target Version/s:
    • Hadoop Flags:
      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

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

                Dates

                • Created:
                  Updated:
                  Resolved: