hadoop-yarn-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Ted Yu (JIRA)" <j...@apache.org>
Subject [jira] [Created] (YARN-1296) schedulerAllocateTimer is accessed without holding samplerLock in ResourceSchedulerWrapper
Date Fri, 11 Oct 2013 02:49:43 GMT
Ted Yu created YARN-1296:
----------------------------

             Summary: 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
            Priority: Minor


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#6144)

Mime
View raw message