hadoop-yarn-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Devaraj K (JIRA)" <j...@apache.org>
Subject [jira] [Created] (YARN-164) Race condition in Fair Scheduler
Date Wed, 17 Oct 2012 11:50:03 GMT
Devaraj K created YARN-164:

             Summary: Race condition in Fair Scheduler
                 Key: YARN-164
                 URL: https://issues.apache.org/jira/browse/YARN-164
             Project: Hadoop YARN
          Issue Type: Bug
          Components: scheduler
    Affects Versions: 2.0.2-alpha
            Reporter: Devaraj K
            Assignee: Devaraj K
            Priority: Critical

      Thread updateThread = new Thread(new UpdateThread());

      initialized = true;

In the above code, making the initialized as true after starting the UpdateThread.

  private class UpdateThread implements Runnable {
    public void run() {
      while (initialized) {
        try {
        } catch (Exception e) {
          LOG.error("Exception in fair scheduler UpdateThread", e);

 In this run method of UpdateThread, it is checking for the initialized and exiting if it
is not true. Here most of the times initialized is getting true after exiting the UpdateThread
and the thread functionality is missing, due to that all the submitted applications are hanging
without making any progress.

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

View raw message