[
https://issues.apache.org/jira/browse/HBASE-7832?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13577762#comment-13577762
]
Gary Helmling commented on HBASE-7832:
--------------------------------------
+1 to patch.
That's what the User class is there for. User.getShortName() does also have an
optimization in that it caches the obtained shortname. In profiling of the
AccessController coprocessor, where this was called frequently,
UserGroupInformation.getShortUserName() did show up with significant CPU usage,
since it reconstructs the short name for every call from the stored credentials.
> Use User.getShortName() in FSUtils
> ----------------------------------
>
> Key: HBASE-7832
> URL: https://issues.apache.org/jira/browse/HBASE-7832
> Project: HBase
> Issue Type: Bug
> Affects Versions: 0.94.6
> Reporter: Enis Soztutar
> Assignee: Enis Soztutar
> Fix For: 0.94.6
>
> Attachments: hbase-7832_v1.patch
>
>
> This is 0.94. HBASE-7814 backports HBASE-6963, but I think it can be done in
> a cleaner way using o.a.h.hbase.User.
--
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