[
https://issues.apache.org/jira/browse/HADOOP-2772?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12565602#action_12565602
]
Hairong Kuang commented on HADOOP-2772:
---------------------------------------
The problem is that the constructor of BlcokReceiver does not check if the disk
is readonly or not as what is done in receiveChunk when an IOException is
thrown.
> datanode not failing when read-only filesystem
> ----------------------------------------------
>
> Key: HADOOP-2772
> URL: https://issues.apache.org/jira/browse/HADOOP-2772
> Project: Hadoop Core
> Issue Type: Bug
> Components: dfs
> Affects Versions: 0.15.1
> Reporter: Koji Noguchi
> Priority: Minor
>
> (This is not directly related to dfs -put hanging, but thought it should get
> fixed.)
> Datanode is catching IOException but not shutting itself down.
> 2008-02-02 00:10:24,237 ERROR org.apache.hadoop.dfs.DataNode: DataXceiver:
> java.io.IOException: Read-only file system
> at java.io.UnixFileSystem.createFileExclusively(Native Method)
> at java.io.File.createNewFile(File.java:883)
> at
> org.apache.hadoop.dfs.FSDataset$FSVolume.createTmpFile(FSDataset.java:329)
> at org.apache.hadoop.dfs.FSDataset.createTmpFile(FSDataset.java:606)
> at org.apache.hadoop.dfs.FSDataset.writeToBlock(FSDataset.java:582)
> at
> org.apache.hadoop.dfs.DataNode$BlockReceiver.<init>(DataNode.java:1257)
> at
> org.apache.hadoop.dfs.DataNode$DataXceiver.writeBlock(DataNode.java:901)
> at org.apache.hadoop.dfs.DataNode$DataXceiver.run(DataNode.java:804)
> at java.lang.Thread.run(Thread.java:619)
> 2008-02-02 00:16:29,996 INFO org.apache.hadoop.dfs.DataNode: Received block
> blk_-7723120264171092160 from /11.11.11.11
> 2008-02-02 00:41:40,409 INFO org.apache.hadoop.dfs.DataNode: Received block
> blk_1939877544554342517 from /22.22.22.22
> 2008-02-02 00:46:53,925 INFO org.apache.hadoop.dfs.DataNode: Received block
> blk_-4102605170938551016 from /33.33.33.33
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.