J.Andreina created HDFS-3406: -------------------------------- Summary: Secondary Namenode does not do checkpointing and Exception message is thrown for ever when "dfs.namenode.checkpoint.dir" and "dfs.namenode.checkpoint.edits.dir" are configured to an invalid value Key: HDFS-3406 URL: https://issues.apache.org/jira/browse/HDFS-3406 Project: Hadoop HDFS Issue Type: Bug Affects Versions: 2.0.0 Reporter: J.Andreina Priority: Minor Fix For: 2.0.0, 3.0.0
When "dfs.namenode.checkpoint.dir" and "dfs.namenode.checkpoint.edits.dir" are configured to an invalid value. Started NN,DN and SNN At the SNN side checkpoint does not happens and exception is thrown continously Expected: ========== When all the configured values are invalid then Secondary Namenode need not continue and keeps throwing exception for every checkpointing period Instead the SNN should get shutdown throwing an exception as Illegal Argument passed. SNN side logs: ============== {noformat} java.io.IOException: No targets in destination storage! at org.apache.hadoop.hdfs.server.namenode.TransferFsImage.downloadImageToStorage(TransferFsImage.java:73) at org.apache.hadoop.hdfs.server.namenode.SecondaryNameNode$3.run(SecondaryNameNode.java:404) at org.apache.hadoop.hdfs.server.namenode.SecondaryNameNode$3.run(SecondaryNameNode.java:391) at java.security.AccessController.doPrivileged(Native Method) at javax.security.auth.Subject.doAs(Subject.java:396) at org.apache.hadoop.security.UserGroupInformation.doAs(UserGroupInformation.java:1205) at org.apache.hadoop.hdfs.server.namenode.SecondaryNameNode.downloadCheckpointFiles(SecondaryNameNode.java:390) at org.apache.hadoop.hdfs.server.namenode.SecondaryNameNode.doCheckpoint(SecondaryNameNode.java:487) at org.apache.hadoop.hdfs.server.namenode.SecondaryNameNode.doWork(SecondaryNameNode.java:349) at org.apache.hadoop.hdfs.server.namenode.SecondaryNameNode$2.run(SecondaryNameNode.java:316) at org.apache.hadoop.security.SecurityUtil.doAsLoginUserOrFatal(SecurityUtil.java:504) at org.apache.hadoop.hdfs.server.namenode.SecondaryNameNode.run(SecondaryNameNode.java:312) at java.lang.Thread.run(Thread.java:619){noformat} -- This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa For more information on JIRA, see: http://www.atlassian.com/software/jira