You are viewing a plain text version of this content. The canonical link for it is here.
Posted to common-issues@hadoop.apache.org by "Daryn Sharp (JIRA)" <ji...@apache.org> on 2017/08/18 17:49:01 UTC

[jira] [Resolved] (HADOOP-9856) Avoid Krb5LoginModule.logout issue

     [ https://issues.apache.org/jira/browse/HADOOP-9856?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Daryn Sharp resolved HADOOP-9856.
---------------------------------
      Resolution: Duplicate
    Release Note: Incorporated into parent jira.

> Avoid Krb5LoginModule.logout issue
> ----------------------------------
>
>                 Key: HADOOP-9856
>                 URL: https://issues.apache.org/jira/browse/HADOOP-9856
>             Project: Hadoop Common
>          Issue Type: Sub-task
>          Components: security
>    Affects Versions: 2.0.0-alpha, 3.0.0-alpha1
>            Reporter: Daryn Sharp
>            Assignee: Daryn Sharp
>         Attachments: HADOOP-9856.patch
>
>
> The kerberos login module's logout method arguably has a bug.  {{Subject#getPrivateCredentials()}} returns a synchronized set.  Iterating the set requires explicitly locking the set.  The {{Krb5LoginModule#logout()}} is iterating and modifying the set w/o a lock.  This may lead to a {{ConcurrentModificationException}} which is what lead to {{UGI.getCurrentUser()}} being unnecessarily synchronized.



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)

---------------------------------------------------------------------
To unsubscribe, e-mail: common-issues-unsubscribe@hadoop.apache.org
For additional commands, e-mail: common-issues-help@hadoop.apache.org