You are viewing a plain text version of this content. The canonical link for it is here.
Posted to common-dev@hadoop.apache.org by "Steve Loughran (JIRA)" <ji...@apache.org> on 2008/05/06 18:24:55 UTC

[jira] Created: (HADOOP-3353) DataNode.run() join() and shutdown() ought to have synchronized access to dataNodeThread

DataNode.run() join()  and shutdown() ought to have  synchronized access to dataNodeThread
------------------------------------------------------------------------------------------

                 Key: HADOOP-3353
                 URL: https://issues.apache.org/jira/browse/HADOOP-3353
             Project: Hadoop Core
          Issue Type: Bug
            Reporter: Steve Loughran


Looking at the DataNode.run() and join() methods, they are manipulating the state of the dataNodeThread:

 void join() {
    if (dataNodeThread != null) {
      try {
        dataNodeThread.join();
      } catch (InterruptedException e) {}
    }
  }

There's something similar in shutdown()

This could lead to race conditions on shutdown, where the check passes and then the reference is null when the next method is invoked. 
Marking major as race conditions are always trouble, and hard to test. 

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.