[ https://issues.apache.org/jira/browse/HDFS-8469?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Junping Du updated HDFS-8469: ----------------------------- Target Version/s: (was: 2.8.0) > Lockfiles are not being created for datanode storage directories > ---------------------------------------------------------------- > > Key: HDFS-8469 > URL: https://issues.apache.org/jira/browse/HDFS-8469 > Project: Hadoop HDFS > Issue Type: Bug > Components: datanode > Affects Versions: 2.4.0 > Reporter: Colin P. McCabe > Assignee: Colin P. McCabe > Attachments: HDFS-8469.001.patch > > > 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: > {code} > 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 > {code} > Without lock files, we could accidentally spawn two datanode processes using > the same directories without realizing it. -- This message was sent by Atlassian JIRA (v6.3.4#6332) --------------------------------------------------------------------- To unsubscribe, e-mail: hdfs-issues-unsubscr...@hadoop.apache.org For additional commands, e-mail: hdfs-issues-h...@hadoop.apache.org