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 "Harsh J (JIRA)" <ji...@apache.org> on 2013/04/10 10:22:17 UTC

[jira] [Updated] (HADOOP-9322) LdapGroupsMapping doesn't seem to set a timeout for its directory search

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

Harsh J updated HADOOP-9322:
----------------------------

    Attachment: HADOOP-9322.patch
    
> LdapGroupsMapping doesn't seem to set a timeout for its directory search
> ------------------------------------------------------------------------
>
>                 Key: HADOOP-9322
>                 URL: https://issues.apache.org/jira/browse/HADOOP-9322
>             Project: Hadoop Common
>          Issue Type: Improvement
>          Components: security
>    Affects Versions: 2.0.3-alpha
>            Reporter: Harsh J
>            Priority: Minor
>              Labels: performance
>         Attachments: HADOOP-9322.patch
>
>
> We don't appear to be setting a timeout via http://docs.oracle.com/javase/6/docs/api/javax/naming/directory/SearchControls.html#setTimeLimit(int) before we search with http://docs.oracle.com/javase/6/docs/api/javax/naming/directory/DirContext.html#search(javax.naming.Name,%20java.lang.String,%20javax.naming.directory.SearchControls).
> This may occasionally lead to some unwanted NN pauses due to lock-holding on the operations that do group lookups. A timeout is better to define than rely on "0" (infinite wait).

--
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