hadoop-common-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Benjamin Reed (JIRA)" <j...@apache.org>
Subject [jira] Created: (HADOOP-446) Startup sanity data directory check in main loop.
Date Thu, 10 Aug 2006 21:12:13 GMT
Startup sanity data directory check in main loop.

                 Key: HADOOP-446
                 URL: http://issues.apache.org/jira/browse/HADOOP-446
             Project: Hadoop
          Issue Type: Bug
          Components: dfs
    Affects Versions: 0.5.0
            Reporter: Benjamin Reed
            Priority: Minor

In the overall scheme of things this is probably a nit, but in the run() method of DataXceiveServer
in DataNode.java the method "data.checkDataDir()" is called right after the socket accept.
data.checkDataDir() is a sanity check that makes sure the data directory is setup properly.
It is a good sanity check to do when the server is started, but it seems like a bit of a waste
to do it after every socket accept. If something happens that causes the sanity check to fail,
you would end up finding out about it during the processing of the request anyway.

This message is automatically generated by JIRA.
If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira


View raw message