hadoop-common-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Daryn Sharp (JIRA)" <j...@apache.org>
Subject [jira] [Created] (HADOOP-9856) Avoid Krb5LoginModule.logout issue
Date Fri, 09 Aug 2013 16:40:53 GMT
Daryn Sharp created HADOOP-9856:

             Summary: 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
            Reporter: Daryn Sharp
            Assignee: Daryn Sharp

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 is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

View raw message