[
https://issues.apache.org/jira/browse/HADOOP-6670?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16407050#comment-16407050
]
Christopher Tubbs commented on HADOOP-6670:
-------------------------------------------
I just tried to compare two UGIs using UserGroupInformation.equals() and it
failed, because even though they had the same Subject (.equals), they were not
the same instance (==). This seems like a bug which was introduced here. Why
was (==) used to compare Subject? Was this intentional?
> UserGroupInformation doesn't support use in hash tables
> -------------------------------------------------------
>
> Key: HADOOP-6670
> URL: https://issues.apache.org/jira/browse/HADOOP-6670
> Project: Hadoop Common
> Issue Type: Bug
> Components: security
> Reporter: Owen O'Malley
> Assignee: Owen O'Malley
> Priority: Major
> Fix For: 0.22.0
>
> Attachments: 6670-gridmix-test.bugfix.patch, c6670-02.patch,
> c6670-03.patch, fs-close.patch, fs-close.patch, fs-close.patch
>
>
> The UserGroupInformation objects are mutable, but they are used as keys in
> hash tables. This leads to serious problems in the FileSystem cache and RPC
> connection cache. We need to change the hashCode to be the identity hash code
> of the Subject and change equals to use == between the Subjects.
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]