hadoop-yarn-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Wei Yan (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (YARN-1296) schedulerAllocateTimer is accessed without holding samplerLock in ResourceSchedulerWrapper
Date Wed, 12 Feb 2014 21:36:22 GMT

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

Wei Yan commented on YARN-1296:
-------------------------------

Sorry I missed this jira before.
I'll look into the patch. thanks.

> schedulerAllocateTimer is accessed without holding samplerLock in ResourceSchedulerWrapper
> ------------------------------------------------------------------------------------------
>
>                 Key: YARN-1296
>                 URL: https://issues.apache.org/jira/browse/YARN-1296
>             Project: Hadoop YARN
>          Issue Type: Bug
>            Reporter: Ted Yu
>            Assignee: Ted Yu
>            Priority: Minor
>         Attachments: yarn-1296-v1.patch
>
>
> Here is related code:
> {code}
>   public Allocation allocate(ApplicationAttemptId attemptId,
>                              List<ResourceRequest> resourceRequests,
>                              List<ContainerId> containerIds,
>                              List<String> strings, List<String> strings2)
{
>     if (metricsON) {
>       final Timer.Context context = schedulerAllocateTimer.time();
> {code}
> samplerLock should be used to guard the access.



--
This message was sent by Atlassian JIRA
(v6.1.5#6160)

Mime
View raw message