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

Lockfiles are not being created for datanode storage directories

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Patch Available
    • Major
    • Resolution: Unresolved
    • 2.4.0
    • None
    • datanode
    • None

    Description

      Lockfiles are not being created for datanode storage directories. Due to a mixup, we are initializing the StorageDirectory class with shared=true (an option which was only intended for NFS directories used to implement NameNode HA). Setting shared=true disables lockfile generation and prints a log message like this:

      2015-05-22 11:45:16,367 INFO  common.Storage (Storage.java:lock(675)) - Locking is disabled for /home/cmccabe/hadoop2/hadoop-hdfs-project/hadoop-hdfs/target/  test/data/dfs/data/data5/current/BP-122766180-127.0.0.1-1432320314834
      

      Without lock files, we could accidentally spawn two datanode processes using the same directories without realizing it.

      Attachments

        1. HDFS-8469.001.patch
          1.0 kB
          Colin McCabe

        Issue Links

          Activity

            People

              cmccabe Colin McCabe
              cmccabe Colin McCabe
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated: