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

Search Discussions

Related Discussions

Discussion Navigation
viewthread | post
posts ‹ prev | 1 of 1 | next ›
Discussion Overview
groupcommon-dev @
postedAug 10, '06 at 9:15p
activeAug 10, '06 at 9:15p

1 user in discussion

Benjamin Reed (JIRA): 1 post



site design / logo © 2022 Grokbase