hadoop-yarn-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Alejandro Abdelnur (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (YARN-264) Inconsistent synchronization in yarn.server.rm.security.DelegationTokenRenewal
Date Tue, 11 Dec 2012 19:45:21 GMT

    [ https://issues.apache.org/jira/browse/YARN-264?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13529260#comment-13529260
] 

Alejandro Abdelnur commented on YARN-264:
-----------------------------------------

same comments as in MAPREDUCE-4860, delegationTokens is already a synchronized collection,
except for the synchronization around the iterator() to avoid changes while iterating, I don't
see why we need the others.
                
> Inconsistent synchronization in yarn.server.rm.security.DelegationTokenRenewal
> ------------------------------------------------------------------------------
>
>                 Key: YARN-264
>                 URL: https://issues.apache.org/jira/browse/YARN-264
>             Project: Hadoop YARN
>          Issue Type: Bug
>    Affects Versions: 2.0.2-alpha
>            Reporter: Karthik Kambatla
>            Assignee: Karthik Kambatla
>         Attachments: yarn-264.patch
>
>
> yarn.s.rm.security.DelegationTokenRenewer uses TimerTask/Timer. When such a timer task
is canceled, already scheduled tasks run to completion. The task should check for such cancellation
before running. Also, delegationTokens needs to be synchronized on all accesses.

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

Mime
View raw message