[ 
https://issues.apache.org/jira/browse/HDFS-6035?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13917968#comment-13917968
 ] 

sathish commented on HDFS-6035:
-------------------------------

These testcase failure happens due to loading the properties form the version 
file of already existing secondary namenode storage directory,if we format or 
remove that storage directories ,Then it is working fine
so if we add the format option to secondary namenode startup,then it will 
format the old directories.
Attaching the patch by adding the format option to test case

> TestCacheDirectives#testCacheManagerRestart is failing on branch-2
> ------------------------------------------------------------------
>
>                 Key: HDFS-6035
>                 URL: https://issues.apache.org/jira/browse/HDFS-6035
>             Project: Hadoop HDFS
>          Issue Type: Bug
>          Components: test
>    Affects Versions: 2.4.0
>            Reporter: Mit Desai
>
> {noformat}
> java.io.IOException: Inconsistent checkpoint fields.
> LV = -51 namespaceID = 1641397469 cTime = 0 ; clusterId = testClusterID ; 
> blockpoolId = BP-423574854-x.x.x.x-1393478669835.
> Expecting respectively: -51; 2; 0; testClusterID; 
> BP-2051361571-x.x.x.x-1393478572877.
>       at 
> org.apache.hadoop.hdfs.server.namenode.CheckpointSignature.validateStorageInfo(CheckpointSignature.java:133)
>       at 
> org.apache.hadoop.hdfs.server.namenode.SecondaryNameNode.doCheckpoint(SecondaryNameNode.java:526)
>       at 
> org.apache.hadoop.hdfs.server.namenode.TestCacheDirectives.testCacheManagerRestart(TestCacheDirectives.java:582)
> {noformat}



--
This message was sent by Atlassian JIRA
(v6.2#6252)

Reply via email to