hadoop-common-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "dhruba borthakur (JIRA)" <j...@apache.org>
Subject [jira] Updated: (HADOOP-2934) NPE while loading FSImage
Date Tue, 04 Mar 2008 20:15:45 GMT

     [ https://issues.apache.org/jira/browse/HADOOP-2934?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

dhruba borthakur updated HADOOP-2934:
-------------------------------------

    Status: Patch Available  (was: Open)

> NPE while loading  FSImage
> --------------------------
>
>                 Key: HADOOP-2934
>                 URL: https://issues.apache.org/jira/browse/HADOOP-2934
>             Project: Hadoop Core
>          Issue Type: Bug
>          Components: dfs
>    Affects Versions: 0.17.0
>            Reporter: Raghu Angadi
>            Assignee: dhruba borthakur
>         Attachments: NPE_FSImage.patch, NPE_FSImage.patch, NPE_FSImage.patch
>
>
> André Martin reported on core-user mailing list :
> {noformat} 
> [...]
> 2008-03-02 01:25:29,887 ERROR org.apache.hadoop.dfs.NameNode: java.lang.NullPointerException
>     at org.apache.hadoop.dfs.FSImage.readINodeUnderConstruction(FSImage.java:950)
>     at org.apache.hadoop.dfs.FSImage.loadFilesUnderConstruction(FSImage.java:919)
>     at org.apache.hadoop.dfs.FSImage.loadFSImage(FSImage.java:749)
>     at org.apache.hadoop.dfs.FSImage.loadFSImage(FSImage.java:634)
>     at org.apache.hadoop.dfs.FSImage.recoverTransitionRead(FSImage.java:223)
>     at org.apache.hadoop.dfs.FSDirectory.loadFSImage(FSDirectory.java:79)
>     at org.apache.hadoop.dfs.FSNamesystem.initialize(FSNamesystem.java:261)
>     at org.apache.hadoop.dfs.FSNamesystem.<init>(FSNamesystem.java:242)
>     at org.apache.hadoop.dfs.NameNode.initialize(NameNode.java:131)
>     at org.apache.hadoop.dfs.NameNode.<init>(NameNode.java:176)
>     at org.apache.hadoop.dfs.NameNode.<init>(NameNode.java:162)
>     at org.apache.hadoop.dfs.NameNode.createNameNode(NameNode.java:851)
>     at org.apache.hadoop.dfs.NameNode.main(NameNode.java:860)
> {noformat}
> Block object should be allocated before calling {{readFields()}} in FSImage.java : {code}
> BlockInfo[] blocks = new BlockInfo[numBlocks];
> for (int i = 0; i < numBlocks; i++) {
>   blocks[i].readFields(in);
> }
> {code}

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


Mime
View raw message