Uploaded image for project: 'Hadoop HDFS'
  1. Hadoop HDFS
  2. HDFS-164

Startup sanity data directory check in main loop.

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Minor
    • Resolution: Cannot Reproduce
    • None
    • None
    • None
    • None

    Description

      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.

      Attachments

        Activity

          People

            sameerp Sameer Paranjpye
            breed Benjamin Reed
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: