[ https://issues.apache.org/jira/browse/HDFS-2285?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Konstantin Shvachko updated HDFS-2285: -------------------------------------- Attachment: BNsafemode.patch There are two problems here. # BN briefly enters safemode on startup, but immediately exits it, because there are no blocks in the system yet. I made it entering manual safemode in case of BN, so it stays there forever. I also blocked leave safe-mode operation for BN. # FSDirectory.ready has never been set to true for BN, and therefore some operations would loop inside waitForReady() forever. Fixed that too. Added test case to verify that write operation is failing and read is not. > BackupNode should reject requests trying to modify namespace > ------------------------------------------------------------ > > Key: HDFS-2285 > URL: https://issues.apache.org/jira/browse/HDFS-2285 > Project: Hadoop HDFS > Issue Type: Bug > Components: name-node > Affects Versions: 0.22.0 > Reporter: Konstantin Shvachko > Fix For: 0.22.0 > > Attachments: BNsafemode.patch > > > I am trying to remove file from BackupNode using > {code}hadoop fs -fs hdfs://backup.node.com:50100 -rm /README.txt{code} > which is supposed to fail. But it seems to be hanging forever. > Needs some investigation. It used to throw SafeModeException if I remember > correctly. -- This message is automatically generated by JIRA. For more information on JIRA, see: http://www.atlassian.com/software/jira