[
https://issues.apache.org/jira/browse/HADOOP-10678?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Benoy Antony updated HADOOP-10678:
----------------------------------
Attachment: HADOOP-10678.patch
Attaching the patch for review. No test cases are added since it doesn't change
any functionality.
> Unnecessary synchronization on collection used for test
> -------------------------------------------------------
>
> Key: HADOOP-10678
> URL: https://issues.apache.org/jira/browse/HADOOP-10678
> Project: Hadoop Common
> Issue Type: Bug
> Components: security
> Reporter: Benoy Antony
> Assignee: Benoy Antony
> Priority: Minor
> Attachments: HADOOP-10678.patch
>
>
> 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.
--
This message was sent by Atlassian JIRA
(v6.2#6252)